Reconfiguring CapSense CMOD to GPIO input of PSoC4000S

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

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

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
1 Solution

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
8 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

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

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

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
0 Likes

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

Hi YoIs_1298666​,

Then it should not be a problem.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

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

Hi YoIs_1298666​,

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


Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

Hello Bragadeesh-san,

Thank you very much for your help.

Best regards,

Yocchi

0 Likes