Receive Errors; Framing Error; Parity Error; Overrun Error - Epson S1C31D50 Technical Manual

Cmos 32-bit single chip
Hide thumbs Also See for S1C31D50:
Table of Contents

Advertisement

The carrier modulation output frequency is determined by the UART3_nCAWF.CRPER[7:0] bit settings. Use the
following equations to calculate the setting values for obtaining the desired frequency.
Carrier modulation output frequency = ———————— [Hz]
Where
CLK_UART3: UART3 operating clock frequency [Hz]
CRPER:
UART3_nCAWF.CRPER[7:0] setting value (0 to 255)

13.6 Receive Errors

Three different receive errors, framing error, parity error, and overrun error, may be detected while receiving data.
Since receive errors are interrupt causes, they can be processed by generating interrupts.

13.6.1 Framing Error

The UART3 determines loss of sync if a stop bit is not detected (when the stop bit is received as 0) and assumes
that a framing error has occurred. The received data that encountered an error is still transferred to the receive data
buffer and the UART3_nINTF.FEIF bit (framing error interrupt flag) is set to 1 when the data becomes ready to
read from the UART3_nRXD register.
Note: Framing error/parity error interrupt flag set timings
These interrupt flags will be set after the data that encountered an error is transferred to the re-
ceive data buffer. Note, however, that the set timing depends on the buffer status at that point.
• When the receive data buffer is empty
The interrupt flag will be set when the data that encountered an error is transferred to the re-
ceive data buffer.
• When the receive data buffer has a one-byte free space
The interrupt flag will be set when the first data byte already loaded is read out after the data
that encountered an error is transferred to the second byte entry of the receive data buffer.

13.6.2 Parity Error

If the parity function is enabled, a parity check is performed when data is received. The UART3 checks matching
between the data received in the shift register and its parity bit, and issues a parity error if the result is a non-match.
The received data that encountered an error is still transferred to the receive data buffer and the UART3_nINTF.
PEIF bit (parity error interrupt flag) is set to 1 when the data becomes ready to read from the UART3_nRXD regis-
ter (see the Note on framing error).

13.6.3 Overrun Error

If the receive data buffer is still full (two bytes of received data have not been read) when a data reception to the
shift register has completed, an overrun error occurs as the data cannot be transferred to the receive data buffer.
When an overrun error occurs, the UART3_nINTF.OEIF bit (overrun error interrupt flag) is set to 1.
S1C31D50/D51 TECHNICAL MANUAL
(Rev. 2.00)
CLK_UART3
(CRPER + 1) × 2
Seiko Epson Corporation
13 UART (UART3)
(Eq. 13.2)
13-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c31d51

Table of Contents