View Single Post
Old 05-25-2009, 12:08 PM   #1402 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
Ok, if the typical ISR call takes 80us and it is being called every 63us, then that is probably a lot more than 1 out of 16 interrupts getting dropped.

The non critical stuff can go in the main loop (not in an interrupt) and figure out when to run based on a "system clock", and the critical stuff can be updated in the interrupt. Dont forget about volatile on globals updated in interrupts.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote