| Electronic Components Datasheet Search |
|
MPC8540 Datasheet(PDF) 478 Page - Freescale Semiconductor, Inc |
|
|
|||||||||||||||||||||||||||||
MPC8540 Datasheet(HTML) 478 Page - Freescale Semiconductor, Inc |
|
478 / 1302 page ![]() MPC8540 PowerQUICC III Integrated Host Processor Reference Manual, Rev. 1 11-24 Freescale Semiconductor I2C Interface Figure 11-11. Example I2C Interrupt Service Routine Flowchart Clear I2CSR[MIF] I2CCR[MSTA] == 0 == 1 I2CSR[MAL] I2CCR[MTX] == 1 == 1 == 0 Clear I2CSR[MAL] EOI I2CSR[MAAS] I2CSR[SRW] Set I2CCR[MTX] == 0 Clear I2CCR[MTX] Write I2CDR Dummy read EOI == 1 Slave Addr. Phase Slave Data Cycle I2CCR[MTX] == 1 == 0 Slave Xmit I2CSR[RXAK] == 1 == 0 Write next byte to I2CDR EOI Slave Received Read I2CDR and store All done Y N Set I2CCR[TXAK] Read I2CDR (dummy read) Y N Last byte Next-to-last Generate Read I2CDR and store EOI Y N Set Master Rcv STOP I2CCR[TXAK] byte Last byte YN I2CSR[RXAK] == 1 Write next byte to I2CDR == 0 EOI Generate Master Xmit STOP B == 0 == 1 A == 0 A B I2CSR[MAAS] B == 0 == 1 Clear I2CCR[MTX] End of address phase for master receive mode? N Only one byte to receive? Y Y Set I2CCR[TXAK] Read I2CDR (dummy read) Clear I2CCR[MTX] N |
|
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 |