MTB and PMG1-S3 cyhal_adc_channel_config_t; what is Verf ?

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RuGl_1600761
Employee
Employee
25 replies posted 25 sign-ins 10 replies posted

for calculation output value of ADC and calculating the input divider I have to know the value of the internal reference voltage. Would be great to have this information in the description of the cyhal method.

So what is the internal reference when calling the adc init as described in the documentation...

const cyhal_adc_channel_config_t channel_config ={ .enable_averaging = false, .min_acquisition_ns = 220, .enabled = true };

thanks rgl

 

rgl
0 Likes
1 Solution
Pranava_YN
Moderator
Moderator
Moderator
100 likes received 500 replies posted 250 solutions authored

Hi rgl,

There are 2 ADCs present in PMG1-S3. It is recommended to use the PDL library to use these ADCs. 

8 bit ADC has the option to select Vref between internal bandgap (2.0V) or from external VDDD. 

12 bit ADC can also have configurable Vref. Please refer to the basic code example of both 8-bit and 12-bit ADCs here,

https://github.com/Infineon/mtb-example-pmg1-12-bit-saradc-basic

https://github.com/Infineon/mtb-example-pmg1-8-bit-saradc-basic

Readme provides elaborate information regarding the configurable parameters of these ADCs.

Please let me know if you need any further information regarding this.

Best regards,
Pranava

View solution in original post

0 Likes
1 Reply
Pranava_YN
Moderator
Moderator
Moderator
100 likes received 500 replies posted 250 solutions authored

Hi rgl,

There are 2 ADCs present in PMG1-S3. It is recommended to use the PDL library to use these ADCs. 

8 bit ADC has the option to select Vref between internal bandgap (2.0V) or from external VDDD. 

12 bit ADC can also have configurable Vref. Please refer to the basic code example of both 8-bit and 12-bit ADCs here,

https://github.com/Infineon/mtb-example-pmg1-12-bit-saradc-basic

https://github.com/Infineon/mtb-example-pmg1-8-bit-saradc-basic

Readme provides elaborate information regarding the configurable parameters of these ADCs.

Please let me know if you need any further information regarding this.

Best regards,
Pranava
0 Likes