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

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors
6. If there is more data, the CPU writes to SBUF again. Then:
TXD
write to
SBUF
TX interrupt
TXD
write to
SBUF
TX interrupt
TXD
write to
SBUF
TX interrupt
Fig 30. Transmission with and without double buffering.

11.18 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.
User manual
– If DBISEL is logic 1 and INTLO is logic 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 logic 1 and INTLO is logic 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).
– Note that if DBISEL is logic 1 and the CPU is writing to SBUF when the STOP bit of
the last data is shifted out, there can be an uncertainty of whether a Tx interrupt is
generated already with the UART not knowing whether there is any more data
following.
– If INTLO is logic 0, the new data will be loaded and a Tx interrupt will occur at the
beginning of the STOP bit of the data currently in the shifter.
– If INTLO is logic 1, the new data will be loaded and a Tx interrupt will occur at the
end of the STOP bit of the data currently in the shifter.
– Go to 3.
single buffering (DBMOD/SSTAT.7 = 0), early interrupt (INTLO/SSTAT.6 = 0) is shown
double buffering (DBMOD/SSTAT.7 = 1), early interrupt (INTLO/SSTAT.6 = 0) is shown,
no ending TX interrupt (DBISEL/SSTAT.4 = 0)
double buffering (DBMOD/SSTAT.7 = 1), early interrupt (INTLO/SSTAT.6 = 0) is shown,
with ending TX interrupt (DBISEL/SSTAT.4 = 1)
Rev. 03 — 7 June 2005
UM10119
P89LPC938 User manual
002aaa928
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
73 of 139

Advertisement

Table of Contents
loading

Table of Contents