Application Examples
;***********************************************************
;*
*
;*
TEST
CODE
*
;*
*
;***********************************************************
;
; INITIALIZE SEGMENT REGISTER AND STACK POINTER.
;
START:
MOV
AX,SEG DATA
MOV
DS,AX
MOV
AX,SEG STACK
MOV
SS,AX
MOV
SP,OFFSET STACK_TOP
;
; INITIALIZE INTERRUPT VECTORS (TYPE 10 ONLY IS USED).
;
PUSH
DS
MOV
AX,0
MOV
DS,AX
MOV
DI,OFFSET TYPE_10
MOV
CX,1
; 1 VECTOR TO BE INITIALIZED
VECT:
MOV
WORD PTR [DI],OFFSET LED_STROBE
ADD
DI,2
MOV
[DI],CS
ADD
DI,2
LOOP
VECT
POP
DS
;
; INITIALIZE THE COUNTER/TIMER 2 FOR THE RATE GENERATOR
;
TO ALLOW IT TO GENERATE INTERRUPTS.
;
CALL
INIT_TMR2
;
; INITIALIZE ZT 8809A 8259A INTERRUPTS.
;
CALL
INIT_PIC
;
; AT THIS POINT, ALL THAT IS NEEDED IS TO WAIT FOR THE
;
INTERRUPTS TO OCCUR.
;
STI
; ENABLE PROCESSOR INTERRUPTS
LOOP1:
JMP
LOOP1
;
;
CODE
ENDS
END
START
4-12
Содержание ZT 8809A
Страница 15: ...Tables Table B 9 J5 Pin Assignments B 17 Table B 10 J6 Pin Assignments B 18 Table B 11 J7 Pin Assignments B 19...
Страница 334: ...Jumper Configurations W49 W48 A W47 B A B W37 W66 A W50 B C J7 W67 Figure A 11 W37 W47 50 W66 W67 Jumper Blocks A 34...
Страница 346: ...Jumper Configurations W61 W60 W62 W63 W64 A B A B W65 Figure A 13 W60 W65 Jumper Block A 46...