ST72F324BK6TAS STMicroelectronics, ST72F324BK6TAS Datasheet - Page 102

no-image

ST72F324BK6TAS

Manufacturer Part Number
ST72F324BK6TAS
Description
8-BIT MCU
Manufacturer
STMicroelectronics
Datasheet
On-chip peripherals
10.4.4
Note:
Note:
102/198
The SPIF bit can be cleared during a second transmission; however, it must be cleared
before the second SPIF bit in order to prevent an Overrun condition (see
(OVR) on page
Clock phase and clock polarity
Four possible timing relationships may be chosen by software, using the CPOL and CPHA
bits (see
The idle state of SCK must correspond to the polarity selected in the SPICSR register (by
pulling up SCK if CPOL = 1 or pulling down SCK if CPOL = 0).
The combination of the CPOL clock polarity and CPHA (clock phase) bits selects the data
capture clock edge
Figure 52
The diagram may be interpreted as a master or slave timing diagram where the SCK, MISO
and MOSI pins are directly connected between the master and the slave device.
If CPOL is changed at the communication byte boundaries, the SPI must be disabled by
resetting the SPE bit.
Figure 52. Data clock timing diagram
1. This figure should not be used as a replacement for parametric information. Refer to the Electrical
Characteristics chapter.
Figure
(from master)
(from slave)
MISO
(from slave)
SCK
(CPOL = 0)
MOSI
Capture strobe
(CPOL = 1)
SCK
(CPOL = 0)
(from master)
Capture strobe
(CPOL = 1)
(to slave)
SCK
MISO
MOSI
SCK
SS
(to slave)
SS
shows an SPI transfer with the four combinations of the CPHA and CPOL bits.
103).
52).
MSB
MSB
MSB
MSB
Doc ID13466 Rev 4
Bit 6
Bit 6
Bit 6
Bit 6
Bit 5
Bit 5
Bit 5
Bit 5
(1)
CPHA = 0
CPHA = 1
Bit 4
Bit 4
Bit 4
Bit 4
Bit3
Bit3
Bit3
Bit3
Bit 2
Bit 2
Bit 2
Bit 2
Bit 1
Bit 1
Bit 1
Bit 1
LSB
LSB
LSB
Overrun condition
LSB
ST72324B-Auto

Related parts for ST72F324BK6TAS