Motorola MPC823e Reference Manual page 897

Microprocessor for mobile computing
Table of Contents

Advertisement

16.12.4 Programming the Serial Peripheral Interface
16.12.4.1 SPI MODE REGISTER. The read/write SPI mode (SPMODE) register controls
both the serial peripheral interface operation mode and clock source. Table 16-2 contains
more information on commands that can be used with this register.
SPMODE
BIT
0
1
2
FIELD
RES LOOP
CI
RESET
0
0
0
R/W
R/W
R/W
R/W
ADDR
Bit 0—Reserved
This bit is reserved and must be set to 0.
LOOP—Loop Mode
When set, this bit selects the local loopback operation. The transmitter output is internally
connected to the receiver input. The receiver and transmitter operate normally, except that
the externally received data is ignored.
0 = Normal operation.
1 = The serial peripheral interface is in loopback mode.
CI—Clock Invert
This bit inverts the SPI clock polarity. See Figure 16-124 and Figure 16-125 for details.
0 = The inactive state of SPICLK is low.
1 = The inactive state of SPICLK is high.
CP—Clock Phase
This bit selects one of two fundamentally different transfer formats. See Figure 16-124 and
Figure 16-125 for details.
0 = SPICLK starts toggling at the middle of the data transfer.
1 = SPICLK starts toggling at the beginning of the data transfer.
DIV16—Divide by 16
This bit selects the clock source for the SPI baud rate generator when configured as an SPI
master. In slave mode, the clock source is the SPICLK pin.
0 = Use the BRGCLK as the input to the SPI baud rate generator.
1 = Use the BRGCLK/16 as the input to the SPI baud rate generator.
MOTOROLA
3
4
5
6
7
CP
DIV16 REV
M/S
EN
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
(IMMR & 0xFFFF0000) + 0xAA0
MPC823e REFERENCE MANUAL
Communication Processor Module
8
9
10
11
12
13
LEN
0
R/W
14
15
PM
0
R/W
16-443

Advertisement

Table of Contents
loading

Table of Contents