MKW01Z128 Transceiver - MCU SPI Interface
MKW01xxRM Reference Manual, Rev. 3, 04/2016
Freescale Semiconductor, Inc.
8-3
8.3.1
SPI Signal Definitions
The SPI signals of SS, SCK, MOSI, and MISO are defined in the following paragraphs.
8.3.1.1
Slave Select (SS or NSS)
A transaction on the SPI port is framed by the active low Slave Select (SS) input signal which is driven by
the MCU as master.
8.3.1.2
SPI Clock (SCK or SPSCK)
The host drives the SPI Clock (SCK) input to the transceiver. Data is clocked into the master or slave on
the leading (rising) edge of the return-to-zero SPSCK and data changes state on the trailing (falling) edge
of SPSCK.
NOTE
•
The SPI Bus protocol as defined by the Motorola/Freescale standard
supports other clock/data timing, however, the described mode is the
only one used.
•
For the MKW0xxx microcontroller, the SPI clock format is the clock
phase control bit CPHA = 0 and the clock polarity control bit CPOL = 0.
8.3.1.3
Master Out / Slave In (MOSI)
The Master Out/Slave In (MOSI) signal presents incoming data from the host to the transceiver (slave
input).
8.3.1.4
Master In / Slave Out (MISO)
The Master In/Slave Out (MISO) signal presents incoming data from the transceiver to the MCU (master
input).
8.3.2
MKW0xxx SPI Transaction Protocol
Although standard SPI protocol is based on 8-bit transfers, the transceiver imposes a higher level
transaction protocol that is based on multiple 8-bit transfers per transaction. There are three SPI transaction
modes defined to access the transceiver registers:
•
SINGLE access - an address byte is followed by a data byte
— For a write access, the data byte (MOSI) is written to the addressed transceiver register
— For a read access, the data byte (MISO) is read from the addressed transceiver register
— The NSS pin goes low at the beginning of the frame and goes high after the data byte
•
BURST access - an address byte is followed by several data bytes.
— The address byte provides the starting register address for the data burst
— The address is automatically incremented internally between each data byte.
— This mode supports both read and write accesses.
Содержание MKW01Z128
Страница 7: ...MKW01xxRM Reference Manual Rev 3 04 2016 viii Freescale Semiconductor Inc...
Страница 11: ...MKW01xxRM Reference Manual Rev 3 04 2016 xii Freescale Semiconductor Inc...
Страница 31: ...MKW01Z128 Pins and Connections MKW01xxRM Reference Manual Rev 3 04 2016 2 8 Freescale Semiconductor Inc...
Страница 129: ...MKW01Z128 Transceiver MCU SPI Interface MKW01xxRM Reference Manual Rev 3 04 2016 8 6 Freescale Semiconductor Inc...
Страница 130: ...MKW01xxRM Reference Manual Rev 3 04 2016 Freescale Semiconductor Inc A 1 Appendix A MKW01Z128 MCU Reference Manual...
Страница 131: ...MKW01Z128 MCU Reference Manual MKW01xxRM Reference Manual Rev 3 04 2016 A 2 Freescale Semiconductor Inc...
Страница 133: ...MKW01Z128 MCU Reference Manual Rev 3 04 2016 2 Freescale Semiconductor Inc...
Страница 221: ...Private Peripheral Bus PPB memory map MKW01Z128 MCU Reference Manual Rev 3 04 2016 90 Freescale Semiconductor Inc...
Страница 233: ...Module clocks MKW01Z128 MCU Reference Manual Rev 3 04 2016 102 Freescale Semiconductor Inc...
Страница 255: ...Module operation in low power modes MKW01Z128 MCU Reference Manual Rev 3 04 2016 124 Freescale Semiconductor Inc...
Страница 279: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 148 Freescale Semiconductor Inc...
Страница 305: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 174 Freescale Semiconductor Inc...
Страница 325: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 194 Freescale Semiconductor Inc...
Страница 379: ...Application information MKW01Z128 MCU Reference Manual Rev 3 04 2016 248 Freescale Semiconductor Inc...
Страница 387: ...Memory map register descriptions MKW01Z128 MCU Reference Manual Rev 3 04 2016 256 Freescale Semiconductor Inc...
Страница 465: ...Functional Description MKW01Z128 MCU Reference Manual Rev 3 04 2016 334 Freescale Semiconductor Inc...
Страница 501: ...Initialization Application information MKW01Z128 MCU Reference Manual Rev 3 04 2016 370 Freescale Semiconductor Inc...
Страница 513: ...Interrupts MKW01Z128 MCU Reference Manual Rev 3 04 2016 382 Freescale Semiconductor Inc...
Страница 517: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 386 Freescale Semiconductor Inc...
Страница 611: ...Application information MKW01Z128 MCU Reference Manual Rev 3 04 2016 480 Freescale Semiconductor Inc...
Страница 633: ...CMP Trigger Mode MKW01Z128 MCU Reference Manual Rev 3 04 2016 502 Freescale Semiconductor Inc...
Страница 643: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 512 Freescale Semiconductor Inc...
Страница 671: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 540 Freescale Semiconductor Inc...
Страница 803: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 672 Freescale Semiconductor Inc...
Страница 843: ...Functional description MKW01Z128 MCU Reference Manual Rev 3 04 2016 712 Freescale Semiconductor Inc...
Страница 877: ...Initialization application information MKW01Z128 MCU Reference Manual Rev 3 04 2016 746 Freescale Semiconductor Inc...