- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am working on PSOC 5LP kit. I am trying to implement an ADC , first I followed this link (https://eewiki.net/display/microcontroller/Utilizing+Analog+Peripherals+on+the+PSOC+5LP). But in this when i am working on Delsig ADC, even though the input is zero i am getting an output of 0.29V. I couldn't understand the reason behind that (but i thought this is because of Vref). SAR ADC is working fine. What is the reason and how to solve it.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your ADC is set for continueos conversion, so ADC_StartConvert() should be called only once. Before calling ADC_GetResult16() you need to wait for a conversion ready by using the ADC_IsEndConversion() API, see datasheet.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum.
Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please follow my suggestions exactly.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I attached the file by following the procedure you mentioned in the previous comment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The file you provided does not contain a complete project. Try for yourself: Download and expand, then try tp open with Creator
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your ADC is set for continueos conversion, so ADC_StartConvert() should be called only once. Before calling ADC_GetResult16() you need to wait for a conversion ready by using the ADC_IsEndConversion() API, see datasheet.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In System view change the Heap Size to 0x0200
In Project -> Build Settings -> Linker set "use newlib nano float formatting" to True.
Happy coding
Bob