PDL 2.1 S6E1C3 with PSoC Creator 4.0 Can I use ADC?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
bharadhwajas_91
Employee
Employee
First like received First like given

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. 

View solution in original post

0 Likes
4 Replies
bharadhwajas_91
Employee
Employee
First like received First like given

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.

0 Likes
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Dear bhwj-san,

   

Thank you very much for your response.

   

I uploaded the archive of my project.

   

Would you teach me where I made mistake?

   

Best Regards,

   

15-Mar-2017

   

Motoo Tanaka

0 Likes
lock attach
Attachments are accessible only for community members.
bharadhwajas_91
Employee
Employee
First like received First like given

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. 

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

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

0 Likes