28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Freescale</strong> <strong>Semiconductor</strong>, Inc.<br />

Serial Peripheral Interface Module (SPI)<br />

Reset<br />

17.9 Reset<br />

Reset initializes the SPI registers to a known startup state as described<br />

in 17.7 Memory Map and Registers. A transmission from a slave after<br />

reset and before writing to the SPIDR register is either indeterminate or<br />

the byte last received from the master before the reset. Reading the<br />

SPIDR after reset returns 0s.<br />

17.10 Interrupts<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<br />

Mode fault<br />

Transmission complete<br />

17.10.1 SPI Interrupt Flag (SPIF)<br />

17.10.2 Mode Fault (MODF) Flag<br />

Table 17-8. SPI Interrupt Request Sources<br />

Interrupt Request Flag Enable Bit<br />

MODF<br />

SPIF<br />

SPIE<br />

SPIF is set after the eighth SCK cycle in a transmission when received<br />

data transfers from the shift register to SPIDR. If the SPIE bit is also set,<br />

SPIF generates an interrupt request. Once SPIF is set, no new data can<br />

be transferred into SPIDR until SPIF is cleared. Clear SPIF by reading<br />

SPISR with SPIF set and then accessing SPIDR. Reset clears SPIF.<br />

MODF is set when the SS pin of a master SPI is driven low and the SS<br />

pin is configured as a mode-fault input. If the SPIE bit is also set, MODF<br />

generates an interrupt request. A mode fault clears the SPE, MSTR, and<br />

DDRSP[2:0] bits. Clear MODF by reading SPISR with MODF set and<br />

then writing to SPICR1. Reset clears MODF.<br />

<strong>MMC2107</strong> – Rev. 2.0<br />

Technical Data<br />

MOTOROLA Serial Peripheral Interface Module (SPI) 397<br />

For More Information On This Product,<br />

Go to: www.freescale.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!