Pages: [1]   Go Down
Author Topic: CTC and ADC autotrigger  (Read 343 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 138
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to use an interrupt from TIMER1_COMPA_vect as an autotrigger source for ADC conversion?

According to the spec, it appears that only COMPB can be used to auto trigger the ADC.  Am I missing something?

If the autotrigger isn't possible, I can manually trigger a conversion I guess.

I am using UNO btw
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Is it possible to use an interrupt from TIMER1_COMPA_vect as an autotrigger source for ADC conversion?

Doesn't look like it.

Quote
If the autotrigger isn't possible, I can manually trigger a conversion I guess.

As long as your application can tolerate the latency.
Logged

Montreal
Offline Offline
Edison Member
*
Karma: 23
Posts: 2487
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Run two channel in parallel, loading same value to A and B. In this case channel A keep frequency  , and B triggers ADC . Click on a link below, I used this technics in a few latest blogs, there is a code for UNO.
Logged

Pages: [1]   Go Up
Jump to: