ZHCSM91F May 2009 – January 2023 TCA6416A
PRODUCTION DATA
When the I/Os are used to control LEDs, normally they are connected to VCC through a resistor as shown in #SCPS126IMG2151. For a P-port configured as an input, ICC increases as VI becomes lower than VCC. The LED is a diode, with threshold voltage VT, and when a P-port is configured as an input the LED will be off but VI is a VT drop below VCC.
For battery-powered applications, it is essential that the voltage of P-ports controlling LEDs is greater than or equal to VCC when the P-ports are configured as input to minimize current consumption. #SCPS126IMG2151 shows a high-value resistor in parallel with the LED. #SCPS126IMG6593 shows VCC less than the LED supply voltage by at least VT. Both of these methods maintain the I/O VI at or above VCC and prevents additional supply current consumption when the P-port is configured as an input and the LED is off.