23
3.21 8-bit GPIO Function
The HS-7280 offers one 8-bit general purpose input/output port.
z
JP10: 8-bit GPIO
PIN Description PIN Description
1
9
10
2
1
VCC
2
GND
3
GD0
4
GD4
5
GD1
6
GD5
7
GD2
8
GD6
9
GD3
10
GD7
W83627EHG Digital I/O
1. Assembly sample code
------------------------------------
Extended function mode
------------------------------------
MOV DX,2EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
-------------------------------------
Configure logical device
-------------------------------------
MOV DX,2EH
MOV AL,07H
OUT DX,AL
MOV DX,2FH
MOV AL,07H
OUT DX,AL
MOV DX,2EH
MOV AL,29H
OUT DX,AL
MOV DX,2FH
MOV AL,01H
OUT DX,AL
MOV DX,2EH
MOV AL,30H
OUT DX,AL
MOV DX,2FH
MOV AL,01H
OUT DX,AL
MOV DX,2EH
MOV AL,F3H