Serial peripheral interface (SPI)
Figure 289. I
CK
WS
SD
Data are latched on the falling edge of CK (for the transmitter) and are read on the rising
edge (for the receiver). The WS signal is also latched on the falling edge of CK.
Figure 290. I
CK
WS
SD
This mode needs two write or read operations to/from the SPI_DR.
●
In transmission mode:
if 0x8EAA33 has to be sent (24-bit):
Figure 291. Transmitting 0x8EAA33
First write to Data register
823/1422
2
S Philips protocol waveforms (16/32-bit full accuracy, CPOL = 0)
Transmission
May be 16-bit, 32-bit
MSB
Channel left
2
S Philips standard waveforms (24-bit frame with CPOL = 0)
Transmission
24-bit data
MSB
Channel left 32-bit
0x8EAA
Doc ID 018909 Rev 4
Reception
Reception
8-bit remaining
0 forced
LSB
Second write to Data register
0x33XX
Only the 8 MSBs are sent to complete the 24 bits
8 LSB bits have no meaning and could be
anything
RM0090
LSB MSB
Channel right
Channel right
Need help?
Do you have a question about the STM32F40 Series and is the answer not in the manual?
Questions and answers