Si4010-C2
118
Rev. 1.0
SFR Address = 0x80
SFR Definition 30.1. P0
Bit
7
6
5
4
3
2
1
0
Name
P0[7:0]
Type
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset
1
1
0
1
1
1
1
1
Bit
Name
Function
7:0
P0[7:0]
Port 0 Register, GPIO[7:0], Bit Addressable.
Write appears at the GPIO[7:0] outputs, read reads directly the GPIO input values.
Write:
0 .. output low value
1 .. output open-drain or high drive value in push-pull mode
Read:
0 .. GPIO pin is at logic low value
1 .. GPIO pin is at logic high value
Special pins:
The GPIO[0] is input only. Write to GPIO[0] has no effect. The GPIO[5] is output LED
driver only and requires setting of the proper LED drive current. Then GPIO[5] just
turns the LED current on (1) or off (0). Reading from GPIO[5] returns the user
intended driver of LED (1 .. driving, 0 .. off). The read value will be read as 0 if, for
example, the user writes GPIO[5] as 1, but the LED current value
PORT_CTRL.PORT_LED will be 0.
The read GPIO[5] value does not represent the actual driving status of the LED drive,
since the debug logic and C2 can disable the LED. The actual LED driving status can
be read as RBIT_DATA.GPIO_LED_DRIVE bit.