SPI0_C1 field descriptions
Field
Description
7
SPIE
SPI Interrupt Enable: for SPRF and MODF
Enables the interrupt for SPI receive buffer full (SPRF) and mode fault (MODF) events.
0
Interrupts from SPRF and MODF are inhibited—use polling
1
Request a hardware interrupt when SPRF or MODF is 1
6
SPE
SPI System Enable
Enables the SPI system and dedicates the SPI port pins to SPI system functions. If SPE is cleared, the
SPI is disabled and forced into an idle state, and all status bits in the S register are reset.
0
SPI system inactive
1
SPI system enabled
5
SPTIE
SPI Transmit Interrupt Enable
This is the interrupt enable bit for SPI transmit buffer empty (SPTEF). An interrupt occurs when the SPI
transmit buffer is empty (SPTEF is set).
0
Interrupts from SPTEF inhibited (use polling)
1
When SPTEF is 1, hardware interrupt requested
4
MSTR
Master/Slave Mode Select
Selects master or slave mode operation.
0
SPI module configured as a slave SPI device
1
SPI module configured as a master SPI device
3
CPOL
Clock Polarity
Selects an inverted or non-inverted SPI clock. To transmit data between SPI modules, the SPI modules
must have identical CPOL values.
This bit effectively places an inverter in series with the clock signal either from a master SPI device or to a
slave SPI device. Refer to the description of “SPI Clock Formats” for details.
0
Active-high SPI clock (idles low)
1
Active-low SPI clock (idles high)
2
CPHA
Clock Phase
Selects one of two clock formats for different kinds of synchronous serial peripheral devices. Refer to the
description of “SPI Clock Formats” for details.
0
First edge on SPSCK occurs at the middle of the first cycle of a data transfer.
1
First edge on SPSCK occurs at the start of the first cycle of a data transfer.
1
SSOE
Slave Select Output Enable
This bit is used in combination with the Mode Fault Enable (MODFEN) field in the C2 register and the
Master/Slave (MSTR) control bit to determine the function of the SS pin.
Table continues on the next page...
Chapter 29 Serial Peripheral Interface (SPI)
KL02 Sub-Family Reference Manual, Rev. 2.1, July 2013
Freescale Semiconductor, Inc.
449