Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > ADC Delsig Question

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



ADC Delsig Question
Moderator:
RKRM

Post Reply
Follow this topic



ADC Delsig Question

TStamp posted on 27 Jul 2011 5:48 AM PST
Member
3 Forum Posts

Hello,

 

In my design I am trying to use to the ADC Delsig to measure the battery capacity of an on-board battery in my system by converting the battery input voltage to a digital value using the ADC Delsig component in the PSoC and then calculating the remaining battery life based on the output.

 

The battery I am measuring has an input range to the PSoC of 2.2 - 2.8 VDC.  My board has Vdda connected to +5VDC, so I configure the input range of the delsig to be single ended with an input range of "Vssa to Vdda."  However, when I make these settings, the Vref of the delsig is automatically set to "Internal Vdda / 4" or 1.25 volts.

 

How can the ADC delsig accurately measure a voltage input range of Vssa to Vdda when the reference voltage for the ADC is set to Vdda / 4?  Doesn't the reference voltage for the ADC need to be greater than the maximum input voltage?

 

Thank you.




Re: ADC Delsig Question

TStamp posted on 27 Jul 2011 06:16 AM PST
Member
3 Forum Posts

Looking at the datasheet for the ADC Delsig, it specifies that when input range is set to Vssa to Vdda, the ADC delsig behavior is ratiometric.  Is this saying that that both Vref and input values of the ADC are being divided by 4, so the output equation for the ADC will be:

 

d = ((Vin/4) / Vref) x 2^n       where d is the n-bit output of the ADC and Vref = Vdda / 4?

 

I would just like to get a definitive answer because it's not 100% clear to me from the delsig datasheet.

 

Thank you.



Re: ADC Delsig Question

U2 posted on 02 Aug 2011 11:12 PM PST
Cypress Employee
589 Forum Posts

Yes, as you have pointed out, the measurement made is ratiometric. The reference value used is selected based on the Input range selected in the Delsig ADC component(for VSSA - VDDA range) and voltage(VSSA) configuration is CYDWR file. When VSSA - VDDA input range is selected, the reference is configured to be VDDA/3 or VDDA/4(this depends on CYDWR setting). The input to be measured (input to the ADC) is attenuated to obtain input/4 or input/3. The attenuated input is then compared against the reference and digitised.






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20