|
3822_03 Datasheet, PDF (184/328 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.5 Serial I/O
ÂAfter the lapse of a 1/2 period of the shift
clock from a reception start of stop bit, the
receive buffer full flag (bit 1) of the serial
I/O status register is set to â1.â And a serial
I/O receive interrupt request occurs.
ÂError flag detection is performed concurrently
with the occurrence of a serial I/O receive
interrupt request.
V4: The receive buffer full flag is cleared to â0â
by reading out the receive buffer register.
Shift clock
RXD (SP)
Serial I/O status
register
[Address 1916]
Write â1â
Receive enable bit
RXD
Start receiving at falling of ST
Check that ST is âLâ level
ST D0 D1 D2
D6 PAR SP SP
Shift clock
0
1
b1
ST D0
Fig. 2.5.12 Receive timing example in UART mode
(3) Processing upon occurrence of errors
sParity error, framing error, or summing error
When a parity error, a framing error, or a summing error occurs, the flag corresponding to each error
in the serial I/O status register is set to â1.â These flags are not cleared to â0â automatically, so set
them to â0â by software.
These flags are set to â0â by one of the following operations.
â¢Set the receive enable bit to â0â
â¢Write data (arbitrary) into the serial I/O status register
sOverrun error
An overrun error occurs when data is already input in the receive buffer register and yet all data is
input in the receive shift register.
If an overrun error occurs, the data of the receive shift register is not transferred and the data of the
receive buffer register is held. At this time, even if the data of the receive buffer register is read out,
the data of the receive shift register is not transferred.
Consequently, the data of the receive shift register becomes unreadable, so that the receive data
becomes invalid.
If an overrun error occurs, after set the overrun error flag of the serial I/O status register to â0â,
perform a receive operation again.
The overrun error flag is set to â0â by one of the following operations.
â¢Set the serial I/O enable bit to â0â
â¢Set the receive enable bit to â0â
â¢Write data (arbitrary) into the serial I/O status register
2â118
3822 GROUP USERâS MANUAL
|
▷ |