Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

YSJE_3566666
Level 4
Level 4
50 questions asked 25 replies posted 100 sign-ins

Hello.

I don't understand how to calculate ADC result in "millivolt [mV]" using ADC_1_ReadResult_mVolts() function.

a.JPGb.JPG

I think that calculation is needed for ADC conversion value(digital value) to Voltage.

For example, Voltage = Vadc_in * 1024(10bit resolution) / Vdda.

I could get a value in [mV] with ADC_1_GetResult_mVolts() function.

But I couldn't find any calculation or I think I missed something.

Could anyone explain to me?

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
10 questions asked 5 questions asked 250 sign-ins

Firstly, find the CapSense_ADC_Adc_INT.c file, then run into the function "CY_ISR(CapSense_ADC_AdcIntrHandler)".

It explains how to calculate the result into mv.

View solution in original post

1 Reply
LinglingG_46
Moderator
Moderator
Moderator
10 questions asked 5 questions asked 250 sign-ins

Firstly, find the CapSense_ADC_Adc_INT.c file, then run into the function "CY_ISR(CapSense_ADC_AdcIntrHandler)".

It explains how to calculate the result into mv.