Cypress CE66058 Manual

Cypress CE66058 Manual

Dynamically switch csd bleed resistor

Advertisement

Quick Links

Objective
You can achieve the proper sensitivity for sensors in an end system that have a considerable difference in parasitic
capacitance (C
) by tuning the raw counts of each sensor to 60 to 70 percent of the maximum value. This code example
p
describes a method that compensates for differences in sensor raw counts due to variations in C
with different bleed resistors.
Requirements
Project Name: Example_Dynamic_Bleed_Resistor
Programming Language: C
Associated Part Families:
Designer™ 5.4 Build 2946
Software Version:
PSoC
Related Hardware:
CY3280-24x94
Overview
®
In some CapSense
designs, the dimensions of the sensing elements vary widely, which in turn causes variations in the C
the different sensors. For example, the C
the CapSense pin of the device. See
To implement the CapSense Sigma Delta (CSD) functionality in a CY8C24x94 device, connect an external modulation
capacitor (Cmod) and a bleed resistor (Rb) to the device, as shown in
architecture in the CY8C24x94 CapSense controller, refer to the
tuning the CSD User Module in the CY8C24x94 CapSense controller, refer to
www.cypress.com
CY8C24x94
UCC, CY3280-SLM,
may vary because of a difference in size or the length of the trace from the button to
p
Figure
1.
Figure 1. CapSense Design with Different Sensor C
Figure 2. CapSense Design Using the CY8C24x94 Device
Rb1
Cmod
Document No. 001-66058 Rev.*E
CE66058 - Dynamically Switch CSD Bleed
CY3240-I2USB Bridge/MiniProg1/MiniProg3
Figure
CY8C21x34/B CapSense Design
Appendix: CSD
Vdd
CY8C24x94
Resistor
by scanning the sensors
p
p
2. For more information about the CSD
Guide. To learn more about
Calibration.
CS0
CS1
CSn
of
p
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CE66058 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress CE66058

  • Page 1 CE66058 - Dynamically Switch CSD Bleed Resistor Objective You can achieve the proper sensitivity for sensors in an end system that have a considerable difference in parasitic capacitance (C ) by tuning the raw counts of each sensor to 60 to 70 percent of the maximum value. This code example...
  • Page 2 CapSense design in which two bleed resistors, Rb1 and Rb2, of different values are used to tune all the sensors to 60 to 70 percent of the maximum value. Figure 3. CapSense System with Two Different Bleed Resistors CY8C24x94 Cmod www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 3 60 to 70 percent of the maximum value, a different Rb is used for button 4. Using Equation 3 Equation �� 0.70∗2 Rbmax4 = ������������ �� ∗[ ]∗[ −1]∗���� ������ 4∗������������ 0.70∗ 2 Rbmax4 = 24������ ∗[ ]∗[ −1]∗11���� 4∗1 0.70 10.6 kΩ Rbmax4 = 6������∗11���� www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 4: Hardware Setup

    Bridge or MiniProg3 to send the data to a PC using the BCP. The MiniProg1/3 and CY3240-I2USB Bridge connect to the PC through a USB cable. Figure 4. Hardware Setup Block Diagram MiniProg1/MiniProg3 (Required for programming) CY3280SLM CY3280-24X94 UCC CY3240-I2USB / MiniProg3 (Required for debugging) www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 5: Setting Up The Board

    Use the USB A to Mini-B cable to connect the other end of the MiniProg1/CY3240-I2USB Bridge/MiniProg3 to the PC. Figure 5. Removing Pull-Up Resistors Figure 6. Connecting Rb2 between P1[5] and P0[5] Removed pull-up resistors Rb2 connected between P1[5] and P0[5] Shorted pads www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 6 RF interference. Figure 7. Schematic Diagram Table 3. Buttons, Cmod, and Rbx Pin Assignment Name Pin Number Button 0 P1[6] Button 1 P1[3] Button 2 P3[3] Button 3 P2[1] Button 4 P2[3] Cmod P0[5] P3[1] P1[5] www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 7: Software Setup

    4 with Rb2 Set I2C RAM Update all buffer baselines and check if any sensor is active Start I2C and CSD Update I2C RAM buffer with CapSense parameters (RawCount, Baseline, Difference Counts) Initialize CapSense Baselines www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 8  CMP_GO_EN: This register sets the comparator output to the global bus. Note For more information about these registers, refer to the device TRM available at www.cypress.com/?rID=34621. The values shown in Table 5 must be ORed with these registers to enable a pin for Rb operation.
  • Page 9 Use the CY3240-I2USB Bridge and a USB A to Mini-B cable to connect your computer to ISSP connector J3 of the CY3280-24x94 UCC board. Go to Start > All Programs > Cypress > Bridge Control Panel (version) > Bridge Control Panel (version). The BCP is a component that is installed in your computer during the PSoC Programmer installation.
  • Page 10 Button 4 raw count with single Rb (Rb1) in CSD design = 2047 (49 percent of maximum value)  Button 4 raw count with separate Rb (Rb2) in CSD design = 2844 (70 percent of maximum value) www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 11 Capture the difference counts when the button is activated. Set the finger threshold parameter to 75 percent of the peak value. Set the noise threshold to 40 percent of the peak value. Set the negative noise threshold to half of the noise threshold. www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 12 “button lock.” 10. Set the AutoReset and Debounce parameters as required. Refer to the CSD User Module datasheet for more information about these parameters. 11. For any other parameter, refer to the user module datasheet. www.cypress.com Document No. 001-66058 Rev.*E...
  • Page 13: Document History

    Dynamically Switch CSD Bleed Resistor Document History Document Title: CE66058 - Dynamically Switch CSD Bleed Resistor Document Number: 001-66058 Revision Orig. of Submission Description of Change Change Date 3112684 PRIA 12/16/2010 Initial release. 4075620 DCHE 07/16/2013 Updated Setting Up the...
  • Page 14: Technical Support

    Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products.

Table of Contents