Christopher Lack

How to pass I2C data from ISR to Main

Discussion created by Christopher Lack on Mar 2, 2007
Latest reply on Mar 3, 2007 by bigmac

If I write the ISR in the MCUinit.c file where do I define the global variables to pass info to main()?

Currently I have the global variables and ISR prototyped before main() and the ISR following main().

Seems that Device Initialization expects the ISR to be written in MCUinit.c but there is no place to define the globals there.

What am I missing?

Outcomes