8-Bit I/O Function - Boser HS-2613 Manual

Via v4 eden processor embedded engine board
Table of Contents

Advertisement

3.22 8-bit I/O Function

The HS-2613 offers one 8-bit input/output port by parallel port.
CN19: 8-bit Input/Output
PIN Description PIN Description
1
VCC
3
GD0
5
GD1
7
GD2
9
GD3
.286
.MODEL SMALL
.DATA
port
equ
.CODE
print
macro
mov
mov
int
endm
delay :
push
mov
@@:
jmp
push
mov
wait1: loop
pop
loop
pop
ret
begin
proc
mov
mov
STI
Mov
Mov
;;--------------------
;;ROR
mov
@@:
24
2
GND
4
GD4
6
GD5
8
GD6
10
GD7
;this is data area
0378h
;print port can be change to 278h
buff
dx, offset buff;
ah,09h
21h
cx
cx,0155h
$+2
cx
cx,0ffffh
wait1
cx
@b
cx
near
ax,@data
ds,ax
dx, port
al, 80h
out
cx, 08h
9
1
10
2
dx, al

Advertisement

Table of Contents
loading

Table of Contents