Application Examples
;
MOV
AL,EIRBO
; ENABLE DATA TRANSMIT
; INTERRUPT
PUT
UART1+PORT_INTEN ; AT THE UART INTERRUPT
; ENABLE REG
STI
; ENABLE INTERRUPTS
MOV
DX,UART1+PORT_LINST ; GET CONSOLE STATUS
WAIT_RDY:
IN
AL,DX
; INPUT THE STATUS
AND
AL,THRE
; CHECK IT FOR TXMIT BUF EMPTY
JZ
WAIT_RDY
; WAIT IF NOT EMPTY
;
MOV
AL,0AAH
; PLACE A BYTE IN THE OUTREG
PUT
UART1+PORT_XMT50
;
AGAIN:
XOR
CX,CX
; ZERO THE CX REG (MAX COUNT)
WAIT_LP:
LOOP
WAIT_LP
; WAIT FOR THE INTERRUPT
CMP
INT_FLAG,0
; CHECK TO SEE IT WAS RECEIVED
JNE
AGAIN
; WAIT MORE IF NOT
CALL
LED_STROBE
; STROBE LED IF SO
MOV
AX,4C00H
; RETURN TO STD DOS
INT
21H
; USING INT 21H, FUNCTION 4C
;
CODE
ENDS
END
START
4-27
Содержание 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...