mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 925

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
16.13.7.8 I
same bit formats as the I2CER. If a bit in the I2CMR is 1, the corresponding interrupt in the
I2CER is enabled. If the bit is zero, the corresponding interrupt in the I2CER is masked. This
register is cleared by reset.
16.13.8 I
The following initialization sequence is for the I
read one byte from a slave device that contains an internal read address. The I
operates the SCL at 391kHz. A system frequency of 50MHz is assumed. The SDA and SCL
pins of the MPC823 are connected to an external 5V power supply with 6.8K Ohm to
10K Ohm resistors.
I2CMR
RESET
FIELD
ADDR
1. Configure the port B pins to enable the SDA and SCL pins. Write PBPAR, PBDIR, and
2. Disable the I
3. Configure the I
4. Write 0x0 to the I2CADD register to clear it.
5. Write 0x01 to the I2COM register to configure the I
6. Write 0x0001 to the SDCR to set the SDMA bus arbitration level to 5.
7. Write RBASE and TBASE in the I
8. Write 0x11 into the CPCR to execute the INIT RX AND TX PARAMS command for I
9. Write 0x15 into the RFCR and TFCR for normal operation.
10. Write MRBLR with the maximum bytes per receive buffer. In this case, assume 16
R/W
BIT
PBODR bits 26 and 27 with ones.
you can modify other fields in the I2MOD register.
frequency of 50MHz by programming the divider and pre-divider. The overall I
rate generator clock divider is 128 (decimal) and is realized by establishing a
pre-divider of 8 and a divider of 16. Write the PDIV field of the I2MOD register with 2
to pre-divide by 8. Write the DIV field of the I2BRG register with 5 to divide by 16.
operation.
descriptors in the dual-port RAM. Assuming the initial RX buffer descriptor at the
beginning of dual-port RAM and the initial TX buffer descriptor 64 bytes from the
beginning, write RBASE with 0x2000 and TBASE with 0x2040.
bytes, so MRBLR = 0x10.
2
2
C Controller Initialization Sequence
C MASK REGISTER. The 8-bit read/write I
0
2
C controller by clearing the I2MOD register, including the EN bit. Now
RESERVED
2
C dedicated baud rate generator to operate at 391kHz at a system
R/W
Freescale Semiconductor, Inc.
1
0
For More Information On This Product,
MPC823 REFERENCE MANUAL
2
Go to: www.freescale.com
(IMMR & 0xFFFF0000) + 0x874
2
C parameter RAM to point to the RX and TX buffer
TXE
R/W
3
0
2
C controller to operate in master mode and
RESERVED
R/W
4
0
2
C mask register (I2CMR) has the
2
C controller for master mode
Communication Processor Module
BSY
R/W
5
0
TXB
R/W
6
0
2
C controller
2
C baud
RXB
R/W
16-473
7
0
2
C.

Related parts for mpc823rg