You are here

How to get more then one button to work with CSD | Cypress Semiconductor

How to get more then one button to work with CSD

Summary: 2 Replies, Latest post by thunter on 25 Aug 2009 11:36 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
thunter's picture
2 posts

I have created a 4 button application using a CY8C24894-24LFX. Why can I see raw count values changing for button0 but all other buttons remain at a static raw count of 255. The C source is:

void main()






while (1)





for (i = 0; i < CSD_ButtonCount; i++)


printRawCount(i, CSD_waSnsResult);





Why don't I see the CSD_waSnsResult values changing for i > 0?



pmad's picture
Cypress Employee
100 posts

Hi Tom,

CSD_waSnsResult is an array which should be accessed CSD_waSnsResult format. If you are doing it correctly and the raw counts for other sensors is stuck at FF value then it means that your sensors has saturated. Try tuning your board as per the attached tuning guidelines and let me know whetehr it helps or not.

thunter's picture
2 posts

Hi Pushek,

Thanks for your help. The problem was indeed that the sensors where staturated.

I have been trying your calibration flowchart, but don't get a good signal to noise ratio.

The prototype I am working with uses an ITO touchscreen and using 12 bit resolution I get raw counts of about 0xA00 and when touched about 0xA10 - 0xA18. This is using the CSD User Module on a CY8C24894. I have been trying different Prescaler Periods, Comparator Ref Values and Scan Speeds, Rb and Cmod values. The best I get is a touch value of about 0x10 - 0x18 from the baseline.

Any ideas?

Best regards

Tom Hunter

Log in to post new comments.