mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 902

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.4 SPI MASK REGISTER. The 8-bit read/write SPI mask (SPIM) register has the
same bit formats as the SPIE register. If a bit in the SPIM is 1, the corresponding interrupt
in the SPIE register is enabled. If the bit is zero, the corresponding interrupt in the SPIE
register is masked. This register is cleared by reset.
16.12.5 SPI Master Programming Example
The following is an example initialization sequence using the serial peripheral interface in
master mode at high speed.
SPIM
RESET
FIELD
ADDR
1. Configure the port B pins to enable the SPIMOSI, SPIMISO, and SPICLK pins. Write
2. Configure a parallel I/O pin to operate as the serial peripheral interface select pin if
3. Write RBASE and TBASE in the SPI parameter RAM to point to the RX buffer
4. Program the CPM command register (CPCR) to execute the INIT RX AND TX
5. Write 0x0001 to the SDCR to initialize the SDMA configuration register.
6. Write 0x18 to RFCR and TFCR for normal operation.
7. Write MRBLR with the maximum number of bytes per receive buffer. In this case,
8. Initialize the RX buffer descriptor and assume the RX data buffer is at 0x00001000 in
R/W
BIT
PBPAR and PBDIR bits 30, 29, and 28 with ones and then PBODR bits 30, 29, and 28
with zeros.
needed. If PB16 is chosen, write PBODR bit 16 with a zero, PBDIR bit 16 with a one,
and PBPAR bit 16 with a zero. Then write PBDAT bit 16 with a zero to constantly
assert the select pin.
descriptor and TX buffer descriptor in the dual-port RAM. Assuming one RX buffer
descriptor is at the beginning of the dual-port RAM and one TX buffer descriptor
follows that RX buffer descriptor, write RBASE with 0x2000 and TBASE with 0x2008.
PARAMS command. Write 0x0051 to the CPCR.
assume 16 bytes, so MRBLR = 0x0010.
main memory. Write 0xB000 to RX_BD_Status, 0x0000 to RX_BD_Length (optional),
and 0x00001000 to RX_BD_Pointer.
0
Note: For multimaster operation, enable the SPISEL pin to internally connect to the
RESERVED
R/W
0
serial peripheral interface.
Freescale Semiconductor, Inc.
1
For More Information On This Product,
MPC823 REFERENCE MANUAL
MIME
R/W
2
0
Go to: www.freescale.com
(IMMR & 0xFFFF0000) + 0xAAA
TXE
R/W
3
0
RES
R/W
4
0
BSY
R/W
5
0
TXB
R/W
6
0
MOTOROLA
RXB
R/W
7
0

Related parts for mpc823rg