15. Combination of USART, SPI, and I2C (USI)
A96G150 User's manual
182
15.6
USIn UART data format
A serial frame is defined to have one character of data bits with synchronization bits (start and stop bits),
and optionally a parity bit for error detection. USART supports 30 combinations of the followings as a
valid frame format:
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 a start bit followed by the least significant data bit (LSB). The next data bits, up to
nine, are succeeding, ending with the most significant bit (MSB). If parity function is enabled, 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. Figure 83 shows a possible combination of the frame formats. Bits inside
brackets are optional.
Figure 83. Frame Formats (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
A frame format used by the UART is determined by the USInS[2:0], USInPM[1:0] bits in USInCR1
register and USInSB bit in USInCR3register. The transmitter and the receiver 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
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...