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 />

Memory Map and Registers<br />

17.7.4 SPI Status Register<br />

nc...<br />

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

Address: 0x00cb_0003<br />

Read: Anytime<br />

Bit 7 6 5 4 3 2 1 Bit 0<br />

Read: SPIF WCOL 0 MODF 0 0 0 0<br />

Write:<br />

Reset: 0 0 0 0 0 0 0 0<br />

= Writes have no effect and the access terminates without a transfer error exception.<br />

Figure 17-5. SPI Status Register (SPISR)<br />

Write: Has no meaning or effect<br />

SPIF — SPI Interrupt Flag<br />

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

received data transfers from the shift register to SPIDR. If the SPIE bit<br />

is also set, SPIF generates an interrupt request. Once SPIF is set, no<br />

new data can be transferred into SPIDR until SPIF is cleared. Clear<br />

SPIF by reading SPISR with SPIF set and then accessing SPIDR.<br />

Reset clears SPIF.<br />

1 = New data available in SPIDR<br />

0 = No new data available in SPIDR<br />

WCOL — Write Collision Flag<br />

The WCOL flag is set when software writes to SPIDR during a<br />

transmission. Clear WCOL by reading SPISR with WCOL set and<br />

then accessing SPIDR. Reset clears WCOL.<br />

1 = Write collision<br />

0 = No write collision<br />

MODF — Mode Fault Flag<br />

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

and the SS pin is configured as a mode-fault input. If the SPIE bit is<br />

also set, MODF generates an interrupt request. A mode fault clears<br />

the SPE, MSTR, and DDRSP[2:0] bits. Clear MODF by reading<br />

SPISR with MODF set and then writing to SPICR1. Reset clears<br />

MODF.<br />

1 = Mode fault<br />

0 = No mode fault<br />

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

Technical Data<br />

MOTOROLA Serial Peripheral Interface Module (SPI) 381<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!