193
MC96F6432S
ABOV Semiconductor Co., Ltd.
11.12.11
USIn SPI Mode
The USIn can be set to operate in industrial standard SPI compliant mode. The SPI mode has the following features.
−
Full Duplex, Three-wire synchronous data transfer
−
Mater and Slave Operation
−
Supports all four SPIn modes of operation (mode 0, 1, 2, and 3)
−
Selectable LSB first or MSB first data transfer
−
Double buffered transmit and receive
−
Programmable transmit bit rate
When SPI mode is enabled (USInMS[1:0]=
”11”), the slave select (SSn) pin becomes active LOW input in slave mode
operation, or can be output in master mode operation if USInSSEN bit is set to
‘0’.
Note that during SPI mode of operation, the pin RXDn is renamed as MISOn and TXDn is renamed as MOSIn for
compatibility to other SPI devices.
11.12.12
USIn SPI Clock Formats and Timing
To accommodate a wide variety if 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 below shows four combinations of CPOLn and CPHAn for SPI mode 0, 1, 2, and 3.
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)
Table 11.20
CPOLn Functionality
Содержание 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...