- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Recently our original S6E1C3 board is up and running.
So far, we can use UART, I2C, SPI, EXINT, PWM and GPIO.
Today as I tried to add ADC input to my project,
the application was generated OK, but the Compiler complained
"PDL_ADC_v1_0 does not support selected device."
Question:
Am I supposed to be able to use ADC in S6E1C32D0VAGV20000 64-LQFP
with PDL v2.1 and PSoC Creator 4.0?
Best Regards,
14-Mar-2017
Motoo Tanaka
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tanaka-san,
I checked your project ,it builds fine for me.
But the error occurs only when PDL_ADC_TYPE == PDL_ADC_A , Please check in adc.h around line 140 to see what is the type of ADC , defined. It is Type B in the project and hence I do not see the error you have mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tanaka,
The device has one ADC ,have you choosen ADC1 unit ? It builds fine for me with ADC0 .
You can check the peripheral base address with s6e1c3xd.h file and observe that ADC0 is defined for this family.
- 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
Hi Tanaka-san,
I checked your project ,it builds fine for me.
But the error occurs only when PDL_ADC_TYPE == PDL_ADC_A , Please check in adc.h around line 140 to see what is the type of ADC , defined. It is Type B in the project and hence I do not see the error you have mentioned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear bhwj-san,
Thank you very much for your answer!
When I looked at around line 140, all definitions were grayed out,
and then I found my problem, which was somehow an old pld_user.h was included in my project.
After removing the old pld_user.h from the project, the project could be built fine
and ADC is working fine with our original S6E1C32 board.
Problem solved, thank you very much!
Best Regards,
16-Mar-2017
Motoo Tanaka