MMC2001
INTERVAL MODE SERIAL PERIPHERAL INTERFACE
MOTOROLA
REFERENCE MANUAL
12-5
12.4.1 ISPI Data Register
The ISPI data register (SPDR) contains data to be exchanged with external devices.
Either writing or reading this register clears any set interrupt.
Figure 12-3 ISPI Data Register
Rx DATA — Receive Data
This read-only register contains the data bits received from the shift register. Those
bits more significant than the size determined in CLOCK COUNT (ISPI control regis-
ter) return zeros when read. For example, if CLOCK COUNT = 0x8 (9-bit transfer),
then bits 15 to 9 are forced to zeros. The value in this register is updated at the end of
every transfer.
Tx DATA — Transmit Data
This write-only register contains the data bits to be transmitted to the external device.
Data is copied from this register to the shift register at the time that the XCH bit is set.
As data is shifted MSB first, outgoing data is MSB-justified relative to the CLOCK
COUNT field in the ISPI control register. For example, if the exchange length is ten
bits (CLOCK COUNT = 0x9), the MSB of the outgoing data is bit nine. The first bit
presented to the external device is bit 9, followed by the remaining nine less signifi-
cant bits.
12.4.2 ISPI Control Register
The ISPI control register (SPCR), along with the ISPI interval control register, controls
the operation of the ISPI. Follow this sequence when changing operating modes:
1. Disable the ISPI (COUNT=0) without affecting other fields.
2. Wait for any transfer to complete (XCH bit clear).
3. Update to the new mode.
4. Re-enable the ISPI (COUNT = newcount).
Figure 12-4 ISPI Control Register
SPDR — ISPI Data Register
10008000
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
Rx DATA
W
Tx DATA
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0+
SPCR — ISPI Control Register
10008002
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
DOZE SPI_EN
SNS
DRV
MSTR IRQ_EN
PHA
POL
SPIGP
BAUD RATE
CLOCK COUNT
W
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..