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

BEGIN TRANSMISSION<br />

END TRANSMISSION<br />

SCK (CPOL = 0)<br />

SCK (CPOL = 1)<br />

nc...<br />

<strong>Freescale</strong> <strong>Semiconductor</strong>, I<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 />

NOTE:<br />

t L<br />

MSB<br />

LSB<br />

Bit 6<br />

Bit 1<br />

Bit 5<br />

Bit 2<br />

Figure 17-12. SPI Clock Format 0 (CPHA = 0)<br />

When CPHA = 0, the slave SS pin must be negated and reasserted<br />

between bytes.<br />

Clock skew between the master and slave can cause data to be lost<br />

when:<br />

• CPHA = 0, and,<br />

Bit 4<br />

Bit 3<br />

Bit 3<br />

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

Bit 2<br />

Bit 5<br />

LSB<br />

MSB<br />

• The baud rate is the SPI clock divided by two, and<br />

• The master SCK frequency is half the slave SPI clock frequency,<br />

and<br />

• Software writes to the slave SPIDR just before the synchronized<br />

SS signal goes low.<br />

Bit 1<br />

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

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

Technical Data<br />

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