View Single Post
Old 05-26-2009, 08:19 AM   #1432 (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
Quote:
Originally Posted by dlaing View Post
dcb,
I really like your code for the ISR's.
It looks like Paul has the ADC clock at 1MHz (which means he should only use 8 bits of the result). Other than the first result the ADC takes 13 ADC cycles, or about 13us. So we can read the current for every ISR with plenty of time for everything else.
Sorry about the 10khz part, thanks for the catch. that was a different platform (arduino @ a fixed 10bit adc). You shouldn't miss any timer1 body invocations in that case.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
  Reply With Quote