Application Examples
LED_STROBE routine
BEGIN
Check state of LED
Set it to the opposite state
Send End of Interrupt (EOI) byte to PIC
Return from ISR
END
INIT_TMR2 Routine
BEGIN
Send Control byte - set for Mode 2 as a Rate Generator
Send low byte of count
Send high byte of count
END
MAIN Program
BEGIN
Initialize the segment registers and stack
Initialize the interrupt vector for the ISR
Call INIT_PIC
Call INIT_TMR2
Enable processor interrupts (already enabled if running
on an STD DOS system)
Go into an idle wait loop, which allows the interrupts
to take care of strobing the LED
END
4-5
Содержание 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...