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.8 SPI Port Data Direction Register<br />

Address: 0x00cb_0008<br />

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

Read:<br />

Write:<br />

RSVD7 RSVD6 RSVD5 RSVD4 DDRSP3 DDRSP2 DDRSP1 DDRSP0<br />

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

nc...<br />

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

NOTE:<br />

Pin function: SS SCK<br />

Read: Anytime<br />

Write: Anytime<br />

MOSI/<br />

MOMI<br />

Figure 17-9. SPI Port Data Direction Register (SPIDDR)<br />

MISO/<br />

SISO<br />

RSVD[7:4] — Reserved<br />

Writing to these read/write bits updates their values but has no effect<br />

on functionality.<br />

DDRSP[3:0] — Data Direction Bits<br />

The DDRSP[3:0] bits control the data direction of SPIPORT pins.<br />

Reset clears DDRSP[3:0].<br />

1 = Corresponding pin configured as output<br />

0 = Corresponding pin configured as input<br />

In slave mode, DDRSP3 has no meaning or effect. In master mode,<br />

DDRSP3 determines whether SPI port pin 3 is a mode-fault input, a<br />

general-purpose output, or a slave-select output.<br />

When the SPI is enabled (SPE = 1), the MISO, MOSI, and SCK pins:<br />

• Are inputs if their SPI functions are input functions regardless of<br />

the state of their DDRSP bits.<br />

• Are outputs if their SPI functions are output functions only if their<br />

DDRSP bits are set.<br />

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

Technical Data<br />

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