15. Combination of USART, SPI, and I2C (USI)
A96G150 User's manual
190
15.11
USIn SPI clock formats and timing
To accommodate a wide variety of synchronous serial peripherals from different manufacturers, the
USIn has a clock polarity bit (CPOLn) and a clock phase control bit (CPHAn) to select one of four clock
formats for data transfers. CPOLn selectively insert an inverter in series with the clock. CPHAn chooses
between two different clock phase relationships between the clock and data. Note that CPHAn and
CPOLn bits in USInCR1 register have different meanings according to the USInMS[1:0] bits which
decides the operating mode of USIn.
Table 30 shows four combinations of CPOLn and CPHAn for SPI mode 0, 1, 2, and 3.
Table 30. CPOLn Functionality
SPI Mode
CPOLn
CPHAn
Leading Edge
Trailing Edge
0
0
0
Sample (Rising)
Setup (Falling)
1
0
1
Setup (Rising)
Sample (Falling)
2
1
0
Sample (Falling)
Setup (Rising)
3
1
1
Setup (Falling)
Sample (Rising)
Содержание 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...