IIC1C1 &= ~IIC1C1_MST; // do not correctly write and will not generate the stop
However, editing to:
IIC1C1 &= ~IIC1C1_MST_MASK; // correctly generate a stop condition
Once I fix that, it's very buggy (hangs) on repetitive reads or writes (i'm trying to setup an eeprom). Scope SCL/SDA timing looks fine and is nicely adjustable.
Are there any example I2C read, write, and init routines that are known to work on the mcf51jm128? I'm using the PEMicro board for testing. Other controllers on the part have setup w/no problems (I'm paying for that now). This is a different version CW than I use for V2 parts. Is it something in CW I have setup wrong?