MC97F2664
170
April 11, 2014 Ver. 1.4
11.10.6.3 Parity Generator
The parity generator calculates the parity bit for the serial frame data to be sent. When parity bit is enabled
(UnPM[1]=1), the transmitter control logic inserts the parity bit between the MSB and the first stop bit of the frame
to be sent.
11.10.6.4 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.10.7 UART Receiver
The UART2/3/4 receiver is enabled by setting the RXEn bit in the UARTnCR2 register. When the receiver is
enabled, the RXDn pin should be set to the input port for the serial input pin of UART2/3/4
by P24IO/ P45IO/
P47IO bit. The baud-rate, mode of operation and frame format must be set before serial reception.
11.10.7.1 Receiving Rx data
The receiver starts data reception when it detects a valid start bit (LOW) on RXDn pin. Each bit after start bit is
sampled at pre-defined baud-rate (asynchronous) 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 UARTnDR
register.
If 9-bit characters are used (Un
SIZE[2:0] = “111”), the ninth bit is stored in the RX8n bit position in the
UARTnCR3 register. The 9
th
bit must be read from the RX8n bit before reading the low 8 bits from the UARTnDR
register.
Likewise, the error flags FEn, DORn, PEn must be read before reading the data from UARTnDR register.
It
’s because the error flags are stored in the same FIFO position of the receive buffer.
Содержание MC97F2664
Страница 20: ...MC97F2664 20 April 11 2014 Ver 1 4 4 Package Diagram Figure 4 1 64 Pin LQFP 1010 Package...
Страница 21: ...MC97F2664 April 11 2014 Ver 1 4 21 Figure 4 2 64 Pin LQFP 1414 Package...
Страница 22: ...MC97F2664 22 April 11 2014 Ver 1 4 Figure 4 3 64 Pin QFN Package...
Страница 23: ...MC97F2664 April 11 2014 Ver 1 4 23 Figure 4 4 44 Pin MQFP 1010 Package...