Hi,
I have this group of variables that I'm updating inside an ISR.
It works fine if I declare like this:
volatile uint8_t iCh1 = 0, iCh2 = 0, iCh3 = 0, iCh4 = 0, iCh5 = 0, iCh6 = 0;
but not if I change them to an array like this:
volatile uint8_t iCh[6] = {0, 0, 0, 0, 0, 0};
I'm thinking that maybe in the second case somehow only the pointer becomes
volatile, but... what can I do?
Thanks,
Cat
_________________________________________________________________
Send a smile, make someone laugh, have some fun! Check out
freemessengeremoticons.caMessage
Help: volatile variable versus volatile array for ISR access
2007-11-03 by Cat C