mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 892

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Communication Processor Module
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.
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.
CI—Clock Invert
This bit inverts the SPI clock polarity. See Figure 16-122 and Figure 16-123 for details.
CP—Clock Phase
This bit selects one of two fundamentally different transfer formats. See Figure 16-122 and
Figure 16-123 for details.
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.
SPMODE
RESET
FIELD
ADDR
R/W
BIT
0 = Normal operation.
1 = The serial peripheral interface is in loopback mode.
0 = The inactive state of SPICLK is low.
1 = The inactive state of SPICLK is high.
0 = SPICLK starts toggling at the middle of the data transfer.
1 = SPICLK starts toggling at the beginning of the data transfer.
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.
RES LOOP
R/W
0
0
R/W
1
0
R/W
CI
2
0
Freescale Semiconductor, Inc.
R/W
For More Information On This Product,
CP
3
0
DIV16 REV
R/W
MPC823 REFERENCE MANUAL
4
0
Go to: www.freescale.com
R/W
5
0
(IMMR & 0xFFFF0000) + 0xAA0
R/W
M/S
6
0
R/W
EN
7
0
8
9
LEN
R/W
0
10
11
12
13
R/W
PM
0
MOTOROLA
14
15

Related parts for mpc823rg