Philips Semiconductors | User’s Manual - Preliminary - | |
|
|
|
UART | P89LPC906/907/908 |
|
|
|
|
| S1... | S16 | S1... | S16 | ...S1 | S16 | S1... | S16 | S1... | S16 | S1... | S16 | S1...S16 | S1...S16 | S1... | S16 | S1... | S16 | S1... | S16 | S1 | ...S16 | ...S1 | S16 |
|
| |||||||||||||||||||
Write to SBUF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
Shift |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
RxD (Data Out) |
|
|
|
|
| D0 | D1 | D2 | D3 |
| D4 |
| D5 | D6 | D7 |
|
|
|
|
|
| |||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
TxD (Shift | Clock) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
TI |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||||
TxD (Shift | Clock) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Transmit
Receive
Figure 8-5: Serial Port Mode 0 (Double Buffering Must Be Disabled)
MORE ABOUT UART MODE 1
Reception is initiated by detecting a
The signal to load SBUF and RB8, and to set RI, will be generated if, and only if, the following conditions are met at the time the final shift pulse is generated: RI = 0 and either SM2=0 or the received stop bit =1. If either of these two conditions is not met, the received frame is lost. If both conditions are met, the stop bit goes into RB8, the 8 data bits go into SBUF, and RI is activated.
TX Clock |
|
|
|
|
|
|
|
|
|
|
|
Write to SBUF |
|
|
|
|
|
|
|
|
|
|
|
Shift |
|
|
|
|
|
|
|
|
|
| Transmit |
TxD |
|
|
|
|
|
|
|
|
|
| |
| Bit | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | Stop Bit | |
|
| ||||||||||
TI |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| INTLO = 0 | INTLO = 1 |
RX Clock |
|
|
|
|
|
|
|
|
|
|
|
RxD | ÷ 16 Reset | Start Bit | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | Stop Bit |
Shift |
|
|
|
|
|
|
|
|
|
| Receive |
|
|
|
|
|
|
|
|
|
|
| |
RI |
|
|
|
|
|
|
|
|
|
|
|
Figure 8-6: Serial Port Mode 1 (Only Single Transmit Buffering Case Is Shown)
2003 Dec 8 | 64 |