A/D channel list & Static sample groups

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A/D channel list & Static sample groups

Jump to solution
433 Views
gschelotto
Contributor V

Hello,

I've configured 5 ADC channels (with ADC interrupt disabled) as shown:

Untitled.png

and defined 2 groups (1st of channel 0 and 2nd of channel 1 to 5

Untitled2.png

For the channel 0 (group 0) I'd like to start the ADC conversion and get the value into a periodic timer driven ISR. For the other ones, channels 1 to 5 (group 1) I want to get the values from the main loop. In short, what ADC method should I use to perform?

  • A single ADC conversion for the channel 0 in the ISR
  • Four ADC (auto-scan) conversion for the channels 1 to 5

regards,

gaston

0 Kudos
1 Solution
286 Views
gschelotto
Contributor V

I've just found this method to implement the group change:

AD1_SelectSampleGroup()

regards,

gaston

View solution in original post

0 Kudos
1 Reply
287 Views
gschelotto
Contributor V

I've just found this method to implement the group change:

AD1_SelectSampleGroup()

regards,

gaston

0 Kudos