MC1321x Serial Peripheral Interface (SPI)
MC1321x Reference Manual, Rev. 1.6
4-16
Freescale Semiconductor
Figure 4-12. SPI Singular Read Access
shows a write access transaction.
Figure 4-13. SPI Singular Write Access
4.9.2
SPI Singular Transaction Protocol
A SPI transaction is divided into a header field and a payload. The header field is always 8 bits, while the
payload data is in multiples of 2 bytes or 16 bits. A singular SPI transaction contains 24 bits of information.
The header field contains a R/W bit and a 6-bit register address, as shown in
.
Figure 4-14. SPI Header and Payload Definition
The R/W bit identifies the transfer as a read (R/W =1) or write (R/W =0). The lower 6 bits in the header
determines which of the 64 possible SPI locations is to be accessed for a read or write operation although
not all possible addresses are implemented. The register address field also provides the starting address for
a recursive read or write operation as described later. The register data is presented MSB first.
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
CE
SPICLK
MOSI
1
2
3
4
5
6
7
8
MISO
Valid data
Valid data
Valid data
Header
Payload
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
CE
SPICLK
MOSI
1
2
3
4
5
6
7
8
MISO
Valid data
Valid data
Valid data
Header
Payload
0
Содержание freescale semiconductor MC13211
Страница 40: ...MC1321x Pins and Connections MC1321x Reference Manual Rev 1 6 2 6 Freescale Semiconductor...
Страница 100: ...MC1321x Serial Peripheral Interface SPI MC1321x Reference Manual Rev 1 6 4 24 Freescale Semiconductor...
Страница 166: ...Modem Modes of Operation MC1321x Reference Manual Rev 1 6 7 22 Freescale Semiconductor...
Страница 172: ...Modem Interrupt Description MC1321x Reference Manual Rev 1 6 8 6 Freescale Semiconductor...
Страница 186: ...MCU Modes of Operation MC1321x Reference Manual Rev 1 6 10 8 Freescale Semiconductor...
Страница 208: ...MCU Memory MC1321x Reference Manual Rev 1 6 11 22 Freescale Semiconductor...
Страница 244: ...MCU Parallel Input Output MC1321x Reference Manual Rev 1 6 13 20 Freescale Semiconductor...
Страница 288: ...MCU Central Processor Unit CPU MC1321x Reference Manual Rev 1 6 15 20 Freescale Semiconductor...
Страница 308: ...MCU Timer PWM TPM Module MC1321x Reference Manual Rev 1 6 17 16 Freescale Semiconductor...
Страница 338: ...Inter Integrated Circuit IIC MC1321x Reference Manual Rev 1 6 19 14 Freescale Semiconductor...
Страница 372: ...Development Support MC1321x Reference Manual Rev 1 6 21 20 Freescale Semiconductor...