Uart bit-rate generation, Table 23 – Zilog Z86193 User Manual
Page 123

Z8
®
CPU
User Manual
UM001604-0108
Serial Input/Output
116
UART Bit-Rate Generation
When Port 3 Mode Register bit 6 is set to 1, the UART is enabled and T0 automatically
becomes the bit rate generator (see
). The end-of-count signal of T0 no longer
generates Interrupt Request IRQ4. Instead, the signal is used as the input to the divide-by-
16 counters (one each for the receiver and the transmitter) that clock the data stream.
The divide chain that generates the bit rate is displayed in
. The bit rate is given
by the following equation:
Bit Rate = XTAL Frequency ÷ (2
x
4
x
p
x
t
x
16)
where p and t are the initial values in Prescaler0 and Counter/Timer0, respectively. The
final divide-by-16 is required because T0 runs at 16 times the bit rate in order to synchro-
nize on the incoming data.
Table 23. UART Register Map
Register Name
Identifier
Hex Address
Port 3 Mode
P3M
F7
T0 Prescaler
PRE0
F5
Timer/Counter0
T0
F4
Timer Mode
TMR
F1
UART
SIO
F0
Figure 106. Port 3 Mode Register and Bit-Rate Generation
Figure 107. Bit Rate Divide Chain
D7 D6 D5 D4 D3 D2 D1 D0
(Write-Only)
Port 3 Mode Register (P3M)
Register F7h
0 P30 Input and P37 = Output
1 P30 Serial In and P37 = Serial Out
P
t
÷
16
Bit Rate
÷
4
÷
2
Clock
PRE0
T0
f
XTAL
- Z86233 Z86243 Z86733 Z86743 Z86C02 Z86C04 Z86C08 Z86C15 Z86C21 Z86C30 Z86C31 Z86C33 Z86C36 Z86C40 Z86C43 Z86C61 Z86C62 Z86C63 Z86C65 Z86C83 Z86C90 Z86C91 Z86C93 Z86C96 Z86E02 Z86E03 Z86E04 Z86E06 Z86E07 Z86E08 Z86E15 Z86E21 Z86E30 Z86E31 Z86E33 Z86E34 Z86E40 Z86E43 Z86E44 Z86E61 Z86E63 Z86E83 Z86K15 Z86L02 Z86L04 Z86L08 Z86L16 Z8E000 Z8E001 Z8PE003