- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had a Problem in reading ADC result in PSOC 4 Program.
use below cmd and it returns 0x1FF.
ch_X = ADC_GetResult16(0);
ADC configuration is below
As per the below table from datasheet of ADC SAR it is not supposed to receive such data can you please look in to it and suggest any changes.
Thanks and Regards
Paras.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Paras,
I tried recreating the issue at my end with your set up and was not successful. I got the results like 0xFFFF as expected. Could you make sure that you are reading the results after the conversion is completed.
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
can be called before the result read after initiating a conversion.
One additional change I can suggest is the configuration you have chosen has an option of -noise signals in the results.
Instead of using this configuration, change the Vref to be VDDA/2 and Single ended negative input to Vref.
This should give you proper results.
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paras,
Could you please share the channel tab screenshot in the ADC configuration window ? What is the resolution you have chosen for channel 0 there ? Is it 10 bits in that window ?
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
snap shot attached and also i am using PSOC 4 CY8C4245AZI-483 psoc Device.
Thanks
PARAS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Paras,
I tried recreating the issue at my end with your set up and was not successful. I got the results like 0xFFFF as expected. Could you make sure that you are reading the results after the conversion is completed.
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT);
can be called before the result read after initiating a conversion.
One additional change I can suggest is the configuration you have chosen has an option of -noise signals in the results.
Instead of using this configuration, change the Vref to be VDDA/2 and Single ended negative input to Vref.
This should give you proper results.
Best Regards,
Vasanth