Application Examples
INIT_UART
PROC
;
; THIS PROCEDURE IS CALLED TO INITIALIZE A UART.
THE FOL-
;
LOWING PARAMETERS ARE INITIALIZED:
;
;
8-BIT CHARACTER LENGTH
;
1-START/STOP BIT
;
9600-BAUD
;
NO PARITY
;
NO INTERRUPTS
;
; INPUTS:
UART - BASE ADDRESS OF UART TO BE INIT
; OUTPUTS:
NONE
; CALLS:
NONE
; DESTROYS:
AX,DX,F/FS
;
MOV
AL,WL8+DLAB
; 8-BIT, DLAB
PUT
UART1+PORT_LINEC ; OUTPUT LINE CONTROL
MOV
DX,UART1
; GET UART
ADD
DX,PORT_DLALB
MOV
AX,BD962
; 9600 BAUD
OUT
DX,AX
; WRITE LSB & MSB
GET
UART1+PORT_LINEC ; RESET DLAB
AND
AL,7FH
; ISOLATE INIT CODE
OUT
DX,AL
; WRITE LINE CONTROL
MOV
AL,0
; DISABLE ALL INTERRUPTS
; INITIALLY
PUT
UART1+PORT_INTEN ; IN THE INTERRUPT ENABLE REG
RET
INIT_UART
ENDP
;
4-25
Содержание 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...