Van Truong

Globals vs. Locals for ADC.

Discussion created by Van Truong on Dec 26, 2008
Latest reply on Dec 26, 2008 by Van Truong
Hi All,
 
I tried to use global (before main) to hold my ADC capture but it does not work.
But if I use local, the ADC result would be stored sucessfully.
Do you guys have any thoughts?
The reason I need to store my ADC globally is because I will need
to transfer it when I do my IIC isr.
I'm including my code for reference.
 
Thank you,
FWFan

Outcomes