2007-08-29 03:16 AM
2011-05-17 12:45 AM
I've been trying to get the triggered ADC sampling working on the latest silicon (STR912FA). I've set up the ADC to trigger on a Timer 0 OC1 event according to Section 16.4.3 ''Starting Conversion'' in the latest version of the reference manual. My understanding is when the Timer 0 interrupt fires the ADC is triggered to begin sample conversion. I've verified my timer is interrupting at the expected sample rate however the ADC never starts.
Has anyone else tried using this enhancement and gotten it to work?2011-05-17 12:45 AM
I tried to do the same.
I see the STR bit of the ADC sets to '1' but no conversion is realy happening. did you have any success your self?2011-05-17 12:45 AM
Thanks for responding.
I think where I went wrong was enabling the timer before enabling the ADC. I'll try enabling the ADC first, waiting for 300mS, and then enable the timer. Thanks.2011-05-17 12:45 AM
it works fine.
your should notice that power up takes 300ms for the ADC. if you send a external request before this time you would see the str bit set but no comversion will be executed.2011-05-17 12:45 AM
hope this will help you.
please find attached the register setup of TIM0 & ADC before starting the timer.2011-05-17 12:45 AM
Hello ByteJammer,
Please find attached an example trigger ADC with timer as trigger source working with the latest silicon revision STR912FA. May be you have a problem in your project. Best regards, mirou