I wonder, how does an MCU work internally when configuring a pin as input/output.
From what I understand, when an I/O is configured as input it has a high resistance, and if configured as output it has low resistance.
I have connected a SN65HVD231 Transceiver Rs pin to a I/O on a MCU, looking in the datasheet for the transceiver, you can read that the Rs pin controls the slope-control, putting a 100k resistor to ground from Rs pin will result in 2V/us slew rate, 10k sets it to 15V/us slew rate.
If I connect a I/O to the Rs pin, and configure the I/O as an Input, would it be the same as connecting a large resistor to ground ?
What happens when you configure the I/O as an output and set it to low-level, would it be the same as connecting the Rs pin directly to ground, and directly to Vcc when high-level?