Using HW_average,HW_Comparison and getting channel result with help of ADC PAL

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

Using HW_average,HW_Comparison and getting channel result with help of ADC PAL

1,998 次查看
shubhendu_shukl
Contributor II

Hi,

We are using multiple ADC inputs in our customized board, Now to read the values from All these pins we are planning to use ADC Pal, But for higher accuracy we need to integrate HW_Average and HW_Comparison 

how can we use the same with ADC Pal example

标签 (1)
标记 (2)
0 项奖励
回复
3 回复数

1,912 次查看
shubhendu_shukl
Contributor II

Hi Petr,

Thanks for the reply 

As per use case we want to use grouping feature as well as HW average/compare, what will be the best suited approach. 

 

0 项奖励
回复

1,912 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

To do a conversion of multiple channels it is ideally to use HW triggering through a PDB module, while back to back mechanism can be done too. 
You can refer to example posted on comunity; https://community.nxp.com/docs/DOC-343295

If HW average/compare is enabled, it is active for all the channels measured, which extends a conversion time, so trigger time generation must be properly configured.

BR, Petr

0 项奖励
回复

1,912 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

the ADC PAL driver does not provide setting for HW average/compare functions. The ADC driver offers both the average and compare functionality.

BR, Petr

0 项奖励
回复