Quote:
Originally Posted by MazdaMatt
...Do you have your ADC reading and/or filtering happening during interrupts as well, or polled?
|
If it still looks anything like the svn code:
/trunk/HighVoltageControllerIMPROVED_ECOM.C - Open ReVolt - Trac
everything is done in a timer interrupt, which
might be a problem. Could use a lower priority interrupt for updating some of the variables (i.e. temperature). And any variables updated in an interrupt "thread" should be declared volatile.
Paul, did you measure how long that isr takes to complete in worst case?