![NXP Semiconductors MKW01Z128 Скачать руководство пользователя страница 127](http://html1.mh-extra.com/html/nxp-semiconductors/mkw01z128/mkw01z128_reference-manual_1722224127.webp)
MKW01Z128 Transceiver - MCU SPI Interface
MKW01xxRM Reference Manual, Rev. 3, 04/2016
8-4
Freescale Semiconductor, Inc.
— The NSS pin goes low at the beginning of the frame and stays low between bytes. It goes high
only after the last byte transfer.
•
FIFO access - special case of burst access for the FIFO
— The address byte corresponds to the address of the FIFO
— The address is not automatically incremented, but stays pointed at the FIFO.
— The data bytes are sequentially written to or read from the FIFO.
— The NSS pin goes low at the beginning of the frame and stays low between bytes. It goes high
only after the last byte transfer
For the defined transaction formats:
•
The falling edge of NSS always initializes the start of the frame transfer.
•
All address and data sent MSB first
•
The address byte (first byte) of the transaction is composed of -
— WNR Bit (Bit 7) - which is “1” for write access and “0” for read access
— Address (Bit 6:0) - 7-bit register address (sent MSB first)
•
Following data byte(s) -
— Write data sent on MOSI
— Read data sent on MISO
•
The rising edge of NSS signifies the end of the frame transfer (NSS must remain asserted for the
entire frame).
8.3.3
MKW0xxx SPI Transaction Timing
As defined in Section 8.3.2, the SPI transaction protocol is composed of two or more bytes per frame.
Although the transceiver is capable of a continuous bit transfer for the entire frame, the MCU SPI port only
transfers data in bursts of 8 bits. There are implications in the way the MCU SPI is programmed and used:
•
The MCU SS signal -
— Cannot be programmed for SPI module master mode driven operation
— Port signal PTE3 must be enabled and programmed as a GPIO output to provide the required
SS signal timing
•
The transaction bytes are sent as a bursts as allowed by the MCU 8-bit SPI module.
Because the MCU is embedded in the SiP and the transceiver only supports the one clock format, the MCU
SPI must be programmed for this clock mode, i.e., clock phase control bit CPHA = 0 and the clock polarity
control bit CPOL = 0. In addition, the MSB-first option must be selected.
Figure 8-3 illustrates a simple single read access transaction timing. The top part of the figure shows the
SPI timing for a single byte transfer. For the complete frame, the SS signal goes low and stays low for both
byte transfers. The byte transfers are actually accomplished as two operations for the MCI SPI peripheral
block.
Содержание 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...