Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LaMe_4502671
Level 1
Level 1

I have function stop(...) which I would like to disable all interrupts, spit out some data on an I2C port, then call CyHalt, regardless of where it's called from. When I try to call it from within an Interrupt handler, it sends one byte (seen on oscope), and hangs. Seemingly waiting for the I2C transaction to complete (I2C_MasterStatus() keeps returning I1C_MSTAT_XFER_INP). It does the same thing if I do it after calling CyGlobalIntDisable or CyEnterCriticalSection().

I think the issue is I don't know how to selectively enable whatever interrupts I2C requires.

0 Likes
9 Replies