- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello I am using CY8CKIT-043 having MCU CY8C4247AZI-M485. My Application is to measure the input voltage which is 5V i have taken here. And i scaled it down to 1V using resistor divider of 4k and 1k to make input voltage compatible with ADC input voltage range. I have taken ADC reference as internal 1.024V. But i am not getting useful result .Everytime i am getting diffrent value of Output. I have also attached my project.
Please Be helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- what are "different values" of the output? differing by how much from reading to reading?
- are you sure your input is not noisy?
- added a bypass cap for the reference voltage?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On the Kit-043 a bypass cap is already connected. Resolution of ADC is 11 bits, not 12 when VSS is selected for negative input. When you select Internal Vref range is 0..2048V @12 bits resolution.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@BOb you are right but in my case some times i got adc count 0 or some time random value for constant voltage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I tested your project at my end and I am getting the right values. I checked in debug mode in the variable 'ouput' you have defined I am getting the correct output. I suspect something is wrong with your hardware or the input you are giving. Can you make sure that you are giving the right input value.
Best Regards,
VSRS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sounds like a "loose" wire or a bad potentiometer contact.
Bob