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

PSoC™ 4 Forum Discussions

David_Zhang
Level 5
Level 5
100 replies posted First solution authored 50 replies posted

     hi   CYPRESS:

             when i use cypress psoc4 as the main mcu, and the  io pin as touch key;  but sometime ,i will occur to stuck in the power on ,

when  i  see the rawcount & baseline in the tuner , the Rawcount is close to baseline and the baseline can't come to lower position, so the

touch can't work , do you have any advice?

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

Hi DaZh_2976111​,

  1. Can you please provide us screenshot of tuner showing the raw counts, difference counts and baseline focusing the issue. Also please mention in the graph if the button is pressed or not during that time.
  2. What is the PSoC 4 device you are using in your application?
  3. Please make sure you have followed all the design guidelines mentioned in PSoC 4 CapSense Design Guide, especially schematic rule checklist and layout rule checklist:

        https://www.cypress.com/file/46081/download

   4. Is it possible for you to share the hardware and software parameters that you have set for the sensor?

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

hi  Cypress:

      when  we  check the  wave of cy8c4146;  we find that that  Rawcount is bigger  than baseline when the power is on the first time ,not the same as basline; but the normal situation is that  rawcount is the same as baseline when the power is on the first time;  and when the button is presssed ,  the signal is change;

0 Likes

hi  Cypress:

    The problem is described as follows:

     1、when the touch key stuck in the fist power on , we check the wave of  the signal, the Rawcount is bigger than baseline and  the signal is much bigger than normal touch key ;  so the baseline not follow the rawcount on the power first time;  when the touch key is stucked, we must to powre off and on , it may back to normal  or still  abnormal; 

pastedImage_3.png

normal l touch key wave show as below:

pastedImage_4.png

the source code :

  Capsense_start()

Capsense_scanAllWidget();

check busy;

Capsense_processAllWidge()

Capsense_scanAllWidget();

0 Likes

Hi DaZh_2976111​,

Can you please let us know if this issue happens with all the sensors or only one particular sensor?

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

hi  Bragadeesh:

     When power is on, it happens randomly on certain keys;   we check the source code , when the power is on , rawcount = baseline,

but in the tuner rawcount  != baseline;

0 Likes

Hi DaZh_2976111​,

From your previous post it looks like the issue is with tuner and not the PSoC device? Is that true? Did you try disconnecting the device from tuner and then reconnecting it back?

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

hi  CY:

     Do  you mean  the tuner lead issue?  when tuner is off ,it's still has issue, we just look the wave to tuner,  TKS;

0 Likes

Hi DaZh_2976111​,

Thanks for the update. Apologies for delayed response.

First we need to figure out if the issue is with the firmware or the hardware?

Can you please load a Cypress provided CapSense code example based on your device into your custom board.

If you still face this issue with a Code example, then it might be a hardware issue. But if you don't face this issue, then it is a firmware issue.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes