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

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

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

1,368 Views
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

Labels (1)
Tags (2)
0 Kudos
Reply
3 Replies

1,282 Views
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 Kudos
Reply

1,282 Views
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 Kudos
Reply

1,282 Views
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 Kudos
Reply