MMCCMB2107 Freescale, MMCCMB2107 Datasheet - Page 386

no-image

MMCCMB2107

Manufacturer Part Number
MMCCMB2107
Description
Manufacturer
Freescale
Datasheet

Specifications of MMCCMB2107

Lead Free Status / RoHS Status
Not Compliant
Serial Peripheral Interface Module (SPI)
17.8 Functional Description
Technical Data
386
The SPI module allows full-duplex, synchronous, serial communication
between the MCU and peripheral devices. Software can poll the SPI
status flags or SPI operation can be interrupt driven.
Setting the SPE bit in SPICR1 enables the SPI and dedicates four SPI
port pins to SPI functions:
When the SPE bit is clear, the SS, SCK, MOSI, and MISO pins are
general-purpose I/O pins controlled by SPIDDR.
The 8-bit shift register in a master SPI is linked by the MOSI and MISO
pins to the 8-bit shift register in the slave. The linked shift registers form
a distributed 16-bit register. In an SPI transmission, the SCK clock from
the master shifts the data in the 16-bit register eight bit positions, and the
master and slave exchange data. Data written to the master SPIDR
register is the output data to the slave. After the exchange, data read
from the master SPIDR is the input data from the slave.
Freescale Semiconductor, Inc.
For More Information On This Product,
SHIFT REGISTER
Slave select (SS)
Serial clock (SCK)
Master out/slave in (MOSI)
Master in/slave out (MISO)
GENERATOR
MASTER SPI
Serial Peripheral Interface Module (SPI)
BAUD RATE
SPIDR
Go to: www.freescale.com
Figure 17-10. Full-Duplex Operation
MISO
MOSI
SCK
SS
V
DD
MISO
MOSI
SCK
SS
MMC2107 – Rev. 2.0
SHIFT REGISTER
SLAVE SPI
SPIDR
MOTOROLA