View Single Post
Old 05-25-2009, 12:17 PM   #1403 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Seattle, WA
Posts: 2,552

Michael's Electric Beetle - '71 Superbeetle 500000
Thanks: 371
Thanked 296 Times in 187 Posts
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.
__________________
When I die, I would like to go peacefully, in my sleep, like my grandfather did. Not screaming and yelling like the passenger in his car.

Last edited by MPaulHolmes; 05-25-2009 at 12:34 PM..
  Reply With Quote