Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 65591

Forum Post: RE: Interrupt and I2C

$
0
0
Your I2C relies on interrupts, so running it from your P1 ISR is a mistake. The bus is presumably stalled waiting for your program to give it some Tx data, but it never will since interrupts are disabled. I recommend you use the P1 ISR to (only) store a "request" to main() and run the I2C from there.

Viewing all articles
Browse latest Browse all 65591

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>