cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

YoIs_1298666
Contributor II

Hello,

I have a question.

Please refer to URL below.

Reconfiguring GPIO of PSoC4000S

I can reconfigure CapSense CMOD to GPIO input about PSoC4000S dinamically, right?

I tried it. It can run well.

Do you have any problems?

Best regards,

Yocchi

0 Likes
Reply
1 Solution
BragadeeshV
Moderator
Moderator

Hi Yocchhi-san,

Is it not possible for you to use some other pin other than CMOD pin. We haven't seen our customers use CMOD pin for some other purpose. Although we have had requests to use sensor pins as digital input. However, if the input buffer is turned off before the CapSense operation begins, then we don't see a problem.

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
Reply
8 Replies
BragadeeshV
Moderator
Moderator

Hi YoIs_1298666​,

Since it is connected to a 2.2 nF capacitor, do you not see any slow responses in the digital input?

Also, it is generally not recommended to connect anything to the Cmod pins as it might load your Cmod pin when used as CapSense.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
Reply
YoIs_1298666
Contributor II

Hello Bragadeesh-san,

Thank you for your reply.

It is not scanning CapSense.

For example, it is configered digital input after powering up.

Then, it is reconfigured to CapSense and executes CapSense_Start().

Is there no problem?

Best regards,

Yocchi

0 Likes
Reply
BragadeeshV
Moderator
Moderator

Hi Yocchhi-san,

Is it not possible for you to use some other pin other than CMOD pin. We haven't seen our customers use CMOD pin for some other purpose. Although we have had requests to use sensor pins as digital input. However, if the input buffer is turned off before the CapSense operation begins, then we don't see a problem.

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
Reply
YoIs_1298666
Contributor II

Hello Bragadeesh-san,

It is an inspection whether the soldering of PCB is done correctly.

The normal operation of CapSense does not change it as a digital input pin.

Best regards,

Yocchi

0 Likes
Reply
BragadeeshV
Moderator
Moderator

Hi YoIs_1298666​,

Then it should not be a problem.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
Reply
YoIs_1298666
Contributor II

Hello Bragadeesh-san,

I have a question.

In case of sensor pins, HSIOM_PORT_SELx register is set to 0x4:CSD_SENSE.

In case of CMOD pin, this register is set to 0x6:AMUXA.

Is this correct?

pastedImage_1.png

Best regards,

Yocchi

0 Likes
Reply
BragadeeshV
Moderator
Moderator

Hi YoIs_1298666​,

Yes, you are right. CMOD has to be connected to AMUX Bus A (0x06).


Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
Reply
YoIs_1298666
Contributor II

Hello Bragadeesh-san,

Thank you very much for your help.

Best regards,

Yocchi

0 Likes
Reply