EasyManuals Logo

Abov MC96F6332D User Manual

Default Icon
327 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #240 background imageLoading...
Page #240 background image
MC96F6432
240 June 22, 2018 Ver. 2.9
11.13.10.2 USI1 UART Receiver Flag and Interrupt
The UART receiver has one flag that indicates the receiver state.
The receive complete (RXC1) flag indicates whether there are unread data in the receive buffer. This flag is set
when there are unread data in the receive buffer and cleared when the receive buffer is empty. If the receiver is
disabled (RXE1=1), the receiver buffer is flushed and the RXC1 flag is cleared.
When the receive complete interrupt enable (RXCIE1) bit in the USI1CR2 register is set and global interrupt is
enabled, the UART receiver complete interrupt is generated while RXC1 flag is set.
The UART receiver has three error flags which are frame error (FE1), data overrun (DOR1) and parity error
(PE1). These error flags can be read from the USI1ST1 register. As received data are stored in the 2-level
receive buffer, these error flags are also stored in the same position of receive buffer. So, before reading
received data from USI1DR register, read the USI1ST1 register first which contains error flags.
The frame error (FE1) flag indicates the state of the first stop bit. The FE1 flag is 0 when the stop bit was
correctly detected as 1, and the FE1 flag is 1 when the stop bit was incorrect, i.e. detected as 0. This flag
can be used for detecting out-of-sync conditions between data frames.
The data overrun (DOR1) flag indicates data loss due to a receive buffer full condition. DOR1 occurs when the
receive buffer is full, and another new data is present in the receive shift register which are to be stored into the
receive buffer. After the DOR1 flag is set, all the incoming data are lost. To prevent data loss or clear this flag,
read the receive buffer.
The parity error (PE1) flag indicates that the frame in the receive buffer had a parity error when received. If
parity check function is not enabled (USI1PM1=0), the PE bit is always read 0.
11.13.10.3 USI1 UART Parity Checker
If parity bit is enabled (USI1PM1=1), the Parity Checker calculates the parity of the data bits in incoming frame
and compares the result with the parity bit from the received serial frame.
11.13.10.4 USI1 UART Disabling Receiver
In contrast to transmitter, disabling the Receiver by clearing RXE1 bit makes the Receiver inactive immediately.
When the receiver is disabled, the receiver flushes the receive buffer, the remaining data in the buffer is all reset,
and the RXD1 pin can be used as a normal general purpose I/O (GPIO).

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Abov MC96F6332D and is the answer not in the manual?

Abov MC96F6332D Specifications

General IconGeneral
BrandAbov
ModelMC96F6332D
CategoryMicrocontrollers
LanguageEnglish

Related product manuals