Figure 8a—When the switch is closed, the input pull-up (ranging from 16 to 36 kW) can eat up 10 times the average current required by the entire circuit. b—To avoid unnecessary current leaks, after a switch closure is detected, the pull-up is disabled and the pin direction is changed to an output, whose value is set to zero.