Electronic Components Datasheet Search
  English  ▼

X  

MPC8540 Datasheet(PDF) 477 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) 477 Page - Freescale Semiconductor, Inc

Back Button 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 MPC8540 Datasheet HTML 481Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 477 / 1302 page
background image
Initialization/Application Information
MPC8540 PowerQUICC III Integrated Host Processor Reference Manual, Rev. 1
Freescale Semiconductor
11-23
3. Read the I2CDR
4. Return the I2C module to slave mode by setting I2CCR to 0x80
11.5.7
Slave Mode Interrupt Service Routine
In the slave interrupt service routine, the module addressed as a slave should be tested to check if
a calling of its own address has been received. If I2CSR[MAAS] is set, software should set the
transmit/receive mode select bit (I2CCR[MTX]) according to the R/W command bit
(I2CSR[SRW]). Writing to I2CCR clears MAAS automatically. MAAS is read as set only in the
interrupt handler at the end of that address cycle where an address match occurred; interrupts
resulting from subsequent data transfers clear MAAS. A data transfer can then be initiated by
writing to I2CDR for slave transmits or dummy reading from I2CDR in slave-receive mode. The
slave drives SCL low between byte transfers. SCL is released when the I2CDR is accessed in the
required mode.
11.5.7.1
Slave Transmitter and Received Acknowledge
In the slave transmitter routine, the received acknowledge bit (I2CSR[RXAK]) must be tested
before sending the next byte of data. The master signals an end-of-data by not acknowledging the
data transfer from the slave. When no acknowledge is received (I2CSR[RXAK] is set), the slave
transmitter interrupt routine must clear I2CCR[MTX] to switch the slave from transmitter to
receiver mode. A dummy read of I2CDR then releases SCL so that the master can generate a STOP
condition. See Section 11.5.8, “Interrupt Service Routine Flowchart.”
11.5.7.2
Loss of Arbitration and Forcing of Slave Mode
When a master loses arbitration the following conditions all occur:
•
I2CSR[MAL] is set
•
I2CCR[MSTA] is cleared (changing the master to slave mode)
•
An interrupt occurs (if enabled) at the falling edge of the 9th clock of this transfer
Thus, the slave interrupt service routine should first test I2CSR[MAL] and software should clear
it if it is set. See Section 11.4.2.1, “Arbitration Control,” for more information.
11.5.8
Interrupt Service Routine Flowchart
Figure 11-11 shows an example algorithm for an I
2C interrupt service routine. Deviation from the
flowchart may result in unpredictable I
2C bus behavior. However, in the slave receive mode (not
shown), the interrupt service routine may need to set I2CCR[TXAK] when the next-to-last byte is
to be accepted. It is recommended that an msync instruction follow each I
2C register read or write
to guarantee in-order instruction execution.



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