APPLICATION
2.5 Serial I/O
3825 GROUP USER’S MANUAL
2–118
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.
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
Serial I/O status
register
[Address 1916]
b1
Shift clock
RXD (SP)
1
0
D6
PAR
SP
D0
ST
Write “1”
D0
D1
D2
Shift clock
Receive enable bit
RXD
ST
Start receiving at falling of ST
Check that ST is “L” level