You are here

How can I code the output of ADC ? | Cypress Semiconductor

How can I code the output of ADC ?

Summary: 3 Replies, Latest post by danaaknight on 15 Jul 2015 03:22 AM PDT
Verified Answers: 3
Last post
Log in to post new comments.
eunat's picture
8 posts

I am trying to calculate the power consumption of a system , to do so I am reading the voltage value from a shunt resistor and amplifying it . After amplification , the signal goes to the Delta-Sigma ADC and finally I have digital form of my voltage value. Now , I need to do calculation with coding. How can I code the digital output of an ADC ?

user_78878863's picture
2551 posts

The DelSigADC API has several functions that convert the digital reading into voltage values.

user_1377889's picture
9268 posts

As usual there are some example projects availlable. Just right-click on the ADC component and select "Find Example Project". Choose one without DMA first, will be easier for you.



user_14586677's picture
7646 posts

Your reading off the shunt R produces an equivalent instantaneous I.

Ohms law. The V read is instantaneous V. So now you have to correct

for reactive loads. Google "embedded power meter ac line", lots of ap

notes on basic calculations and period measurement to do the calculations.


Regards, Dana.

Log in to post new comments.