English
Language : 

Z80180 Datasheet, PDF (159/326 Pages) Zilog, Inc. – Z8018x Family MPU
Z 8018x Fam ily
M PU Us e r M anual
144
allows a common baud rate of up to 512 Kbps to be selected. The BRG
can also be disabled in favor of an external clock on the CKA pin.
The Receiver and Transmitter subsequently divide the output of the BRG
(or the signal from the CKA pin) by 1, 16, or 64, under the control of the
DR bit in the CNTLB register, and the X1 bit in the ASCI Extension
Control REgister. To compute baud rate, use the following formulas:
Where:
BRG mode is bit 3 of the ASEXT register
PS is bit 5 of the CNTLB register
TC is the 16-bit value in the ASCI Time Constant register
If ss2.1.0 = 111, baud rate - fCKA/Clock mode
else if BRG mode baud rate = fPHI/(2*(TC+2)*Clock mode)
else baud rate -fPHI/((10 + 20*PS) * 2^ss*Clock mode)
The TC value for a given baud rate is:
TC = (fPHI/*2*baud rate*Clock mode)) -2
Clock mode depends on bit 4 in ASEXT and bit 3 in CNTLB, as
described in Table 20.
Table 20.Clock Mode Bit Values
X1
DR
Clock Mode
0
0
16
0
1
64
1
0
1
1
1
Reserved, do not use
UM005001-ZMP0400