28.10.2014 Views

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

MMC2107 - Freescale Semiconductor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Serial Peripheral Interface Module (SPI)<br />

Functional Description<br />

the slave SPI clock frequency, there are two SPI clocks between the fall<br />

of SS and the SCK edge.<br />

As long as another late SPIDR write does not occur, the following bytes<br />

to and from the slave are correctly transmitted.<br />

17.8.4 SPI Baud Rate Generation<br />

nc...<br />

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

17.8.5 Slave-Select Output<br />

The baud rate generator divides the SPI clock to produce the SPI baud<br />

clock. The SPPR[6:4] and SPR[2:0] bits in SPIBR select the SPI clock<br />

divisor:<br />

SPI clock divisor = (SPPR + 1) × 2(SPR+1)<br />

where:<br />

SPPR = the value written to bits SPPR[6:4]<br />

SPR = the value written to bits SPR[2:0]<br />

The baud rate generator is active only when the SPI is in master mode<br />

and transmitting. Otherwise, the divider is inactive to reduce I DD current.<br />

The slave-select output feature automatically drives the SS pin low<br />

during transmission to select external devices and drives it high during<br />

idle to deselect external devices. When SS output is selected, the SS<br />

output pin is connected to the SS input pin of the external device.<br />

In master mode only, setting the SSOE bit in SPICR1 and the DDRSP[3]<br />

bit in SPIDDR configures the SS pin as a slave-select output.<br />

Setting the SSOE bit disables the mode fault feature.<br />

NOTE:<br />

Be careful when using the slave-select output feature in a multimaster<br />

system. The mode fault feature is not available for detecting system<br />

errors between masters.<br />

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

Technical Data<br />

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