- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi all cypress friends,
i run a voltage meter project
so i place a ADC_SAR_Seq , and a analog input
how could i set a right Vref,that could accept Voltage range from 0-5V ,
i saw the Vhref selection have a VDD , but it is 3.3V
Thanks for your help,
david
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, and? The resistor ladder will reduce the 5.0V input to (for instance) 3.0 V. then you do a re-calculation like Voltage = Measured * 5.0 / 3.0;
There is an API to set the gain and offset, so that the count to volt API does this automatically.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, David.
Because no voltage may be larger than Vdd you will need a resistor ladder to reduce your analog input to 3.3V.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
but my input range need 0-5v input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, and? The resistor ladder will reduce the 5.0V input to (for instance) 3.0 V. then you do a re-calculation like Voltage = Measured * 5.0 / 3.0;
There is an API to set the gain and offset, so that the count to volt API does this automatically.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks