MOTOROLA
INTERVAL MODE SERIAL PERIPHERAL INTERFACE
MMC2001
12-8
REFERENCE MANUAL
12.4.3 ISPI Interval Control Register
The ISPI interval control register (SPICR) controls interval mode operation.
Figure 12-5 ISPI Interval Control Register
LPBK — Loopback
This bit enables a loopback test feature in the ISPI. When looping back, the ISPI
operates as if the SPI_MISO and SPI_MOSI pins are wired together and there are no
other external devices connected to the ISPI data input pin. Whenever loopback is
enabled, the data read from the ISPI data register after a given transfer matches what
was written to the ISPI data register prior to that transfer, masked if necessary to
account for the number of bits transferred.
0 =
Loopback disabled
1 =
Loopback enabled
IVL_EN — Interval Mode Enable
Setting this bit places the ISPI in interval mode. If the MSTR bit in the ISPI control
register is cleared, then the ISPI is operating in slave mode, and this bit is ignored.
0 =
ISPI is not operating in interval mode
1 =
ISPI is operating in interval mode if MSTR=1
INTERVAL COUNT
In interval mode, this register value is loaded into the ISPI interval timer upon comple-
tion of a transfer. Each bit-clock period, the value in this counter is decremented by
one. When the value in the register reaches zero, then XCH is set, and a new transfer
is begun.
12.4.4 ISPI Status Register
The ISPI status register (SPSR) contains flags indicating whether an overrun condi-
tion has occurred, whether an interrupt has been requested, and whether a transfer is
being performed.
Figure 12-6 ISPI Status Register
SPICR — ISPI Interval Control Register
10008004
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
LPBK IVL_EN
INTERVAL COUNT
W
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
SPSR — ISPI Status Register
10008006
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
OVR
IRQ
XCH
0
0
0
0
0
0
0
0
0
0
0
0
0
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.
..