SBC84833 Series All-In-One Capa Board User’s Manual
Digital I/O
73
Digital I/O Software Programming
z GPI program sample:
O 2E 87
O 2E 87
O 2E 07
O 2F 08
Select Device 8
O 2E 30
O 2F 02
Set GPIO5
O 2E E0
O 2F 07
GPIO5 pins are programmed as output pins.
O 2E E1
I 2F
Read GPIO5 pins’ value.
z GPO program sample:
O 2E 87
O 2E 87
O 2E 07
O 2F 08
Select Device 8
O 2E 30
O 2F 02
Set GPIO5
O 2E E0
O 2F 07
GPIO5 pins are programmed as output pins.
O 2E E1
O 2F M
Set output value M
Bit 0 ~ Bit 4 (1 High , 0 Low) (GPO0~4)
When M is F8, all GPIO5 pins are high.