View Single Post
Old 05-25-2009, 12:17 PM   #1403 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 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.
__________________
kits and boards

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