A96G150 User's manual
15. Combination of USART, SPI, and I2C (USI)
211
USInCR1 (USIn Control Register 1: For UART, SPI, and I2C mode): D9H/E9H, n = 0, 1
7
6
5
4
3
2
1
0
USInMS1
USInMS0
USInPM1
USInPM0
USInS2
USInS1
ORDn
USInS0
CPHAn
CPOLn
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
USInMS[1:0]
Selects operation mode of USIn
USInMS1
USInMS0
Operation mode
0
0
Asynchronous Mode (UART)
0
1
Synchronous Mode
1
0
I2C mode
1
1
SPI mode
USInPM[1:0]
Selects parity generation and check methods (only UART mode)
USInPM1
USInPM0
Parity
0
0
No Parity
0
1
Reserved
1
0
Even Parity
1
1
Odd Parity
USInS[2:0]
When in asynchronous or synchronous mode of operation,
selects the length of data bits in frame
USInS2
USInS1
USInS0
Data Length
0
0
0
5 bit
0
0
1
6 bit
0
1
0
7 bit
0
1
1
8 bit
1
0
0
Reserved
1
0
1
Reserved
1
1
0
Reserved
1
1
1
9 bit
ORDn
This bit in the same bit position with USInS1. The MSB of the data byte
is transmitted first when set to
‘1’ and the LSB when set to ‘0’ (only SPI
mode)
0
LSB-first
1
MSB-first
CPHAn
This bit is in the same bit position with USInS0. This bit determines if data
are sampled on the leading or trailing edge of SCKn (only SPI mode).
CPOLn
CPHAn
Leading edge
Trailing edge
0
0
Sample (Rising)
Setup (Falling)
0
1
Setup (Rising)
Sample (Falling)
1
0
Sample (Falling)
Setup (Rising)
1
1
Setup (Falling)
Sample (Rising)
CPOLn
This bit determines the clock polarity of ACK in synchronous or SPI
mode.
0
TXD change @Rising Edge, RXD change @Falling Edge
1
TXD change @Falling Edge, RXD change @Rising Edge
Содержание 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...