Download UM - Keil

Transcript
D
D
D
D
D
R
R
R
R
R
A
A
A
A
A
FT
FT
FT
FT
UM<nnnnn>
FT
D
R
R
FT
FT
FT
FT
P89LPC9201/9211/922A1/9241/9251 User manual
A
A
A
A
R
R
D
D
D
NXP Semiconductors
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
– 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).
D
FT
FT
A
A
R
R
D
– 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).
D
D
R
A
– 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.
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 ending TX interrupt (DBISEL/SSTAT.4 = 0)
TXD
write to
SBUF
TX interrupt
double buffering (DBMOD/SSTAT.7 = 1), early interrupt (INTLO/SSTAT.6 = 0) is shown,
with ending TX interrupt (DBISEL/SSTAT.4 = 1)
002aaa928
Fig 28. Transmission with and without double buffering
10.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.
<Document ID>
User manual
© NXP B.V. 2009. All rights reserved.
Rev. 01.xx — 5 February 2009
69 of 136
A
– Go to 3.
R
– 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.
D
– 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.
FT
6. If there is more data, the CPU writes to SBUF again. Then: