CHAPTER 10 SERIAL INTERFACE FUNCTION
User’s Manual U15195EJ5V0UD
460
(5) Reception errors
The flags for the three types of errors: parity errors, framing errors, and overrun errors, are affected in
synchronization with reception operation. As a result of data reception, the PE1, FE1, and OVE1 flags of the
ASIS1 register are set (1) and a reception completion interrupt request (INTSR1) is generated at the same
time.
The contents of error that occurred during reception can be detected by reading the contents of the PE1,
FE1, and OVE1 flags of the ASIS1 register during the INTSR1 interrupt servicing.
The contents of the ASIS1 register are reset (0) by reading the ASIS1 register (if the next receive data
contains an error, the corresponding error flag is set (1)).
Table 10-7. Reception Error Causes
Error Flag
Reception Error
Causes
PE1 Parity
error
The
parity
specification during transmission did not match
the parity of the reception data
FE1
Framing error
No stop bit was detected
OVE1
Overrun error
The reception of the next data was completed before data
was read from the reception buffer
(6) Parity types and corresponding operation
A parity bit is used to detect a bit error in communication data. Normally, the same type of parity bit is used at
the transmission and reception sides.
(a) Even parity
<1> During
transmission
The parity bit is controlled so that number of bits with the value “1” within the transmit data including
the parity bit is even. The parity bit value is as follows.
•
If the number of bits with the value “1” within the transmit data is odd: 1
•
If the number of bits with the value “1” within the transmit data is even: 0
<2> During reception
The number of bits with the value “1” within the receive data including the parity bit is counted, and a
parity error is generated if this number is odd.