Capsense Matrix keypad 2x2

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

cross mob
shilpasonone04
Level 1
Level 1
25 sign-ins 10 sign-ins 5 questions asked

I am working on 2x3 Cap Sense matrix keypad interfacing using PSOC4 ,

but i am facing difficulty in software section. Can anyone give suggestion on it.

0 Likes
1 Solution
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @shilpasonone04,

After scanning the sensors in the for loop, processing needs to be done. Can you include the CapSense_ProcessAllWidgets() function in the for loop and check for the functionality?

Also, when CapSense scan is initiated, the program must wait until the scan is complete. Use the below template, and test your application:

int main(void)
{
CyGlobalIntEnable;
CapSense_Start();
//<other code>

for(;;)
{
/* Place your application code here. */
if( !CapSense_IsBusy())
{
CapSense_ProcessAllWidgets();

//other implementations

CapSense_ScanAllWidgets();
}
}
}

 

Regards,
Nikhil

View solution in original post

0 Likes
7 Replies