Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > Capsense Sensor Auto Reset time

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Capsense Sensor Auto Reset time
Moderator:
RKRM

Post Reply
Follow this topic



Capsense Sensor Auto Reset time

nibcola posted on 24 Oct 2012 3:38 AM PST
Member
8 Forum Posts

 Hello,

In CapSense CSD (PSoC3), Sensor Auto Reset is very useful, but too fast for my applications. Is there any way to change the time in which sensor baseline arrive to data value (from 5-10sec to 30 -60 sec)? In PSoC1 it was simple to tune this parameter.

Thanks

Nicola




Re: Capsense Sensor Auto Reset time

JamesChang posted on 30 Oct 2012 08:49 PM PST

1 Forum Post

Hello there,

Sorry, I don't know the answer to your question.  It seems you know how to make it in PSOC1.

Can you kindly tell me how to change the time in which sensor baseline arrive to data value (from 5-10sec to 30 -60 sec)?

Is it changing the baselineupdate threshold parameter?

Thanks a lot

BRs,

James



Re: Capsense Sensor Auto Reset time

QuickSilver posted on 31 Oct 2012 07:35 AM PST
Senior Member
19 Forum Posts

nibcola,

 

There is no direct parameter to control the time after which baseline catches up with raw counts. But, I think you can tweak the component code a little bit to easily achive what you are looking for. I am refering to the code from Capsense CSD v2.30. Check the API CapSense_UpdateSensorBaseline() in CapSense_CSHL.c file. The code in 'else' part beginnig line 484 implements the logic of sensor auto reset. All it does is that it increments baseline step by step so that it eventually catches up with the raw counts. To increase the time as you said, you could implement a counter for each sensor similar to CapSense_LowBaselineResetCnt used in lines 474-482.

 

Until the counter is counting, do not update baseline so that it stays flat for some time. Once counter reaches certain value, you can implement the baseline update exactly as per lines 494-507. By adjusting the limiting value of counter, you can easily adjust the time just the way you want.



Re: Capsense Sensor Auto Reset time

nibcola posted on 12 Nov 2012 02:52 AM PST
Member
8 Forum Posts

 Thanks QuickSilver, that problem changed priority so I will look forward it another time. I will save your suggestion for the CSD library edit, I will be essential!

Thanks

Nicola






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20