4.0 GPIO & Delay Time Setting
4.1 GPIO and Ignition Control Register
The General Purpose I/O is an interface available on some devices. These can read
digital signals from other parts of a circuit, or output to control other devices. At GPIO
control register, the GPI is use to receive data, the GPO is set data to send.
I/O port:
0xA35 (base address)
for Control Register (Read 0xA2h / Write 0xA1h)
0xA36 (base address)
for Control Data Value
Debug Command Line
-
O A35 A1
-
O A36 0F // Set Bit 4-7 to Low
7
6
5
4
3
2
1
0
DO4
DO3
DO2
DO1
DI4
DI3
DI2
DI1
0 = DO is low
0 = DI is low *
1 = DO is high *
1 = DI is high
PIO5 Output Enable Register – Index A0h
Bit
Name
R/W
Default
Description
7
GPIO57_OE
R/W
0
0 : GPIO57 is input
1 : GPIO57 is output
6
GPIO56_OE
R/W
0
0 : GPIO56 is input
1 : GPIO56 is output
5
GPIO55_OE
R/W
0
0 : GPIO55 is input
1 : GPIO55 is output
4
GPIO54_OE
R/W
0
0 : GPIO54 is input
1 : GPIO54 is output
3
GPIO53_OE
R/W
0
0 : GPIO53 is input
1 : GPIO53 is output
2
GPIO52_OE
R/W
0
0 : GPIO52 is input
1 : GPIO52 is output
1
GPIO51_OE
R/W
0
0 : GPIO51 is input
1 : GPIO51 is output
0
GPIO50_OE
R/W
0
0 : GPIO50 is input
8