Whenever I enable the IIC module the Bus Busy bit is set. I'm the only master on the line, the lines are pulled high. No start signal has been generated. Why is the bus busy? How do I clear it?
Frustrated...
Ok, not always. After a bit of messing with it the busy bit is not always set.
But - I can't set MST (master) bit. This has always been true, I thought it was related to the busy bit.
Even in the debugger, I set the master bit and it immediately clears.
I don't get it? Why would it not set? I've set the pins to GPIO output and written to them, they work fine. Why won't master work?
-Matt
I figured it out!!!
the IIC bus was not biased properly, as a result the processor would determine that the bus was busy (sometimes showing it, sometimes not). You can't enter master mode when the bus is busy, only slave mode.
the solution was to properly bias the SDA anc SCL lines.
-Matt