ICOP Technology ICOP-602X User Manual page 34

Icop-602 series embedded 386sx cpu isa half size sbc
Table of Contents

Advertisement

2.5
General Purpose I/O
M6117D supports 16 independent GPOs and GPIs. This group of GPOs
does not need external 74LS373 to latch as generate purpose output. Also
this group of GPIs do not share signals with the ISA data bus, so no external
74LS245 is required either.
At boot time the state of the GPIO ports can be set in the BIOS.
Go to BIOS Setup's "Advanched Chipset Setup"
GPIO Sample Program
; Please use TASM to compiler the following program.
; Execute under DOS environment.
;
.286
.model small
.code
mov al,13
out 22,al
mov al,c5
out 23,al
mov al,4e
out 22,al
mov al,ff
mov 23,al
mov al,4f
out 22,al
mov al,00
30
ICOP Embedded 386SX CPU ISA Half Size SBC User's Manual
; Unlock configuration register.
;
;
;
; Enable GPIO[7-0] is output pin.
;
; If AL fill "00",
; GPIO[7-0] set input pin.
; User can be set logic "1"
; of OUT direction.
; Enable GPIO[15-8] is input pin
;
; If AL fill "FF",
; GPIO[15-8] set output pin.

Advertisement

Table of Contents
loading

Table of Contents