AMB-VDX3H1 Series
31
www.acrosser.com
5.2.2.
GPIO
The GPIO port 0 and 1 are always free for use normally.
GPIO direction and data registers:
Port 0
Port 1
Description
Data Register
78H
79H
Direction Register
98H
99H
0: GPIO pin is input mode
1: GPIO pin is output mode
If send value 0FH to port 98H, it means that GPIO port0 [7-4] are input mode and
port[3-0] are output mode.
If send value 00H to port 98H, it means that GPIO port0 [7-0] are input mode.
If send value FFH to port 98H, it means that GPIO port0 [7-0] are output mode.
If send value 03H to port 98H, it means that GPIO port0 [7-2] are input mode and
port[1-0] are output mode.
Syntax:
byte readPort (byte nPort)
Description:
Get the status of GPIO data register
Parameters:
nPort: Direction register value
Return Value:
0x00~0xFF (output mode: bit = 0 is Low, bit = 1 is High)
Syntax:
void writePort(byte nPort, byte dbValue)
Description:
Set the status of GPIO data register
Parameters:
nPort: Direction register value
dbValue: Data register value
Return Value:
None
Содержание AMB-VDX3H1 Series
Страница 9: ...AMB VDX3H1 Series 9 www acrosser com 2 1 2 IO View 2 1 3 Bottom View CF1 ...
Страница 16: ...AMB VDX3H1 Series 16 Acrosser Technology Co Ltd 2 3 Board Dimension Unit mm ...
Страница 18: ...AMB VDX3H1 Series 18 Acrosser Technology Co Ltd 3 2 Advanced Setup 3 2 1 Serial Parellel Port Configuration ...
Страница 21: ...AMB VDX3H1 Series 21 www acrosser com 3 4 Boot Setup 3 4 1 Boot Settings Configuration ...
Страница 28: ...AMB VDX3H1 Series 28 Acrosser Technology Co Ltd Click Test Item Select 1 GPIO TEST Utility ...
Страница 29: ...AMB VDX3H1 Series 29 www acrosser com Select 2 WatchDog TEST Utility Select 3 I2C TEST Utility ...