Modes Of Operation; Spi In Stop Modes; Register Definition; Spi Control Register 1 (Spixc1) - ROHS MC9S08QE128 Reference Manual

Table of Contents

Advertisement

15.3

Modes of Operation

15.3.1

SPI in Stop Modes

The SPI is disabled in all stop modes, regardless of the settings before executing the STOP instruction.
During either stop1 or stop2 mode, the SPI module will be fully powered down. Upon wake-up from stop1
or stop2 mode, the SPI module will be in the reset state. During stop3 mode, clocks to the SPI module are
halted. No registers are affected. If stop3 is exited with a reset, the SPI will be put into its reset state. If
stop3 is exited with an interrupt, the SPI continues from the state it was in when stop3 was entered.
15.4
Register Definition
The SPI has five 8-bit registers to select SPI options, control baud rate, report SPI status, and for
transmit/receive data.
Refer to the direct-page register summary in the
assignments for all SPI registers. This section refers to registers and control bits only by their names, and
a Freescale-provided equate or header file is used to translate these names into the appropriate absolute
addresses.
15.4.1

SPI Control Register 1 (SPIxC1)

This read/write register includes the SPI enable control, interrupt enables, and configuration options.
7
R
SPIE
W
Reset
0
Field
7
SPI Interrupt Enable (for SPRF and MODF) — This is the interrupt enable for SPI receive buffer full (SPRF)
SPIE
and mode fault (MODF) events.
0 Interrupts from SPRF and MODF inhibited (use polling)
1 When SPRF or MODF is 1, request a hardware interrupt
6
SPI System Enable — Disabling the SPI halts any transfer that is in progress, clears data buffers, and initializes
SPE
internal state machines. SPRF is cleared and SPTEF is set to indicate the SPI transmit data buffer is empty.
0 SPI system inactive
1 SPI system enabled
5
SPI Transmit Interrupt Enable — This is the interrupt enable bit for SPI transmit buffer empty (SPTEF).
SPTIE
0 Interrupts from SPTEF inhibited (use polling)
1 When SPTEF is 1, hardware interrupt requested
Freescale Semiconductor
6
5
SPE
SPTIE
0
0
Figure 15-5. SPI Control Register 1 (SPIxC1)
Table 15-1. SPIxC1 Field Descriptions
MC9S08QE128 MCU Series Reference Manual, Rev. 2
Memory
chapter of this data sheet for the absolute address
4
3
MSTR
CPOL
0
0
Description
Serial Peripheral Interface (S08SPIV3)
2
1
CPHA
SSOE
1
0
0
LSBFE
0
273

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for ROHS MC9S08QE128

This manual is also suitable for:

Mc9s08qe96Mc9s08qe64

Table of Contents