View Single Post
Old 05-26-2009, 06:37 AM   #1430 (permalink)
charlie_fd
EcoModding Lurker
 
Join Date: May 2009
Location: Bucharest,RO and Copenhagen,DK
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by dcb View Post
...

Max ADC rate is about 10khz, and there is only one channel at a time, so a lot of the timer1 calls will auto-return, but it is what it is and the bulk of the processing (32 bit math?) can happen in the main loop outside of interrupts.
...
The is smth. I do not understand here ... ADC will take 13 ADC clocks, we have a 1MHz clock for adc (we loose some precision, 2.5lsb out of 10bit if i'm not mistaken) that means 77kHz max. ADC rate! There will never be be an "auto-return" of the timer1 ISR at 16khz on the grounds of unfinished conversion if we only convert 1 channel at a time...

What am I missing?

L.E.: Doh! Next time i will scroll down before replying ...dlaing had the same observation 5 hours before me

Last edited by charlie_fd; 05-26-2009 at 06:41 AM.. Reason: have seen the last reply :)
  Reply With Quote