If I set the Port Direction Register to output and read the corresponding bit of the Port Register, can I read the pin level?
No, you cannot. If you set the Port Direction Register to output and read the Port Register, you read the port latch, not the output level of the pin. However, when using UARTi in I2C-bus mode, you can read the pin level, even if the SCL pin is set to output (I value differs depending on each MCU product).
|M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN|