A/D channel list & Static sample groups

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

A/D channel list & Static sample groups

跳至解决方案
908 次查看
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 项奖励
回复
1 解答
761 次查看
gschelotto
Contributor V

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

AD1_SelectSampleGroup()

regards,

gaston

在原帖中查看解决方案

0 项奖励
回复
1 回复
762 次查看
gschelotto
Contributor V

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

AD1_SelectSampleGroup()

regards,

gaston

0 项奖励
回复