Did you have your simulator set to 16 MHz? It sounds like it's set to 8 MHz. Mine takes about 45 uS typically at 16 MHz in the simulator.
Specifically, if ONLY current happens (no throttle and no temperature), then it takes 45.75 us. The interrupt is then called again 18.13us after that. I can make it so that throttle and temp don't happen in the same loop. uh oh my son is waking up!
Oh! I'm getting 89uS for both current and throttle, which happens once every 16 times.
Last edited by MPaulHolmes; 05-25-2009 at 01:34 PM..
|