Tutorial 6
Tutorial 6
Tutorial 6
Q1- If the 16550 is to generate a serial signal at a baud rate of 2400
baud and the baud rate divisor is programmed for 16, what is the
frequency of the signal?
Answer
The frequency of the signal: 2400 x 16*divisor rate = 2400 x 16*16 = 614,400 Hz
Answer: The Baud rate can be calculated as: 18.432MHz/ ( 16*divisor rate)
A5 do not care
BE0
Tutorial 6
RECV PROC
IN AL, LSR ; read line status register
TEST AL, 1H
JZ RECV
TEST AL, 04H
JNZ ERR
IN AL, DATA ; input received data
RECV END
ERR IN AL, LSR ; read line status register
TEST AL, 20H
JZ ERR
MOV AL, EEH
OUT LSB, AL ; transmit data
RET