A96G166/A96A166/A96S166 User’s manual 5. I/O ports
P1OD (P1 Open-drain Selection Register): 92H
Configure Open-drain of P1 Port
P12DB (P1/P2 De-bounce Enable Register): DFH
Configure De-bounce of P23 Port
Configure De-bounce of P22 Port
Configure De-bounce of P21 Port
Configure De-bounce of P20 Port
Configure De-bounce of P13 Port
Configure De-bounce of P12 Port
Configure De-bounce of P11 Port
Configure De-bounce of P10 Port
NOTES:
1. If the same level is not detected on enabled pin three or four times in a row at the sampling clock, the
signal is eliminated as noise.
2. A pulse level should be input for the duration of 3 clock or more to be actually detected as a valid edge.
3. The port de-bounce is automatically disabled at stop mode and recovered after stop mode release.
4. Refer to the port 0 de-bounce enable register (P0DB) for the de-bounce clock of port 1 and port 5.