Supply voltage

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

cross mob
Anonymous
Not applicable

 Is there any API to read supply voltage of PSOC chip?

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the fascinating world of PSoCs!

   

There is no direct API, but you could use an ADC to measure it. Can you be a bit more specific what you want to do, what your problem is?

   

 

   

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

There are basically two methods:

   
        
  • use a voltage divider for the supply voltage, and measure the result with ADC (using a internal reference). This is the direct way
  •     
  • use the supply voltage as the reference for the ADC, and measure the internal voltage reference with it. This is indirect (and needs conversion), but doesn't any external components.
  •    
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

The ADC-configuration using 6 * VRef is explicitely mentioned for measuring the supply-voltage.

   

 

   

Bob

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

Oh, I did forget about that ADC mode. Sure, that would be the easiest version.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

When you setup A/D also make sure you set

   

input buffer to "bypass buffer" in order to get a

   

CM range that includes the rail (Vdda).

   

 

   

Regards, Dana.

   

 

   

0 Likes