xi ARK-5420 User ManualChapter 6 GPIO Programming ...........................536.1 ARK-5420 Digital DIO Definition ............................................................. 546.2 Configuration Sequence.......................................................................... 54Table 6.1: Pin Description ......................................................... 54Table 6.2: Command Byte......................................................... 55Table 6.3: Register 0 - Input Port Register Bit Description........ 55Table 6.4: Register 1 - Output Port Register Bit Description ..... 55Table 6.5: Register 2 - Polarity Inversion Register Bit Description56Table 6.6: Register 3 - Configuration Register Bit Description . 566.3 Function Call for Reference .................................................................... 57Appendix A Programming the Watchdog Timer..63A.1 Programming the Watchdog Timer ......................................................... 64A.1.1 Watchdog Timer Overview.......................................................... 64A.1.2 Programming the Watchdog Timer ............................................. 64Table A.1: Watchdog Timer Registers ....................................... 64A.1.3 Example Program ....................................................................... 65