Electronic Components Datasheet Search
  English  ▼

X  

MPC8540 Datasheet(PDF) 476 Page - Freescale Semiconductor, Inc

Part # MPC8540
Description  MPC8540 PowerQUICC III??Integrated Host Processor Reference Manual
PDF  1302 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

MPC8540 Datasheet(HTML) 476 Page - Freescale Semiconductor, Inc

Back Button MPC8540 Datasheet HTML 472Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 473Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 474Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 475Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 476Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 477Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 478Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 479Page - Freescale Semiconductor, Inc MPC8540 Datasheet HTML 480Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 476 / 1302 page
background image
MPC8540 PowerQUICC III Integrated Host Processor Reference Manual, Rev. 1
11-22
Freescale Semiconductor
I2C Interface
I2CSR[MIF] (or any other I2CSR bits), software delays may be needed in order to give the I
2C
signals sufficient time to settle.
During slave-mode address cycles (I2CSR[MAAS] is set), I2CSR[SRW] should be read to
determine the direction of the subsequent transfer and I2CCR[MTX] should be programmed
accordingly. For slave-mode data cycles (MAAS is cleared), I2CSR[SRW] is not valid and
I2CCR[MTX] must be read to determine the direction of the current transfer. See Section 11.5.8,
“Interrupt Service Routine Flowchart,” for more details.
11.5.4
Generation of STOP
A data transfer ends with a STOP condition generated by the master device. A master transmitter
can generate a STOP condition after all the data has been transmitted.
If a master receiver wants to terminate a data transfer, it must inform the slave transmitter by not
acknowledging the last byte of data (by setting the transmit acknowledge bit (I2CCR[TXAK]))
before reading the next-to-last byte of data. At this time, the next-to-last byte of data has already
been transferred on the I
2C interface, so the last byte will not receive the data acknowledge
(because I2CCR[TXAK] is set). For 1-byte transfers, a dummy read should be performed by the
interrupt service routine (see Section 11.5.8, “Interrupt Service Routine Flowchart”). Before the
interrupt service routine reads the last byte of data, a STOP condition must first be generated.
The I2C controller automatically generates a STOP if I2CCR[TXAK] is set. Therefore,
I2CCR[TXAK] must be set before allowing the I
2C module to receive the last data byte on the I2C
bus. Eventually, I2CCR[TXAK] needs to be cleared again for subsequent I2C transactions. This
can be accomplished when setting up the I2CCR for the next transfer.
11.5.5
Generation of Repeated START
At the end of a data transfer, if the master still wants to communicate on the bus, it can generate
another START condition followed by another slave address without first generating a STOP
condition. This is accomplished by setting I2CCR[RSTA].
11.5.6
Generation of SCL When SDA Low
It is sometimes necessary to force the I
2C module to become the I2C bus master out of reset and
drive SCL (even though SDA may already be driven, which indicates that the bus is busy). This
can occur when a system reset does not cause all I
2C devices to be reset. Thus, SDA can be driven
low by another I
2C device while this I2C module is coming out of reset and will stay low
indefinitely. The following procedure can be used to force this I
2C module to generate SCL so that
the device driving SDA can finish its transaction:
1. Disable the I2C module and set the master bit by setting I2CCR to 0x20
2. Enable the I
2C module by setting I2CCR to 0xA0



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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