MOTOROLA
PROGRAMMING REFERENCE
MMC2001
C-30
REFERENCE MANUAL
interrupt will set the corresponding bit in EPFR. The outputs of this register drive the
corresponding input of the interrupt controller for those bits configured as edge
detecting. These bits are cleared by hardware reset.
C.8 ISPI Programming Model
These registers control the operation of the ISPI and report its status. The data regis-
ter exchanges data with external slave devices. After reset, all bits are cleared.
Access these registers with halfword accesses. Accesses other than halfword in size
result in undefined activity.
C.8.1 ISPI Send/Receive Data Register
The ISPI send/receive data register (SPDR) contains data to be exchanged with
external devices. Either writing or reading this register clears any set interrupt.
Figure C-32 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 nine, followed by the remaining nine less signif-
icant bits.
Table C-14 Interval Mode Serial Peripheral Interface Address Map
Address
Use
Access
10008000
ISPI Send/Receive Data Register (SPDR)
Supervisor Only
10008002
ISPI Control Register (SPCR)
Supervisor Only
10008004
ISPI Interval Control Register (SPICR)
Supervisor Only
10008006
ISPI Status Register (SPSR)
Supervisor Only
10008008
to
10008FFF
Reserved
Supervisor Only
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
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..