191
MC96F6432A
ABOV Semiconductor Co., Ltd.
11.12.9.3
USIn UART Parity Generator
The parity generator calculates the parity bit for the serial frame data to be sent. When parity bit is enabled
(USInPM1=1), the transmitter control logic inserts the parity bit between the bits and the first stop bit of the frame to be
sent.
11.12.9.4
USIn UART Disabling Transmitter
Disabling the transmitter by clearing the TXEn bit will not become effective until ongoing transmission is completed.
When the Transmitter is disabled, the TXDn pin can be used as a normal general purpose I/O (GPIO).
11.12.10
USIn UART Receiver
The USART receiver is enabled by setting the RXEn bit in the USInCR2 register. When the receiver is enabled, the
RXDn pin should be set to RXDn function for the serial input pin of UART by P4FSR[1:0] and 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 SCKn pin is used as transfer clock input, so it should be selected to do SCKn function by P4FSR[5:4] and
P2FSRL[3:2]. In SPI operation mode the SSn input pin in slave mode or can be configured as SSn output pin in
master mode. This can be done by setting USInSSEN bit in USInCR3 register.
11.12.10.1
USIn 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 SCKn (synchronous) and shifted into the receive shift register until the first stop bit of a frame is
received. Even if there
’s the second stop bit in the frame, the second stop bit is ignored by the receiver. That is,
receiving the first stop bit means that a complete serial frame is presented 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 USInDR register.
If 9-bit characters are used (USInS[2:0] =
“111”), the ninth bit is stored in the USInRX8 bit position in the USInCR3
register. The ninth bit must be read from the USInRX8 bit before reading the low 8 bits from the USInDR register.
Likewise, the error flags FEn, DORn, PEn must be read before reading the data from USInDR register. It
’s because
the error flags are stored in the same FIFO position of the receive buffer.
Содержание MC96F6332A
Страница 16: ...16 MC96F6432A ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 48 Pin QFN Package ...
Страница 17: ...17 MC96F6432A ABOV Semiconductor Co Ltd Figure 4 2 44 Pin MQFP Package ...
Страница 18: ...18 MC96F6432A ABOV Semiconductor Co Ltd Figure 4 3 32 Pin LQFP Package ...
Страница 19: ...19 MC96F6432A ABOV Semiconductor Co Ltd Figure 4 4 32 Pin SOP Package ...
Страница 20: ...20 MC96F6432A ABOV Semiconductor Co Ltd Figure 4 5 28 Pin SOP Package ...