Post Go back to editing

ADUC706x ADC通道切换的问题

在使用7061中,需要切换AD通道采集数据,ADC配置使用了滤波器,在通道切换后,采集的数据出现错乱。

请问下切换的流程应该怎样操作?

Parents
  • 我也是先把ADC配置为Idle mode,然后再切换通道的。后来我发现了出错是因为ADCxDAT里的值是切换通道前的数值,并没有在切换通道后实时更新。需要过若干个转换次数,才能读到正确的数据。

    这个”若干次数“应该怎么判断的呢?如何能够在确定的状态下读到正确的数据?

    手册上有如下说明:Note that, when software switches from one input to another (on the same ADC), the digital filter must first be cleared and then allowed to average a new result. Depending on the con-figuration of the ADC and the type of filter, this can take multiple conversion cycles.

    这里是如何清除数字滤波器?

Reply
  • 我也是先把ADC配置为Idle mode,然后再切换通道的。后来我发现了出错是因为ADCxDAT里的值是切换通道前的数值,并没有在切换通道后实时更新。需要过若干个转换次数,才能读到正确的数据。

    这个”若干次数“应该怎么判断的呢?如何能够在确定的状态下读到正确的数据?

    手册上有如下说明:Note that, when software switches from one input to another (on the same ADC), the digital filter must first be cleared and then allowed to average a new result. Depending on the con-figuration of the ADC and the type of filter, this can take multiple conversion cycles.

    这里是如何清除数字滤波器?

Children
No Data