Freescale Semiconductor MCF51QE128RM manual Modes of Operation, SPI in Stop Modes

Models: MCF51QE128RM

1 424
Download 424 pages 63.71 Kb
Page 321
Image 321

output enable bit determines whether this pin acts as the mode fault input (SPIxC1[SSOE] = 0) or as the slave select output (SSOE = 1).

16.3Modes of Operation

16.3.1SPI in Stop Modes

The SPI is disabled in all stop modes, regardless of the settings before executing the STOP instruction. During stop2 mode, the SPI module is fully powered down. Upon wake-up from stop2 mode, the SPI module is 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 is placed into its reset state. If stop3 is exited with an interrupt, the SPI continues from the state it was in when stop3 was entered.

16.4Register Definition

The SPI contains 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 memory chapter of this document for the absolute address 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.

16.4.1SPI Control Register 1 (SPIxC1)

This read/write register includes the SPI enable control, interrupt enables, and configuration options.

R

W

Reset

7

6

5

4

3

2

1

0

SPIE

SPE

SPTIE

MSTR

CPOL

CPHA

SSOE

LSBFE

 

 

 

 

 

 

 

 

0

0

0

0

0

1

0

0

 

 

 

 

 

 

 

 

 

 

Figure 16-5. SPI Control Register 1 (SPIxC1)

 

 

Table 16-1. SPIxC1 Field Descriptions

 

 

 

Field

 

Description

 

 

7

SPI Interrupt Enable (for SPRF and MODF). This is the interrupt enable for SPI receive buffer full (SPRF) and

SPIE

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 in progress, clears data buffers, and initializes internal

SPE

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

 

 

 

MCF51QE128 MCU Series Reference Manual, Rev. 3

Freescale Semiconductor

321

Get the latest version from freescale.com

Page 321
Image 321
Freescale Semiconductor MCF51QE128RM manual Modes of Operation, SPI in Stop Modes, SPI Control Register 1 SPIxC1