187
MC96F6432S
ABOV Semiconductor Co., Ltd.
11.12.7 USIn UART Data format
A serial frame is defined to be one character of data bits with synchronization bits (start and stop bits), and optionally a
parity bit for error detection.
The USARTsupports all 30 combinations of the following as valid frame formats.
−
1 start bit
−
5, 6, 7, 8 or 9 data bits
−
no, even or odd parity bit
−
1 or 2 stop bits
A frame starts with the start bit followed by the least significant data bit (LSB). Then the next data bits, up to nine, are
succeeding, ending with the most significant bit (MSB). If parity function is enabled, the parity bit is inserted between
the last data bit and the stop bit. A high-to-low transition on data pin is considered as start bit.When a complete frame
is transmitted, it can be directly followed by a new frame, or the communication line can be set to an idle state. The idle
means high state of data pin. The following figure shows the possible combinations of the frame formats. Bits inside
brackets are optional.
Figure 11.60
Frame Format(USIn)
1 data frame consists of the following bits
•
Idle
No communication on communication line (TXDn/RXDn)
•
St
Start bit (Low)
•
Dn
Data bits (0~8)
•
Parity bit ------------ Even parity, Odd parity, No parity
•
Stop bit(s) ---------- 1 bit or 2 bits
The frame format used by the UART is set by the USInS[2:0], USInPM[1:0] bits in USInCR1 register and USInSB bit in
USInCR3register. The transmitter andreceiver use the same figures.
[D7]
[D6]
[D5]
D4
D3
D2
D1
D0
[D8]
[P]
Idle
St
Sp1
[Sp2]
Idle / St
1 data frame
Character
bits
Содержание MC96F6332SD
Страница 15: ...15 MC96F6432S ABOV Semiconductor Co Ltd 4 Package Diagram Figure 4 1 44 Pin MQFP Package...
Страница 16: ...16 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 2 32 Pin LQFP Package...
Страница 17: ...17 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 3 32 Pin SOP Package...
Страница 18: ...18 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 4 28 Pin SOP Package...
Страница 19: ...19 MC96F6432S ABOV Semiconductor Co Ltd Figure 4 5 28 Pin TSSOP Package...