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.
It
’s because the error flags are stored in the same FIFO position of the receive buffer.
Summary of Contents for MC96F6332D
Page 24: ...MC96F6432 24 June 22 2018 Ver 2 9 4 Package Diagram Figure 4 1 48 Pin LQFP 0707 Package...
Page 25: ...MC96F6432 June 22 2018 Ver 2 9 25 Figure 4 2 44 Pin MQFP Package...
Page 26: ...MC96F6432 26 June 22 2018 Ver 2 9 Figure 4 3 32 Pin LQFP Package...
Page 27: ...MC96F6432 June 22 2018 Ver 2 9 27 Figure 4 4 32 Pin SOP Package...
Page 28: ...MC96F6432 28 June 22 2018 Ver 2 9 Figure 4 5 28 Pin SOP Package...