8-Bit Gpio Function - Boser HS-2621 Manual

Intel atom n270 processor embedded engine board
Table of Contents

Advertisement

3.21 8-bit GPIO Function

The HS-2621 offers one 8-bit input/output port by parallel port.
JP4: 8-bit GPIO
PIN Description PIN Description
1
VCC
3
GPIO0
5
GPIO1
7
GPIO2
9
GPIO3
W83627EHG
Digital I/O Assembly sample code
------------------------------------
Extended function mode
------------------------------------
MOV DX,2EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
-------------------------------------
Configure logical device 7
-------------------------------------
MOV DX,2EH
MOV AL,07H
OUT DX,AL
MOV DX,2FH
MOV AL,07H
OUT DX,AL
MOV DX,2EH
MOV AL,30H
; Enable GPIO1
OUT DX,AL
MOV DX,2FH
MOV AL,01H
OUT DX,AL
2
GND
4
GPIO4
6
GPIO5
8
GPIO6
10
GPIO7
9
1
10
2
25

Advertisement

Table of Contents
loading

Table of Contents