NEC UPD703116 User Manual page 462

32-bit single-chip microcontrollers
Table of Contents

Advertisement

Cautions 1. Even if a reception error occurs, be sure to read 2-frame continuous reception buffer
register n (RXBn)/receive buffer register n (RXBLn). If the RXBn or RXBLn register is not
read, an overrun error will occur at the next data reception, and the reception error state will
continue indefinitely.
2. Reception is always performed with the stop bit length set to 1 bit. A second stop bit is
ignored.
(5) Reception errors
The three types of error flags of parity errors, framing errors, and overrun errors are affected in
synchronization with reception operation. As a result of data reception, the PEn, FEn, and OVEn flags of the
ASISn register are set (1) and a reception completion interrupt request (INTSRn) is generated at the same
time.
The contents of error that occurred during reception can be detected by reading the contents of the PEn,
FEn, and OVEn flags of the ASISn register during the INTSRn interrupt servicing.
The contents of the ASISn register are reset (0) by reading the ASISn register (if the next receive data
contains an error, the corresponding error flag is set (1)).
Error Flag
PEn
FEn
OVEn
(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.
462
CHAPTER 10 SERIAL INTERFACE FUNCTION
Table 10-7. Reception Error Causes
Reception Error
Parity error
The parity specification during transmission did not match
the parity of the reception data
Framing error
No stop bit was detected
Overrun error
The reception of the next data was completed before data
was read from the receive buffer
User's Manual U14492EJ5V0UD
Causes

Advertisement

Table of Contents
loading

Table of Contents