Using Gpio Interrupt To Wake From Stop Mode; Spi Doze Mode; Spi Interrupts - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

There is one way to wake from stop mode via the SPI, which is explained in the
following section.

44.1.8.1 Using GPIO Interrupt to Wake from stop mode

Here are the steps to use a GPIO to create a wakeup upon reception of SPI data in slave
mode:
1. Point the GPIO interrupt vector to the desired interrupt handler.
2. Enable the GPIO input to generate an interrupt on either the rising or falling edge
(depending on the polarity of the chip select signal).
3. Enter Stop or VLPS mode and Wait for the GPIO interrupt.
It is likely that in using this approach the first word of data from
the SPI host might not be received correctly. This is dependent
on the transfer rate used for the SPI, the delay between chip
select assertion and presentation of data, and the system
interrupt latency.

44.1.9 SPI Doze Mode

The Doze mode for the SPI module is the same as the Wait and VLPW modes for the
chip.

44.1.10 SPI Interrupts

The SPI has multiple sources of interrupt requests. However, these sources are OR'd
together to generate a single interrupt request to the interrupt controller. When an SPI
interrupt occurs, read the SPI_SR to determine the exact interrupt source.
44.2 Introduction
The serial peripheral interface (SPI) module provides a synchronous serial bus for
communication between an MCU and an external peripheral device.
Freescale Semiconductor, Inc.
NOTE
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Chapter 44 Serial Peripheral Interface (SPI)
1171

Advertisement

Table of Contents
loading

Table of Contents