how control adc value offset by adc_sar_ip?

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

how control adc value offset by adc_sar_ip?

Jump to solution
303 Views
rlaxortn
Contributor IV

i am using s32k314 and s32ds RTD4.0.0.

 

rlaxortn_0-1751007923560.png

 

1. Is there a way to control the offset when reading adc from adc_sar_ip?

 

2. How can I change and control the offset?

 

thanks to help.

Tags (1)
0 Kudos
Reply
1 Solution
281 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

There are two ways to change the offset of an ADC instance.

1. With User Offset in Config Tools, as the image you have shared.
2. In code, using Adc_Sar_Ip_SetUserGainAndOffset() function.

See details in User Manual for S32K3_S32M27x ADC Driver in right top corner of ADC driver:

_Leo__0-1751049993377.png

I hope this information is helpful.

View solution in original post

0 Kudos
Reply
1 Reply
282 Views
_Leo_
NXP TechSupport
NXP TechSupport

Thank you for your interest in our products and for contributing to our community.

There are two ways to change the offset of an ADC instance.

1. With User Offset in Config Tools, as the image you have shared.
2. In code, using Adc_Sar_Ip_SetUserGainAndOffset() function.

See details in User Manual for S32K3_S32M27x ADC Driver in right top corner of ADC driver:

_Leo__0-1751049993377.png

I hope this information is helpful.

0 Kudos
Reply