james conrad

QE128 I2C Slave

Discussion created by james conrad on Sep 6, 2011
Latest reply on Sep 9, 2011 by Jim Donelson

I am working on a project where a QE128 processor is an I2C slave to an MCF52259 MQX master.  The QE must accept one byte of address (index) and either read (back to the master) or write an array of control bytes.  I am currently using the Example 13.6 from Fabio's book, modified to do only Slave and operate in polled mode within the QE main loop.  Scoping the I2C lines shows the Slave Address being ACK'd but the index NAK'd.  If I have the debugger active on the QE, it halts with an illegal BP.  Can you point me in the right direction?

Outcomes