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

Memory Map and Registers<br />

nc...<br />

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

NOTE:<br />

NOTE:<br />

MSTR — Master Bit<br />

The MSTR bit selects SPI master mode or SPI slave mode operation.<br />

Reset clears MSTR.<br />

1 = Master mode<br />

0 = Slave mode<br />

CPOL — Clock Polarity Bit<br />

The CPOL bit selects an inverted or non-inverted SPI clock. To<br />

transmit data between SPI modules, the SPI modules must have<br />

identical CPOL values. Reset clears CPOL.<br />

1 = Active-low clock; SCK idles high<br />

0 = Active-high clock; SCK idles low<br />

CPHA — Clock Phase Bit<br />

The CPHA bit delays the first edge of the SCK clock. Reset sets<br />

CPHA.<br />

1 = First SCK edge at start of transmission<br />

0 = First SCK edge 1/2 cycle after start of transmission<br />

SSOE — Slave Select Output Enable Bit<br />

The SSOE bit and the DDRSP3 bit configure the SS pin as a<br />

general-purpose input or a slave-select output. Reset clears SSOE.<br />

Table 17-3. SS Pin I/O Configurations<br />

DDRSP3 SSOE Master Mode Slave Mode<br />

0 0 Mode-fault input Slave-select input<br />

0 1 General-purpose input Slave-select input<br />

1 0 General-purpose output Slave-select input<br />

1 1 Slave-select output Slave-select input<br />

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

LSBFE — LSB-First Enable Bit<br />

The LSBFE enables data to be transmitted LSB first. Reset clears<br />

LSBFE.<br />

1 = Data transmitted LSB first.<br />

0 = Data transmitted MSB first<br />

In SPIDR, the MSB is always bit 7 regardless of the LSBFE bit.<br />

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

Technical Data<br />

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