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.

Serial Peripheral Interface Module (SPI)<br />

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

17.7.2 SPI Control Register 2<br />

Address: 0x00cb_0001<br />

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

Read: 0 0 0 0 0 0<br />

Write:<br />

SPISDOZ<br />

SPC0<br />

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

nc...<br />

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

Read: Anytime<br />

= Writes have no effect and the access terminates without a transfer error exception.<br />

Figure 17-3. SPI Control Register 2 (SPICR2)<br />

Write: Anytime; writing to unimplemented bits has no effect<br />

SPISDOZ — SPI Stop in Doze Bit<br />

The SPIDOZ bit stops the SPI clocks when the CPU is in doze mode.<br />

Reset clears SPISDOZ.<br />

1 = SPI inactive in doze mode<br />

0 = SPI active in doze mode<br />

SPC0 — Serial Pin Control Bit 0<br />

The SPC0 bit enables the bidirectional pin configurations shown in<br />

Table 17-4. Reset clears SPC0.<br />

Table 17-4. Bidirectional Pin Configurations<br />

Pin Mode SPC0 MSTR MISO Pin (1) MOSI Pin (2) SCK Pin (3) SS Pin (4)<br />

A<br />

0 Slave data output Slave data input SCK input Slave-select input<br />

Normal 0<br />

MODF input (DDRSP3 = 0)<br />

B 1 Master data input Master data output SCK output<br />

or GP output (DDRSP3 = 1)<br />

C<br />

0 Slave data I/O GP (5) I/O SCK input Slave-select input<br />

Bidirectional 1<br />

MODF input (DDRSP3 = 0)<br />

D 1 GP I/O Master data I/O SCK output<br />

or GP output (DDRSP3 = 1)<br />

1. Slave output is enabled if SPIDDR bit 0 = 1, SS = 0, and MSTR = 0 (A, C).<br />

2. Master output is enabled if SPIDDR bit 1 = 1 and MSTR = 1 (B, D).<br />

3. SCK output is enabled if SPIDDR bit 2 = 1 and MSTR = 1 (B, D).<br />

4. SS output is enabled if SPIDDR bit 3 = 1, SPICR1 bit 1 (SSOE) = 1, and MSTR = 1 (B, D).<br />

5. GP = General-purpose<br />

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

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