
UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
157 of 268
NXP Semiconductors
UM10413
MPT612 User manual
17.4.2 SPI Status register (S0SPSR - 0xE002 0004)
Register S0SPSR controls the operation of the SPI0 as per the configuration bits setting.
17.4.3 SPI Data register (S0SPDR - 0xE002 0008)
This bidirectional data register provides the transmit and receive data for the SPI.
Transmit data is provided to the SPI by writing to this register. Data received by the SPI
can be read from this register. When a master, a write to this register starts a SPI data
transfer. Writes to this register are blocked from when a data transfer starts to when the
SPIF status bit is set, and the status register has not been read.
17.4.4 SPI Clock counter register (S0SPCCR - 0xE002 000C)
This register controls the frequency of a master’s SCK. The register indicates the number
of PCLK cycles that make up an SPI clock. The value of this register must always be an
even number. As a result, bit 0 must always be logic 0. The value of the register must also
always be greater than or equal to 8. Violations can result in unpredictable behavior.
Table 143: SPI Status register (S0SPSR - address 0xE002 0004) bit description
Bit
Symbol
Description
Reset value
2:0
-
reserved, user software must not write logic 1s to reserved bits;
value read from a reserved bit is not defined
n/a
3
ABRT
slave abort. If logic 1, indicates that a slave abort has occurred.
Cleared by reading this register.
0
4
MODF
Mode fault. If logic 1, indicates that a mode fault error has
occurred. Cleared by reading this register, then writing the SPI0
control register.
0
5
ROVR
read overrun. If logic 1, indicates that a read overrun has
occurred. Cleared by reading this register.
0
6
WCOL
write collision. If logic 1, indicates that a write collision has
occurred. Cleared by reading this register, then accessing the
SPI data register.
0
7
SPIF
SPI transfer complete flag. If logic 1, indicates when a SPI data
transfer is complete. When a master, set at end of last cycle of
the transfer. When a slave, set on the last data sampling edge of
SCK. Cleared by first reading this register, then accessing the
SPI data register.
Remark:
this is not the SPI interrupt flag. This flag is found in
register SPINT.
0
Table 144: SPI Data register (S0SPDR - address 0xE002 0008) bit description
Bit
Symbol
Description
Reset value
7:0
DataLow
SPI bidirectional data port
0x00
15:8 DataHigh
if bit 2 of SPCR is logic 1 and bits 11:8 are other than 1000,
some or all of these bits contain the additional transmit and
receive bits. When less than 16 bits are selected, the more
significant among these bits read as logic 0s.
0x00
Table 145: SPI Clock counter register (S0SPCCR - address 0xE002 000C) bit description
Bit
Symbol
Description
Reset value
7:0
Counter
SPI0 clock counter setting
0x00