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

PSoC™ 4 Forum Discussions

NaMo_1534561
Level 5
Level 5
100 replies posted 100 sign-ins 50 replies posted

Hello,

It can select Direct, SSC, PRS as Sense clock source in Fourth-generation CapSense.

According to the datasheet, when the Sense clock source is set to "Auto", the firmware chooses the setting for each widget.

Specifically, what criteria does it choose?

Also, can the user know which clock CSD is using?

Component version : 5.0

Best Regards,

Naoaki Morimoto

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi NaMo_1534561​,

When set as Auto, the component will chose the most optimal sense clock source in the following priority:

1. SSC10

2. SSC9

3. SSC7

4. SSC6

5. PRS12

6.PRS8

7. Direct

1. You can try calculating in this order and try to figure out the best fit.

2. Or, you can use CapSense_GetParam(CapSense_BTN0_SNS_CLK_SOURCE_PARAM_ID, &value) after calling CapSense_Start() to read the sense clock source

Please refer Access and Modify CapSense Register Map in Firmware – KBA2226674  to know how to access the CapSense data structure.


Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
2 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi NaMo_1534561​,

When set as Auto, the component will chose the most optimal sense clock source in the following priority:

1. SSC10

2. SSC9

3. SSC7

4. SSC6

5. PRS12

6.PRS8

7. Direct

1. You can try calculating in this order and try to figure out the best fit.

2. Or, you can use CapSense_GetParam(CapSense_BTN0_SNS_CLK_SOURCE_PARAM_ID, &value) after calling CapSense_Start() to read the sense clock source

Please refer Access and Modify CapSense Register Map in Firmware – KBA2226674  to know how to access the CapSense data structure.


Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

Hello Bragadeesh-san,

Thank you for your answer.

I can confirm which clock source is selected using the API.

Best Regards,

Naoaki Morimoto

0 Likes