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

Functional Description<br />

After the 16th and final SCK edge:<br />

• Data that was in the master SPIDR register is in the slave SPIDR.<br />

Data that was in the slave SPIDR register is in the master SPIDR.<br />

• The SCK clock stops and the SPIF flag in SPISR is set, indicating<br />

that the transmission is complete. If the SPIE bit in SPCR1 is set,<br />

SPIF generates an interrupt request.<br />

nc...<br />

Figure 17-11 shows the timing of a transmission with the CPHA bit set.<br />

The SS pin of the master must be either high or configured as a<br />

general-purpose output not affecting the SPI.<br />

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

BEGIN TRANSMISSION<br />

SCK (CPOL = 0)<br />

SCK (CPOL = 1)<br />

SAMPLE INPUT<br />

MOSI/MISO<br />

CHANGE OUTPUT<br />

MOSI PIN<br />

CHANGE OUTPUT<br />

MISO PIN<br />

SS PIN OUTPUT<br />

MASTER ONLY<br />

SLAVE SS PIN<br />

MSB FIRST (LSBFE = 0):<br />

LSB FIRST (LSBFE = 1):<br />

t L<br />

MSB<br />

LSB<br />

BIT 6<br />

BIT 1<br />

BIT 5<br />

BIT 2<br />

BIT 4<br />

BIT 3<br />

BIT 3<br />

BIT 4<br />

BIT 2<br />

BIT 5<br />

END TRANSMISSION<br />

BIT 1<br />

BIT 6<br />

LSB<br />

MSB<br />

t T<br />

t I<br />

t L<br />

MINIMUM 1/2 SCK<br />

FOR t T , t L , t l<br />

IF NEXT TRANSFER BEGINS HERE<br />

Legend:<br />

t L = Minimum leading time before the first SCK edge<br />

t T = Minimum trailing time after the last SCK edge<br />

t I = Minimum idling time between transmissions (minimum SS high time)<br />

t L , t T , and t I are guaranteed for master mode and required for slave mode.<br />

Figure 17-11. SPI Clock Format 1 (CPHA = 1)<br />

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

Technical Data<br />

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