24
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
2
GND
3
GD0
4
GD4
5
GD1
6
GD5
7
GD2
8
GD6
9
GD3
10
GD7
1
9
10
2
.286
.MODEL SMALL
.DATA
;this is data area
port
equ
0378h
;print port can be change to 278h
.CODE
print macro buff
mov
dx, offset buff;
mov ah,09h
int 21h
endm
delay :
push cx
mov cx,0155h
@@:
jmp
$+2
push cx
mov cx,0ffffh
wait1: loop
wait1
pop cx
loop @b
pop cx
ret
begin proc
near
mov ax,@data
mov ds,ax
STI
Mov
dx, port
Mov
al, 80h
out
dx, al
;;--------------------
;;ROR
mov cx,
08h
@@:
Summary of Contents for HS-2613
Page 14: ...8 3 2 Board Layout...
Page 34: ...28 This page is the blank page...
Page 50: ...44 This page is the blank page...