Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE,
Issue while setting up the MCU as an I2C slave. What I'm seeing is that the moment the I set IRS=1 within I2CMDR, the SDA and SCK lines are getting pulled to ground. I'd expect them to be pulled up to 3.3v, since the device is a slave, that isn't communicating. Is there something special that needs to be done when setting up as slave that I may be missing?
The following are the steps I'm taking
set Eallow
Enable Internal pullups on the I2C lines (tried disabling, as well)
Set the Mux for SCLA & SDAA
Set ASYNCHRONOUS Qual for the pins
Enable Peripheral Clock
Restore Eallow
Reset the I2C module.
Set the I2C module clock
Set our own address
Reset and enable the TX FIFO
Reset and enable the RX FIFO
set the interrupt handler for I2CINT2A
Set the I2C interrupts - disabled using FIFO mode
Clear the status flags.
remove the reset (IRS=1) and place bus into IDLE mode