May 19, 2020
02:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 19, 2020
02:23 PM
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.
Labels
- Labels:
-
PSoC 5LP
- Tags:
- i2c interrupt
9 Replies