ICOP Technology ICOP-602X User Manual page 35

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

Advertisement

out 23,al
mov al,47
out 22,al
mov al,55
out 23,al
mov al,46
out 22,al
in al,23
mov al,4c
out 22,al
in al,23
mov al,4d
out 22,al
mov al,55
out 23,al
....... continue program
end
ICOP Embedede 386SX CPU ISA Half Size SBC User's Manual
; User can be set logic "0"
; of IN direction.
; Output data port.
;
; Example data out value is 55,
; to output pin
; GPIO[7-0]. So user can
; repeat this loop.
; If GPIO[7-0] is set input direction, then data
; input port is 46.
; Example data input value
; from data input GPIO[7-0]
; Input data port
;
; Read data from GPIO[15-8]
; into AL register.
; If GPIO[15-8] is set output
; direction, then data
; output port is 4d.
; output data value is 55.
; Example data output value
; to data input GPIO[15-8]
31

Advertisement

Table of Contents
loading

Table of Contents