| Electronic Components Datasheet Search |
|
MPC8540 Datasheet(PDF) 474 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
MPC8540 Datasheet(HTML) 474 Page - Freescale Semiconductor, Inc |
|
474 / 1302 page ![]() MPC8540 PowerQUICC III Integrated Host Processor Reference Manual, Rev. 1 11-20 Freescale Semiconductor I2C Interface 11.5 Initialization/Application Information This section describes some programming guidelines recommended for the I 2C interface. Figure 11-11 is a recommended flowchart for I2C interrupt service routines. The I 2C registers in this chapter are shown in big-endian format. If the system is in little-endian mode, software must swap the bytes appropriately. This appropriate byte swapping is needed as I 2C registers are byte registers. Also, an msync assembly instruction must be executed after each I 2C register read/write access to guarantee in-order execution. The I2C controller does not guarantee its recovery from all illegal I2C bus activity. In addition, a malfunctioning device may hold the bus captive. A good programming practice is for software to rely on a watchdog timer to help recover from I2C bus hangs. The recovery routine should also handle the case when the status bits returned after an interrupt are not consistent with what was expected due to illegal I2C bus protocol behavior. 11.5.1 Initialization Sequence A hard reset initializes all the I2C registers to their default states. The following initialization sequence initializes the I 2C unit: 1. All I 2C registers must be located in a cache-inhibited page. 2. Update I2CFDR[FDR] and select the required division ratio to obtain the SCL frequency from the CCB (platform) clock. ACS BYTE_EN 1 ADDR[0–1] Last Configuration Preload Command ADDR[2–9] ADDR[10–17] DATA[0–7] DATA[8–15] DATA[16–23] DATA[24–31] 00 0 0 0 0 0 0 End Command 00 0 0 0 0 0 0 00 0 0 0 0 0 0 CRC[0–7] Cyclic Redundancy Check CRC[8–15] CRC[16–23] CRC[24–31] Figure 11-10. EEPROM Contents (continued) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |