
Semiconductor Group
57
On-Chip Peripheral Components
7.2.4.3 Mode 2, 9-Bit UART
Mode 2 is functionally identical to mode 3 (see below). The only exception is, that in mode 2 the
baud rate can be programmed to two fixed quantities: either 1/32 or 1/64 of the oscillator frequency.
In mode 3 the baud rate clock is generated by timer 1, which is incremented by a rate of
f
OSC
/12 or
by the internal baud rate generator.
7.2.4.4 Mode 3, 9-Bit UART
Eleven bits are transmitted (through TxD), or received (through RxD): a start bit (0), 8 data bits (LSB
first), a programmable 9th data bit, and a stop bit (1). On transmission, the 9th data bit (TB8) can
be assigned the value of 0 or 1. On reception the 9th data bit goes into RB8 in SCON.
The baud rate is generated by either using timer 1 or the internal baud rate generator (see section
7.2.3).
Figures 7-18 a) and b) show a functional diagram of the serial interfaces in mode 2 and 3 and
associated timing. The receive portion is exactly the same as in mode 1. The transmit portion differs
from mode 1 only in the 9th bit of the transmit shift register.
Transmission is initiated by any instruction that uses SBUF as a destination register. The "write to
SBUF" signal also loads TB8 into the 9th bit position of the transmit shift register and flags the TX
control unit that a transmission is requested. Transmission commences at S1P1 of the machine
cycle following the next rollover in the divide-by-16 counter (thus the bit times are synchronized to
the divide-by-16 counter, and not to the "write-to-SBUF" signal).
The transmission begins with the activation of SEND, which puts the start bit to TxD. One bit time
later, DATA is activated which enables the output bit of transmit shift register to TxD. The first shift
pulse occurs one bit time after that. The first shift clocks a 1 (the stop bit) into the 9th bit position of
the shift register. Thereafter, only zeros are clocked in. Thus, as data shift out to the right, zeros are
clocked in from the left. When TB8 is at the output position of the shift register, then the stop bit is
just left of the TB8, and all positions to the left of that contain zeros.
This condition flags the TX control unit to do one last shift and then deactivate SEND and set TI.
This occurs at the 11th divide-by-16 rollover after "write-to-SBUF".
Reception is initiated by a detected 1-to-0 transition at RxD. For this purpose RxD is sampled of a
rate of 16 times whatever baud rate has been established. When a transition is detected, the divide-
by-16 counter is immediately reset, and 1FH is written to the input shift register.
*
Summary of Contents for SAB 80515 Series
Page 9: ...Semiconductor Group 9 Introduction Figure 1 2 Block Diagram ...
Page 12: ...Semiconductor Group 12 Fundamental Structure Figure 2 1 Detailed Block Diagram ...
Page 18: ...Semiconductor Group 18 Central Processing Unit Figure 3 1 Fetch Execute Sequence ...
Page 73: ...Semiconductor Group 73 On Chip Peripheral Components Figure 7 25 A D Converter Block Diagram ...
Page 83: ...Semiconductor Group 83 On Chip Peripheral Components Figure 7 33 a Timer 2 Block Diagram ...
Page 215: ...Device Specifications Semiconductor Group 215 ...
Page 217: ...Device Specifications Semiconductor Group 217 Pin Configuration P LCC 68 ...
Page 219: ...Device Specifications Semiconductor Group 219 Logic Symbol ...
Page 226: ...Device Specifications Semiconductor Group 226 Figure 1 Block Diagram ...
Page 229: ...Device Specifications Semiconductor Group 229 Figure 2 Memory Address Spaces ...
Page 239: ...Device Specifications Semiconductor Group 239 Figure 4 Block Diagram of the A D Converter ...
Page 241: ...Device Specifications Semiconductor Group 241 Figure 5 Interrupt Request Sources ...
Page 242: ...Device Specifications Semiconductor Group 242 Figure 6 Interrupt Priority Level Structure ...