English
Language : 

EZ80L92MCU Datasheet, PDF (123/241 Pages) Zilog, Inc. – eZ80Acclaim Flash Microcontrollers
eZ80L92 MCU
Product Specification
108
UARTx_IIR register and determines that the interrupt occurs due to an empty
UARTx_THR register. When the application determines this occurrence, the application
writes the transmit data bytes to the UARTx_THR register. The number of bytes that the
application writes depends on whether or not the FIFO is enabled. If the FIFO is enabled,
the application can write 16 bytes at a time. If not, the application can write one byte at a
time. As a result of the first Write, the interrupt is deactivated. The processor then waits for
the next interrupt. When the interrupt is raised by the UART module, the processor repeats
the same process until it exhausts all of the data for transmission.
To control and check the modem status, the application sets up the modem by writing to
the UARTx_MCTL register and reading the UARTx_MCTL register before starting the
process mentioned above.
Data Transfers—Receive. The receiver is always enabled, and it continually checks for
the start bit on the RxD input signal. When an interrupt is raised by the UART module, the
application reads the UARTx_IIR register and determines the cause for the interrupt. If the
cause is a line status interrupt, the application reads the UARTx_LSR register, reads the
data byte and then can discard the byte or take other appropriate action. If the interrupt is
caused by a receive-data-ready condition, the application alternately reads the
UARTx_LSR and UARTx_RBR registers and removes all of the received data bytes. It
reads the UARTx_LSR register before reading the UARTx_RBR register to determine
that there is no error in the received data.
To control and check modem status, the application sets up the modem by writing to the
UARTx_MCTL register and reading the UARTx_MSR register before starting the process
mentioned above.
Poll Mode Transfers. When interrupts are disabled, all data transfers are referred to as
poll mode transfers. In poll mode transfers, the application must continually poll the
UARTx_LSR register to transmit or receive data without enabling the interrupts. The
same holds true for the UARTx_MSR register. If the interrupts are not enabled, the data in
the UARTx_IIR register cannot be used to determine the cause of interrupt.
Baud Rate Generator
The Baud Rate Generator consists of a 16-bit downcounter, two registers, and associated
decoding logic. The initial value of the Baud Rate Generator is defined by the two BRG
Divisor Latch registers, {UARTx_BRG_H, UARTx_BRG_L}. At the rising edge of each
system clock, the BRG decrements until it reaches the value 0001h. On the next system
clock rising edge, the BRG reloads the initial value from {UARTx_BRG_H,
UARTx_BRG_L) and outputs a pulse to indicate the end-of-count. Calculate the UART
data rate with the following equation:
System Clock Frequency
UART Data Rate (bits/s) =
16 x (UART Baud Rate Generator Divisor)
PS013012-1004
P R E L I M I N A R Y Universal Asynchronous Receiver/Transmitter