Quote:
Originally Posted by dlaing
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.