English
Language : 

EZ80F91MCU Datasheet, PDF (208/396 Pages) Zilog, Inc. – eZ80Acclaim-TM Flash Microcontrollers
eZ80F91 MCU
Product Specification
189
Calculate the UART data rate with the following equation:
System Clock Frequency
UART Data Rate (bits/s) =
16 X UART Baud Rate Generator Divisor
Upon RESET, the 16-bit BRG divisor value resets to the smallest allowable value
of 0002h. Therefore, the minimum BRG clock divisor ratio is 2. A software Write to
either the Low- or High-byte registers for the BRG Divisor Latch causes both the
Low and High bytes to load into the BRG counter, and causes the count to restart.
The divisor registers can only be accessed if bit 7 of the UART Line Control regis-
ter (UARTx_LCTL) is set to 1. After reset, this bit is reset to 0.
Recommended Use of the Baud Rate Generator
The following is the normal sequence of operations that should occur after the
eZ80F91 is powered on to configure the Baud Rate Generator:
1. Assert and deassert RESET.
2. Set UARTx_LCTL[7] to 1 to enable access of the BRG divisor registers.
3. Program the UARTx_BRG_L and UARTx_BRG_H registers.
4. Clear UARTx_LCTL[7] to 0 to disable access of the BRG divisor registers.
BRG Control Registers
UART Baud Rate Generator Register—Low and High Bytes
The registers hold the Low and High bytes of the 16-bit divisor count loaded by
the CPU for UART baud rate generation. The 16-bit clock divisor value is returned
by {UARTx_BRG_H, UARTx_BRG_L}, where x is either 0 or 1 to identify the two
available UART devices. Upon RESET, the 16-bit BRG divisor value resets to
0002h. The initial 16-bit divisor value must be between 0002h and FFFFh,
because the values 0000h and 0001h are invalid and proper operation is not guar-
anteed at these two values. As a result, the minimum BRG clock divisor ratio is 2.
A Write to either the Low- or High-byte registers for the BRG Divisor Latch causes
both bytes to be loaded into the BRG counter. The count is then restarted.
Bit 7 of the associated UART Line Control register (UARTx_LCTL) must be set to
1 to access this register. See Tables 94 and 95. Refer to the UART Line Control
Register (UARTx_LCTL) on page 196 for more information.
PS019209-0504
P R E L I M I N A R Y Universal Asynchronous Receiver/Transmitter