cancel
Showing results for 
Search instead for 
Did you mean: 

Ext. Triggered ADC

bytejammer
Associate II
Posted on August 29, 2007 at 12:16

Ext. Triggered ADC

6 REPLIES 6
bytejammer
Associate II
Posted on May 17, 2011 at 09:45

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?

barak
Associate II
Posted on May 17, 2011 at 09:45

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?

bytejammer
Associate II
Posted on May 17, 2011 at 09:45

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.

barak
Associate II
Posted on May 17, 2011 at 09:45

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.

barak
Associate II
Posted on May 17, 2011 at 09:45

hope this will help you.

please find attached the register setup of TIM0 & ADC before starting the timer.

amira1
Associate II
Posted on May 17, 2011 at 09:45

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