The 9Th Bit (Bit 8) In Double Buffering (Modes 1, 2 And 3) - Philips P89LPC920 User Manual

80c51 8-bit microcontroller with two-clock core
Table of Contents

Advertisement

Philips Semiconductors
UART
TxD
Write to
SBUF
Tx Interrupt
Single Buffering (DBMOD/SSTAT.7 = 0), Early Interrupt (INTLO/SSTAT.6 = 0) is Shown
TxD
Write to
SBUF
Tx Interrupt
Double Buffering (DBMOD/SSTAT.7 = 1), Early Interrupt (INTLO/SSTAT.6 = 0) is Shown, No End-
TxD
Write to
SBUF
Tx Interrupt
Double Buffering (DBMOD/SSTAT.7 = 1), Early Interrupt (INTLO/SSTAT.6 = 0) is Shown, With

The 9th bit (bit 8) in double buffering (Modes 1, 2 and 3)

If double buffering is disabled (DBMOD, i.e. SSTAT.7 = 0), TB8 can be written before or after SBUF is written, provided TB8 is
updated before that TB8 is shifted out. TB8 must not be changed again until after TB8 shifting has been completed, as indicated
by the Tx interrupt.
If double buffering is enabled, TB8 MUST be updated before SBUF is written, as TB8 will be double-buffered together with SBUF
data. The operation described in the section "Transmit interrupts with double buffering enabled (Modes 1, 2 and 3)" becomes as
follows:
1. The double buffer is empty initially.
2. The CPU writes to TB8.
3. The CPU writes to SBUF.
4. The SBUF/TB8 data is loaded to the shift register and a Tx interrupt is generated immediately.
5. If there is more data, go to 7, else continue on 6.
6. If there is no more data, then:
- If DBISEL is '0', no more interrupt will occur.
- If DBISEL is '1' and INTLO is '0', a Tx interrupt will occur at the beginning of the STOP bit of the data currently in the shifter
(which is also the last data).
- If DBISEL is '1' and INTLO is '1', a Tx interrupt will occur at the end of the STOP bit of the data currently in the shifter (which
is also the last data).
7. If there is more data, the CPU writes to TB8 again.
2003 Dec 8
ing Tx Interrupt (DBISEL/SnSTAT.4 = 0)
Ending Tx Interrupt (DBISEL/SSTAT.4 = 1)
Figure 9-8: Transmission with and without double buffering
59
User's Manual - Preliminary -
P89LPC920/921/922

Advertisement

Table of Contents
loading

This manual is also suitable for:

P89lpc921P89lpc922

Table of Contents