Freescale Semiconductor MPC8313E Family Reference Manual page 1122

Powerquicc ii pro integrated processor
Hide thumbs Also See for MPC8313E:
Table of Contents

Advertisement

2
I
C Interfaces
A preamble should be the first 3 bytes programmed into the EEPROM. It should have a value of
0xAA55AA. The I
Following the preamble, there should be a series of configuration registers (known as register
preloads). Each configuration register should be programmed according to a particular format, as
shown in
Figure
Figure 17-10. EEPROM Data Format for One Register Preload Command
— The first byte holds alternate configuration space (ACS), byte enables, and continue (CONT)
attributes.
— The 2 least-significant bits of the address are derived from the byte enables. address offset.
Therefore, the address offset programmed into the EEPROM preload should be a word offset.
— The most significant 16 bits (assuming 36-bit addressing) of the address are prepended from
either IMMRRBAR or alternate configuration space.
— After the first 3 bytes, 4 bytes of data should hold the desired value of the configuration register,
regardless of the size of transaction.
Byte enables should be asserted for any byte that will be written, and they should be asserted contiguously,
creating a 1, 2, or 4 byte write to a register. The boot sequencer assumes that a big-endian address is stored
in the EEPROM. In addition, byte enable bit 0 (bit 1 of the byte) corresponds to the most-significant byte
of data (data[0:7]), and byte enable bit 3 (bit 4 of the byte) corresponds to the least-significant byte of data
(data[24:31]).
By asserting ACS, an alternate configuration space address is prepended to the write request from the boot
sequencer according to the value in the ALTCBAR register. This will allow for external memories to be
configured. Otherwise, IMMRBAR is prepended to the EEPROM address.
If the CONT bit is cleared, the first 3 bytes, including ACS, the byte enables, and the address, should be
cleared 0. Also, the data contains the final CRC. A CRC-32 algorithm is used to check the integrity of the
data. The following polynomial is used:
1
2
1 + x
+ x
The CRC should cover all bytes stored in the EEPROM before the CRC. This includes the preamble, all
register preloads, and the first 3 bytes of the last 7-byte preload (which should be all zeros).
MPC8313E PowerQUICC II Pro Integrated Processor Family Reference Manual, Rev. 3
17-18
2
C checks to ensure that this preamble is correctly detected before proceeding.
17-10.
0
1
2
ACS
BYTE_EN
4
5
7
8
+ x
+ x
+ x
+ x
+ x
3
4
5
CONT
ADDR[14:21]
ADDR[12:29]
DATA[0:7]
DATA[8:15]
DATA[16:23]
DATA[24:31]
10
11
12
16
+ x
+ x
+ x
+ x
6
7
ADDR[12:13]
22
23
26
32
+ x
+ x
+ x
Freescale Semiconductor

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc8313

Table of Contents