When inputting a pulse from the TAiIN or TBiIN pin in the event counter mode, pulse period measurement mode, or pulse width measurement mode, can I read the input level of those pins?
Yes, you can. If you set the direction register of the port sharing pins with TAiIN or TBiIN into input mode, you can read the input level of TAiIN or TBiIN pin by reading the port register. However, the input level of the pin needs to fill VIH and VIL of the port. (VIH:"H" input voltage, VIL:"L" input voltage)
|M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN|