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 #202 background imageLoading...
Page #202 background image
MC96F6432
202 June 22, 2018 Ver. 2.9
11.12.9.3 USI0 UART Parity Generator
The parity generator calculates the parity bit for the serial frame data to be sent. When parity bit is enabled
(USI0PM1=1), the transmitter control logic inserts the parity bit between the MSB and the first stop bit of the
frame to be sent.
11.12.9.4 USI0 UART Disabling Transmitter
Disabling the transmitter by clearing the TXE0 bit will not become effective until ongoing transmission is
completed. When the Transmitter is disabled, the TXD0 pin can be used as a normal general purpose I/O (GPIO).
11.12.10 USI0 UART Receiver
The UART receiver is enabled by setting the RXE0 bit in the USI0CR2 register. When the receiver is enabled,
the RXD0 pin should be set to RXD0 function for the serial input pin of UART by P4FSR[1:0]. The baud-rate,
mode of operation and frame format must be set before serial reception. In synchronous or SPI operation mode
the SCK0 pin is used as transfer clock, so it should be selected to do SCK0 function by P4FSR[5:4]. In SPI
operation mode the SS0 input pin in slave mode or can be configured as SS0 output pin in master mode. This
can be done by setting USI0SSEN bit in USI0CR3 register.
11.12.10.1 USI0 UART Receiving Rx data
When UART is in synchronous or asynchronous operation mode, the receiver starts data reception when it
detects a valid start bit (LOW) on RXD0 pin. Each bit after start bit is sampled at pre-defined baud-rate
(asynchronous) or sampling edge of SCK0 (synchronous), and shifted into the receive shift register until the first
stop bit of a frame is received. Even if there’s 2
nd
stop bit in the frame, the 2
nd
stop bit is ignored by the receiver.
That is, receiving the first stop bit means that a complete serial frame is present in the receiver shift register and
contents of the shift register are to be moved into the receive buffer. The receive buffer is read by reading the
USI0DR register.
If 9-bit characters are used (USI0S[2:0] = “111”), the ninth bit is stored in the USI0RX8 bit position in the
USI0CR3 register. The 9
th
bit must be read from the USI0RX8 bit before reading the low 8 bits from the USI0DR
register. Likewise, the error flags FE0, DOR0, PE0 must be read before reading the data from USI0DR register.
Its because the error flags are stored in the same FIFO position of the receive buffer.

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