including Spansion LLC (“Cypress”). This document, including any software or firmware included or referenced in this d ocument (“Software”), is
owned by Cypress under the intellectual property laws and treaties of the United States and other countries worldwide. Cypress reserves all rights
under such laws and treaties and does not, except as specifically stated in this paragraph, grant any license under its patents, copyrights,
trademarks, or other intellectual property rights. If the Software is not accompanied by a license agreement and you do not otherwise have a written
agreement with Cypress governing the use of the Software, then Cypress hereby grants you a personal, non-exclusive, nontransferable license
(without the right to sublicense) (1) under its copyright rights in the Software (a) for Software provided in source code form, to modify and reproduce
the Software solely for use with Cypress hardware products, only internally within your organization, and (b) to distribute the Software in binary code
form externally to end users (either directly or indirectly through resellers and distributors), solely for use on Cypress hardware product units, and (2)
under those claims of Cypress’s patents that are infringed by the Software (as provided by Cypress, unmodified) to make, use, distribute, and import
the Software solely for use with Cypress hardware products. Any other use, reproduction, modification, translation, or compilation of the Software is
prohibited.
TO THE EXTENT PERMITTED BY APPLICABLE LAW, CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH
REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. To the extent permitted by applicable law, Cypress
reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or
use of any product or circuit described in this document. Any information provided in this document, including any sample design information or
programming code, is provided only for reference purposes. It is the responsibility of the user of this document to properly design, program, and test
the functionality and safety of any application made of this information and any resulting product. Cypress products are not designed, intended, or
authorized for use as critical components in systems designed or intended for the operation of weapons, weapons systems, nuclear installations, lifesupport devices or systems, other medical devices or systems (including resuscitation equipment and surgical implants), pollution control or
hazardous substances management, or other uses where the failure of the device or system could cause personal injury, death, or property damage
(“Unintended Uses”). A critical component is any component of a device or system whose failure to perform can be reasonably expected to cause
the failure of the device or system, or to affect its safety or effectiveness. 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. You shall indemnify
and hold Cypress harmless from and against all claims, costs, damages, and other liabilities, including claims for personal injury or death, arising
from or related to any Unintended Uses of Cypress products.
Cypress, the Cypress logo, Spansion, the Spansion logo, and combinations thereof, WICED, PSoC, CapSense, EZ-USB, F-RAM, and Traveo are
trademarks or registered trademarks of Cypress in the United States and other countries. For a more complete list of Cypress trademarks, visit
cypress.com. Other names and brands may be claimed as property of their respective owners
2.3.1 Process Variation.................................................................................................................................... 13
2.3.2 Reduced Design Cycle Time .................................................................................................................. 13
3.1.7 LED ON Time ......................................................................................................................................... 18
3.1.8 System Diagnostics ................................................................................................................................ 19
3.1.10 Serial Debug Data Out ............................................................................................................................ 22
5.1 System Design Recommendations ...................................................................................................................... 33
5.2 Calculating Average Power ................................................................................................................................. 33
5.2.8 Example Calculation ............................................................................................................................... 36
6.5 Design Support .................................................................................................................................................... 39
7.1 Schematic Example ............................................................................................................................................. 40
7.1.1 Schematic 1: Four Buttons with Four GPOs ........................................................................................... 40
7.1.2 Schematic 2: Three Buttons with Advanced Features enabled .............................................................. 42
Revision History ................................................................................................................................................................... 50
Document Revision History ........................................................................................................................................... 50
This document describes how to implement capacitive sensing functionality using Cypress’s CapSense
CY8CMBR2044 device. The following topics are covered in this guide:
Features of the CY8CMBR2044
CapSense principles of operation
Configuration options of the CY8CMBR2044 device
Using the Design Toolbox with the CY8CMBR2044
System electrical and mechanical design considerations for the CY8CMBR2044
Low-power design considerations for the CY8CMBR2044
Additional resources and support for designing CapSense into your system
®
Express
Cypress’s CapSense Documentation Ecosystem
Figure 1-1 and Table 1-1 summarize the CapSense documentation ecosystem. These resources allow the
implementers to quickly access the information they need to complete a CapSense product design. Figure 1-1 shows
a typical product design cycle with capacitive sensing; this document covers the topics highlighted in green. Table 1-1
offers links to supporting documents for each of the numbered tasks in Figure 1-1.
Table 1-1. Cypress Documents That Support Numbered Design Tasks of Figure 1-1
CY8CMBR2044 CapSense Express™ Device Features
Cypress’s CY8CMBR2044 is an ultra-low power device that can quickly and easily add CapSense capacitive touch
sensing to your user interface. This device uses hardware to perform system configuration, eliminating the need for
software tools, firmware development and device programming. The features of the device are listed as follows. For
more details, see CY8CMBR2044 Configuration Options.
Easy-to-use capacitive button controller
Four-button solution configurable through Hardware straps
No software tools or programming required
Four general-purpose outputs (GPOs)
GPOs are linked to CapSense buttons
GPOs support direct LED drive
Robust noise performance
Specifically designed for superior noise immunity to external radiated and conducted noise
Low radiated noise emission
SmartSense™ Auto-Tuning
Saves time and effort in device tuning
CapSense parameters dynamically set in runtime
Maintains optimal button performance even in noisy environment
System Diagnostics of CapSense buttons – reports any faults at device power-up
Button shorted to Ground
Button shorted to VDD
Button to button short
Improper value of modulator capacitor (C
Parasitic capacitance (CP) out of range
Advanced features
Toggle ON/OFF feature on GPOs
Flanking Sensor Suppression (FSS) provides robust sensing even with closely spaced buttons
Configurable LED ON Time after button release
Button output reset if touched for excessive time
User-controlled Button Scan Rate
Serial Debug Data output
o Simplifies production line testing and system debug
Wider operating voltage range
1.71 V to 5.5 V – ideal for both regulated and unregulated battery applications
Low power consumption
Supply current in run mode as low as 15 µAa per button
Deep Sleep current: 100 nA
Industrial temperature range: –40 ºC to + 85 ºC
16-pad Quad Flat No leads (QFN) package (3 mm x 3 mm x 0.6 mm)
a
Power consumption calculated with 1.7% touch time, 500 ms Button Scan Rate, Cp of each button < 19 pF
CapSense is a touch sensing technology that works by measuring the capacitance of each input pin on the
CapSense controller that has been designated as a sensor. As shown in Figure 2-1, the total capacitance on each of
the sensor pins can be modeled as equivalent lumped capacitors with values of C
sensors. Circuitry internal to the CY8CMBR2044 device converts the magnitude of each CX into a digital code that is
stored for post-processing. A modulating capacitor, C
C
will be discussed in more detail in Capacitive Sensing Method.
MOD
, is used by the CapSense controller’s internal circuitry.
MOD
Figure 2-1. CapSense Implementation in a CY8CMBR2044 Device
through C
X,1
for a design with n
X,n
Each sensor input pin is connected to a sensor pad by traces, vias, or both, as necessary. A nonconductive overlay is
required to cover the sensor pad and constitutes the product’s touch interface. When a finger comes into contact with
the overlay, the conductivity and mass of the body effectively introduces a grounded conductive plane parallel to the
sensor pad. This action is represented in Figure 2-2. This arrangement constitutes a parallel plate capacitor, whose
capacitance is given by the following equation:
Equation 1
Where:
CF = The capacitance affected by a finger in contact with the overlay over a sensor
ε
= Free space permittivity
0
ε
= Dielectric constant (relative permittivity) of overlay
r
A = Area of finger and sensor pad overlap
D = Overlay thickness
Figure 2-2. Section of typical CapSense PCB with the Sensor being activated by a Finger
In addition to the parallel plate capacitance, a finger in contact with the overlay causes electric field fringing between
itself and other conductors in the immediate vicinity. Typically, the effect of these fringing fields is minor, and it can
usually be ignored.
Even without a finger touching the overlay, the sensor input pin has some parasitic capacitance (CP). CP results from
the combination of the CapSense controller internal parasitic and electric field coupling among the sensor pad,
traces, and vias, and other conductors in the system, such as ground plane, other traces, any metal in the product’s
chassis or enclosure, and so on. The CapSense controller measures the total capacitance (CX) connected to a
sensor pin.
When a finger is not touching a sensor, use this equation:
Equation 2
With a finger on the sensor, CX equals the sum of CP and CF:
Equation 3
In general, CP is an order of magnitude greater than CF. CP usually ranges from 10 pF to 20 pF, but in extreme cases
it can be as high as 40 pF. CF usually ranges from 0.1 pF to 0.4 pF.
Capacitive Sensing Method
CY8CMBR2044 device supports the CapSense Sigma Delta (CSD) with SmartSense™ Auto-Tuning for converting
sensor capacitance (CX) into digital counts. The CSD method is described in the following sections.
CapSense Sigma-Delta (CSD)
The CSD method in the CY8CMBR2044 device incorporates CX into a switched capacitor circuit, as shown in
Figure 2-3. The sensor (CX) is alternatively connected to GND and the Analog MUX (AMUX) bus by the non-
overlapping switches Sw1 and Sw2, respectively. Sw1 and Sw2 are driven by a precharge clock to bleed a current
(ISENSOR) from the AMUX bus. The magnitude of ISENSOR is directly proportional to the magnitude of CX. The sigma-
delta converter samples AMUX bus voltage and generates a modulating bit stream that controls the constant current
source (IDAC), which charges AMUX such that the average AMUX bus voltage is maintained at VREF. The sensor
bleeds off the charge ISENSOR from the modulating capacitor (CMOD). CMOD, in combination with Rbus, forms a low-pass
filter that attenuates precharge switching transients at the sigma-delta converter input.
In maintaining the average AMUX voltage at a steady state value (VREF), the sigma-delta converter matches the
average charge current (IDAC) to ISENSOR by controlling the bit stream duty cycle. The sigma-delta converter stores the
bit stream over the duration of a sensor scan, and the accumulated result is a digital output value, known as raw
count, which is directly proportional to CX. This raw count is interpreted by high-level algorithms to resolve the sensor
state. Figure 2-4 plots the CSD raw counts from a number of consecutive scans during which the sensor is touched
and then released by a finger. As explained in CapSense Fundamentals, the finger touch causes CX to increase by
CF, which in turn causes raw counts to increase proportionally. By comparing the shift in steady state raw count level
to a predetermined threshold, the high-level algorithms can determine whether the sensor is in an ON (Touch) or OFF
(No Touch) state.
Tuning the touch-sensing user interface is a critical step in ensuring proper system operation and a pleasant user
experience. In the typical design flow, the button interface is tuned in the initial design phase, during system
integration, and before the production ramp. Because it’s an iterative process, tuning can be time-consuming.
SmartSense Auto-Tuning was developed to simplify the user interface development cycle. It is easy to use and
reduces the design cycle time by eliminating the hassles of further manual tuning in prototype and manufacturing
stages. SmartSense Auto-Tuning tunes each CapSense button automatically at power up and then monitors and
maintains optimum button performance during runtime. This technology adapts for manufacturing variation in PCBs
and overlays and automatically tunes out noise from sources such as LCD inverters, AC lines, and switch-mode
power supplies.
Process Variation
SmartSense Auto-Tuning for the CY8CMBR2044 is designed to work with button parasitic capacitance in the range of
5 pF to 40 pF, (typical button CP values range from 10 pF to 20 pF). The sensitivity parameter for each button is set
automatically, based on the characteristics of that particular button. The parameter improves the yield in mass
production because every button maintains a consistent response regardless of the CP variation (from 5 pF to 40 pF)
between the buttons. Parasitic capacitance of the individual buttons can vary due to PCB layout and trace length,
PCB manufacturing process variation, or vendor-to-vendor PCB variation within a multi-sourced supply chain. The
sensitivity of a button depends on its parasitic capacitance; higher CP values decrease sensitivity, resulting in
decreased finger touch signal amplitude. In some cases, a change in CP detunes the system, resulting in unfavorable
button performance (either too sensitive or insensitive) or even a nonoperational button. In either situation, you must
retune the system and, in some cases, you need to requalify the user interface subsystem. SmartSense Auto-Tuning
resolves these issues.
SmartSense Auto-Tuning makes platform designs possible. For example, consider the capacitive touch sensing
multimedia keys on a laptop computer; the spacing between the buttons depends on the size of the laptop and the
keyboard layout. In this example, the wide-screen machine has larger spaces between the buttons than a standardscreen model would. The additional space means increased trace length between the button and the CapSense
controller. The bigger trace length, in turn, leads to a higher parasitic capacitance of the button. As a result, the
parasitic capacitance of the CapSense buttons can vary in different models of the same platform design. Though the
buttons’ functionality is identical for all of the laptop models, the buttons must be tuned for each model. SmartSense
Auto-Tuning lets you do platform designs using the recommended practices shown in the PCB Layout in Getting
Started with CapSense.
Figure 2-5. Design of Laptop Multi-Media Keys for 21-inch Model
Figure 2-6. Design of Laptop Multi-Media Keys for 15-inch Model with Same Functionality and Button Size
Reduced Design Cycle Time
When you design a capacitive button interface, the most time-consuming tasks are firmware development, layout,
and button tuning. With a typical touch-sensing controller, the button must be retuned when the same design is
ported to different models or when the mechanical dimensions change in the PCB or the button PCB layout. A design
with SmartSense™ Auto-Tuning meets these challenges because it needs no firmware development, no manual
tuning, and no retuning. In addition, SmartSense™ Auto-Tuning speeds up a typical design cycle. Figure 2-7
compares the design cycles of a typical touch-sensing controller and a SmartSense™ Auto-Tuning-based design.
Cypress’s CY8CMBR2044 enables you to implement capacitive touch sensing using only hardware. This section
provides an overview of the CapSense controller pins and how to configure them.
Figure 3-1. CY8CMBR2044 Pin Diagram
CapSense Buttons (CSx)
The CY8CMBR2044 controller has four capacitive sense inputs, CS0–CS3. Each capacitive button requires a
connection to one of the capacitive sense inputs. You must ground all unused CapSense (CSx) inputs pins.
General-Purpose Outputs (GPOx)
There are four active LOW outputs on the CY8CMBR2044 controller, GPO0–GPO3. Each output, GPOx, is driven by
its corresponding capacitive sensing input, CSx. You can use GPOs to directly drive LEDs or to replace mechanical
switches. GPOs are in strong drivea mode. You must leave all unused GPOs floating.
Modulation Capacitor (C
Connect a 2.2-nF (±10%) capacitor to the C
a
When a pin is in strong drive mode, it is pulled up to VDD when the output is HIGH and pulled down to Ground when the output is
Button is touched for more
than the Auto Reset period
Toggle/FSS Pin Connection
Toggle ON/OFF
FSS
Ground
Disabled
Disabled
1.5 kΩ (5%) resistor to ground
Enabled
Disabled
5.1 kΩ (5%) resistor to ground
Disabled
Enabled
VDD
Enabled
Enabled
Button Auto Reset (ARST)
Button Auto Reset determines the maximum time a GPOx is driven when CSx is continuously touched. This feature
prevents a button from getting stuck if a metal object s placed too close to it. The ARST period can be configured to
be 5 seconds or 20 seconds. The Button Auto Reset is defined in Table 3-1 and shown in Figure 3-2.
Table 3-1. ARST Pin Configuration
Figure 3-2. Button Auto Reset
After the GPOx is turned off because of Button Auto Reset feature and after the button is released, do not touch the
button for a specific amount of time (T) given, as follows:
T equals 220 ms, if the CSx input is released within 2 seconds after Button Auto Reset period is elapsed.
T equals 220 ms plus the Button Scan Rate, if the CSx input is released after 2 seconds, after Button Auto
Reset period is elapsed.
Toggle ON/OFF
When Toggle ON/OFF is enabled, the state of GPOx changes on every rising edge of CSx. Toggle ON/OFF
configuration is defined in Table 3-2 and shown in Figure 3-3.
FSS helps to distinguish closely spaced buttons by allowing only one CSx to be in the TOUCH state at a time. If a
finger contacts multiple CSx buttons, only the first one to sense a TOUCH state will turn ON.
FSS also is useful when a button can produce opposite effects – for example, an interface with two buttons for
brightness control (UP or DOWN).
FSS configuration is defined in Table 3-2and shown in Figure 3-4 and Figure 3-5.
Figure 3-4. FSS Implementation, Single Button Touched
LED ON Time specifies the duration for which GPOx is driven low after CSx is released. LED ON Time can range
from 0 ms to 2000 ms.
Figure 3-6. LED ON Timing
The LED ON Time duration, D, is configurable from the Delay pin. For different values of resistors connected to the
Delay pin, the time can be varied. The resistor, R
Equation 4
Where:
D is a multiple of 20 ms
Table 3-3 provides some example values for the Delay pin configuration and the resulting LED ON Time. R
between the Delay pin and ground. LED ON Time varies from device to device. It is ±12% accurate at
DELAY
room temperature and ±18% accurate at a temperature range of -40 °C to +85 °C.
If a Button Auto Reset is triggered for CSx, LED ON Time is not applied on GPOx. LED ON Time is disabled if Toggle
ON/OFF is enabled.
LED ON Time applies only to one GPOx at a time, meaning the LED ON Time counter resets every time a CSx
transitions to a NO TOUCH state. Figure 3-7 illustrates how LED ON Time operates: CS1 resets the LED ON Time
counter, causing GPO0 to turn OFF prematurely.
Figure 3-7. LED ON Timing Diagram for Multiple Buttons
System Diagnostics
A built-in Power-on Self Test (POST) mechanism performs some tests at power-on reset (POR), which can be useful
in production testing. If any button fails these tests, a 5 ms pulse is sent out on the corresponding GPO within 175 ms
after POR. The following tests are performed on all of the buttons:
is found to be less than 1 nF or greater than 4 nF, all the buttons are disabled.
MOD
Button CP > 40 pF
If the parasitic capacitance (CP) of any button is found to be more than 40 pF, that button is disabled.
Figure 3-11.ExampleShowing CS), CS1 Passing the POST and CS2, CS3 Failing
Scan Rate/Sleep
Use this pin to set the button scan rate and sleep mode operation of the CY8CMBR2044. Do not leave this pin
floating.
Button Scan Rate
The button scan rate specifies the time between successive button scans by the device. An external resistor
determines the button scan rate for the CY8CMBR2044. You can use theCp, Power Consumption and Response
Time Calculator to determine the scan rate resistor value or Table 3-4.The button scan rate is configurable from
Table 3-4. Resistor Value Selection for Button Scan Rate
Button Scan Rate varies from device to device. It is ±12 percent accurate at room temperature and ±18 percent
accurate at a temperature range of -–40 °C to +85 °C.
Sleep Mode
There are two possible configurations:
1. Connect the Button Scan Rate resistor to ground. This enables low power sleep mode
2. Connect the Button Scan Rate resistor to an external Master (host processor) and configure the host pin to be
HIGH (VDD). This enables deep sleep mode.
Further details are in the Sleep Modes section.
Serial Debug Data Out
Serial Debug Data reports firmware revision, CapSense status, GPO status, raw count, baseline, difference count,
and parasitic capacitance for all buttons. When Serial Debug Data is enabled this information is output on a single
CSx pin. To enable Serial Data Out, pull down the CSx pin where you want the serial data to appear with a 5.6-kΩ
resistor with a 5-percent tolerance. If more than one CSx pin is pulled down, debug data is sent out only on one CSx
pin. The priority is:
CS0 > CS1 > CS2 > CS3
The Cypress Multi-Chart Tool can be used to view the data. The Serial Debug Data is sent by the device in the order
according to Table 3-5. The MultiChart tool arranges the data in the format as shown in Table 3-6.
Serial data is sent out with ~115,200 baud rate.
For designs using less than four CapSense buttons, the unused CS pin should be selected for Serial Debug Data.
For designs using all four CapSense buttons, use two CSx pins for Serial Debug Data. For example, pull down CS0
with a 5.6-kΩ resistor and read the data for CS1, CS2, and CS3. Next, pull down CS1 with a 5.6-kΩ resistor and read
the data for CS0, CS2, and CS3.
The Design Toolbox helps you to design a CY8CMBR2044 CapSense solution. It offers basic information about the
board layout and feature settings and recommends whether the design is fit for mass production.
General Layout Guidelines
The table below summarizes the layout guidelines for the CY8CMBR2044. These guidelines are discussed in
Electrical and Mechanical Electrical and Mechanical Design Considerations of this guide. For a thorough treatment of
this material, see Getting Started with CapSense, Section 3.7.
The Layout Estimator provides the minimum button size and maximum trace length recommendation based on the
intended end-system requirements and industrial design. The inputs include the overlay material, overlay thickness,
and trace capacitance of circuit board material. Refer to Figure 3-13, Table B, to learn the dielectric constants for
different overlay materials and the trace capacitance per unit length for different PCBs. Table A calculates the
minimum button diameter and maximum trace length for the design, based on three relative ranges of system noise.
Low, medium, and high noise is a relative figure of merit to help you with button development. Noise conditions can
vary button to button based on the end-system environment. If the noise conditions are unknown, use medium noise
conditions as the starting point. The actual noise seen at each button will be determined in the design validation step
described in Design Validation.
Use the outputs of this sheet to guide the sensor board layout process and then check the design prior to prototyping
with the CP, Power Consumption and Response Time Calculator sheet as detailed Cp, Power Consumption and
Response Time Calculator.
Figure 3-13. Layout Estimator
Inputs:
Overlay thickness
Overlay dielectric constant
Capacitance of trace per inch of board
Outputs:
Recommended minimum button diameter and maximum trace length for different noise conditions
Button to ground clearance
Note The button diameter of each button can be different in the design based on whether the noise varies button to
button.
CP, Power Consumption and Response Time Calculator
After the board layout has been completed, use this calculator to check the design before building the button board
prototype. To verify the CP value of each button, insert the button diameters and trace lengths into Table A. After you
enter the information, the toolbox confirms whether each button is within the specified CP range of 5 pF to 40 pF. The
power calculator in Table B is used to optimize power consumption. Power consumption is a function of the button
scan rate, which is set by the resistor value on the ScanRate/Sleep pin. Refer to Section 3.4 Scan Rate and Table
3-4. Table C outputs the button response time based on the inputs in Tables A and B.
Figure 3-14. CP, Power Consumption and Response Time Calculator
Inputs:
Button diameter and trace length of CS0–CS3 as designed in layout
Button Scan rate resistor value
The percentage of time a finger is on the buttons
Outputs:
Parasitic Capacitance (CP) for each sensor. Confirms whether the CP values are within the specified range
of 5 pF to 40 pF
Power consumption per button
Button response time
After you have built and tested the prototype board, you can determine the actual parasitic capacitance (CP) and
noise condition (noise count) of each button according to the Section 3.1.10 Serial Debug Data Out. Use this
information and the Design Validation Sheet to validate the design, as detailed in Section 0Design Validation
After you have prototyped and tested the button board, use the Serial Debug Data Out test mode (Section 3.1.10
Serial Debug Data Out)to capture the raw count, baseline, difference count, and parasitic capacitance for all buttons.
To enter this information into Table C of the sheet, follow these steps –
1. Enable the Serial Debug Data Out feature by connecting a 5.6 kΩ resistor to GND on any CSx pin.
2. Power on the device and connect the CSx pin to the computer through a COM/RS232 port.
3. Open MultiChart and configure it as following –
a. Select PORT - <Specify PORT number>
b. Port Speed – 115200
c. Visible points – 1000
d. Log file name – “C:\MultiChart log\CY8CMBR2044.csv”
To know more about MultiChart, see AN2397 – CapSense Data Viewing Tools
4. Click on “Enable/disable log-file”. This will automatically store the data to the log file. Log this data for at least
300 samples.
5. Click on “Enable/disable log-file”. This will stop logging the data.
6. Open the log file once. The toolbox will automatically be updated with the relevant data.
Table A shows the various design parameter values, taken up from the previous sheets, so that you need not enter
any data in this sheet. This sheet provides a pass/fail grade for the prototype board. If your design fails, you can
redesign your system by entering new values in Table A and further recommendations/results will be given. If your
design passes, leave the “New value” column in Table A blank.
Figure 3-15 Design Validation
Inputs:
If the design passes – None
If the design fails –
oNew overlay thickness, overlay material permittivity, button diameter for each individual button, and
o Button Scan Rate resistor value used in design
o Percentage of time a finger is on the buttons
Outputs:
Power consumption per button
Design change recommendations. The Design Toolbox provides recommendations based on the actual
values from the design if the button size or trace lengths are outside of best design practices.
If the button board does not pass, the Design Toolbox will provide recommendations. There are four areas that can
be changed to remedy a failing design: button size, trace length, overlay material, and overlay thickness. Changing
the button size or trace length requires a board spin, while changing the overlay material or thickness, or both, may
be a shorter path to a passing design. The best solution depends on where the project stands in the development
process and the end-system requirements. The Design Toolbox will guide you to a passing outcome.
4. Electrical and Mechanical Design
Considerations
Material
Breakdown Voltage (V/mm)
Min. Overlay Thickness at 12 kV (mm)
Air
1200–2800
10
Wood – dry
3900
3
Glass – common
7900
1.5
Glass – Borosilicate (Pyrex®))
13,000
0.9
PMMA Plastic (Plexiglas®)
13,000
0.9
ABS
16,000
0.8
Polycarbonate (Lexan®)
16,000
0.8
Formica
18,000
0.7
FR-4
28,000
0.4
PET Film – (Mylar®)
280,000
0.04
Polymide film – (Kapton®)
290,000
0.04
When designing a capacitive touch sense technology into your application it is crucial to keep in mind that the
CapSense device exists within a larger framework. Careful attention to every detail, including PCB layout, user
interface, and end-user operating environment, leads to robust and reliable system performance. For in-depth
information, refer to Getting Started with CapSense.
Overlay Selection
In CapSenseEquation 1 was presented for finger capacitance
Where:
ε
= Free space permittivity
0
ε
= Dielectric constant of overlay
r
A = Area of finger and sensor pad overlap
D = Overlay thickness
To increase the CapSense signal strength, choose an overlay material with a higher dielectric constant, decrease the
overlay thickness, and increase the button diameter. The Design Toolbox helps you to design a robust and reliable
CY8CMBR2044 solution, as discussed in the chapter CapSense Schematic Design.
Table 4-1. Overlay Material Dielectric Strength
Conductive material cannot be used as an overlay because it interferes with the electric field pattern. Therefore, do
not use paint containing metal particles.
Because the dielectric constant of air is very low, an air gap between the overlay and the button degrades the
performance of the button. To eliminate the gap, use a nonconductive adhesive to bond the overlay to the CapSense
PCB. A transparent acrylic adhesive film from 3M™ called 200MP is qualified for use in CapSense applications. This
special adhesive is dispensed from paper-backed tape rolls (3M™ product numbers 467MP and 468MP).
ESD Protection
Robust ESD tolerance is a natural byproduct of thoughtful system design. By considering how the contact discharge
occurs in your end product, particularly in your user interface, you can withstand an 18-kV discharge event without
incurring any damage to the CapSense controller.
CapSense controller pins can withstand a direct 12-kV event. In most cases, the overlay material provides sufficient
ESD protection for the controller pins. Table 4-1 lists the thickness of various overlay materials required to protect the
CapSense sensors from a 12-kV discharge as specified in IEC 61000-4-2. If the overlay material does not provide
sufficient ESD protection, apply countermeasures in the following order: Prevent, Redirect, Clamp.
Prevent
Make sure all paths on the touch surface have a breakdown voltage greater than potential high-voltage contacts. In
addition, design your system to maintain an appropriate distance between the CapSense controller and possible
sources of ESD. If it is not possible to maintain adequate distance, place a protective layer of a high-breakdownvoltage material between the ESD source and CapSense controller. One layer of 5-mil-thick Kapton® tape will
withstand 18 kV.
Redirect
If your product is densely packed, it may not be possible to prevent the discharge event. In this case, you can protect
the CapSense controller by controlling where the discharge occurs. Place a guard ring on the perimeter of the circuit
board that is connected to chassis ground. As recommended in PCB Layout Guidelines, using a hatched ground
plane around the button can redirect the ESD event away from the button and CapSense controller.
Clamp
Because CapSense sensors are purposely placed in close proximity to the touch surface, it may not be practical to
redirect the discharge path. In this case, consider including series resistors or special-purpose ESD protection
devices.
The recommended series resistance value is 560 Ω.
A more effective method is to provide special-purpose ESD protection devices on the vulnerable traces. Note that
ESD protection devices for CapSense need to be low in capacitance. Table 4-2 lists devices recommended for use
with CapSense controllers.
Table 4-2. Low-Capacitance ESD Protection Devices Recommended for CapSense
Radiated electrical energy can influence system measurements and potentially influence the operation of the
processor core. The interference enters the CY8CMBR2044 chip at the PCB level, through CapSense button traces
and any other digital or analog inputs. The Layout guidelines for minimizing the effects of RF interference follow:
Ground Plane: provide a ground plane on the PCB
Series Resistor: place series resistors within 10 mm of the CapSense controller pins
o The recommended series resistance for CapSense input lines is 560 Ω
Trace Length: Minimize trace length whenever possible
Current Loop Area: Minimize the return path for current. To reduce the impact of parasitic capacitance,
hatched ground is given within 1 cm of the buttons and traces, instead of solid fill.
RF Source Location: Partition systems with noise sources, such as LCD inverters and switched-mode
power supplies (SMPS), to keep the interference separated from CapSense inputs. Shielding the power
supply is another common technique to prevent interference.
Conducted Immunity and Emissions
Noise entering a system through interconnections with other systems is referred to as conducted noise. Examples
include power and communication lines. Because the CapSense controllers are low-power devices, you must avoid
conducted emissions. The following guidelines will help to reduce conducted emission and immunity:
Use decoupling capacitors.
Add a bidirectional filter on the input to the system power supply. This is effective for both conducted
emissions and immunity. A pi-filter can prevent power supply noise from effecting sensitive parts and also
prevent the switching noise of the part itself from coupling back onto the power planes.
If the CapSense controller PCB is connected to the power supply by a cable, minimize the cable length and
consider using a shielded cable.
To filter out high-frequency noise, place a ferrite bead around power supply or communication lines.
PCB Layout Guidelines
The Design Toolbox will help you design a robust and reliable CY8CMBR2044 CapSense PCB layout, as discussed
in Section 0
If your design uses the GPOs to sink current to the CapSense controller, and there is a lot of noise in the CapSense
system, use series resistors on all of the GPOs to limit sink current. Sink current limit is determined by the maximum
button CP in your design at 5 V, as show in Table 4-3.
Table 4-3. GPO Sink Current Limit for Low Output Voltage
Detailed PCB layout guidelines are available in Getting Started with CapSense, Section 3.7.
Cypress’s CY8CMBR2044 is designed to meet the low-power requirements of battery powered applications.
To minimize power consumption, take these steps:
Ground all unused CapSense inputs
Minimize CP using the design guidelines in Getting Started with CapSense, Section 3.7.1.
Reduce supply voltage
Use a higher Button Scan Rate or Deep Sleep operating mode, refer to Button Scan Rate.
Calculating Average Power
The Design Toolbox, which is the tool of choice, automates the power consumption calculations described in the
following sections. The average power consumed by the CY8CBMR2044 is determined by calculating the parameters
below:
1. Button Scan rate, TR
2. Scan time, TS
3. Average current in a NO TOUCH state, I
4. Average current in a TOUCH state, I
5. Average standalone current, I
6. Average current, I
7. Average power, P
AVE
AVE
AVE_SA
AVE_T
Button Scan Rate (TR)
Control the Button Scan rate though the external resistor connected to the ScanRate/Sleep pin of CY8CMBR2044.
The following equation provides the approximate scan rate:
Where:
R = value of external resistor (in ohms).
Refer to Table 3-4 to find the appropriate resistor value.
Response Time (T
Selecting the Scan Rate means balancing the response time and power consumption requirements of your
application.
Response time, T
senses a TOUCH state. The CY8CMBR2044 device has two different response times. The first is the time it takes to
respond when the device wakes up from low power mode:
Equation 6
Where:
TR = Scan Rate
And the second is the time it takes to respond to any subsequent TOUCH after it wakes up, 80 ms.
is the amount of time the CY8CMBR2044 takes to produce a valid signal on GPOx after CSx
RES,
Scan Time (TS)
Approximate scan time can be calculated using:
Where:
K
= button sensitivity constant for CSx.
CSX
TFW = Firmware execution time, from Table 5-2.
Table 5-1. Button Sensitivity Constant
As an example of how to calculate average power, consider a CapSense user interface on a bluetooth headset with
three well-designed buttons. The CP for all three buttons is between 10 pF and 22 pF. The buttons are scanned at a
rate of 507 ms.
The scan time can be calculated using a sensor constant of 2 for all three buttons and Equation 13:
Equation 13
The average current in NO TOUCH state is calculated as follows using Equation 14 and the maximum values for
I
and I
SLEEP
The average current in TOUCH state is calculated as follows using Equation 15:
To calculate the average current, assume your headset receives 50 calls in an 8-hour business day and the user
touches a CapSense button every 20 seconds during each call. This means your design operates in a TOUCH state
about 1.8 percent of the 8 hours during which the headset is turned on. The average current consumption of the
design is calculated as follows using Equation 16:
Cypress’s CY8CMBR2044 can be configured to operate in either low-power sleep mode or deep sleep mode.
Low-Power Sleep Mode
When the CY8CMBR2044 device operates in low power sleep mode, the device draws 1 µA when not scanning the
CS inputs. The scan rate determines the amount of time. The behavior of CY8CMBR2044 controller in low-power
sleep mode is described in Figure 5-1.
Figure 5-1. Low-Power Sleep Mode
Because low-power sleep mode does not require a host processor to operate, it is also referred to as standalone
mode.
Deep Sleep Mode
If the CY8CMBR2044 is used in a system with a host processor, the ScanRate/Sleep control pin can be used to
operate in deep sleep mode. When the host processor provides logic high to this input pin, the CY8CMBR2044 is put
into deep sleep mode. This mode consumes 0.1 µA (typ) of current. When the host drives a GND signal to the same
input pin, the CY8CMBR2044 wakes up from sleep and operates in low-power sleep mode.
Visit Cypress’s CapSense Controllers website to access all of the reference material discussed in this section.
Find a variety of technical resources at the CY8CMBR2044 web page.
Datasheet
The datasheet for the CapSense CY8CMBR2044 device is available at www.cypress.com.
CY8CMBR2044
Design Toolbox
The interactive Design Toolbox will enable you to design a robust and reliable CY8CMBR2044 CapSense solution.
Watch the Design Tool Box example video on web.
Multi-Chart
Multi-Chartis a simple PC tool for real-time CapSense data viewing and logging. The application allows you to view
data from up to 48 sensors, save and print charts, and save data for later analysis in a spreadsheet.
To ensure the success of your CapSense solutions, Cypress has a variety of design support channels.
Knowledge Based Articles –Browse technical articles by product family or perform a search on various
CapSense topics.
CapSense Application Notes – a wide variety of application notes built on information presented in this
document.
White Papers – Learn about advanced capacitive touch interface topics.
Cypress Developer Community – Connect with the Cypress technical community and exchange information.
CapSense Product Selector Guide – See the complete product offering of Cypress CapSense product line.
Video Library – Quickly get up to speed with tutorial videos
CY8CMBR2044 Videos – Get up to speed quickly with an overview of the product features and design
toolbox.
Quality & Reliability – Cypress is committed to complete customer satisfaction. At our Quality website you
can find reliability and product qualification reports.
Technical Support – World class technical support is available on-line.
Analog multiplexer bus available inside PSoC that helps to connect I/O pins with multiple internal analog
signals.
SmartSense™ Auto-Tuning
A CapSense algorithm that automatically sets sensing parameters for optimal performance after the
design phase and continuously compensates for system, manufacturing, and environmental changes.
Baseline
A value resulting from a firmware algorithm that estimates a trend in the Raw Count when there is no
human finger present on the sensor. The Baseline is less sensitive to sudden changes in the Raw Count
and provides a reference point for computing the Difference Count.
Button or Button Widget
A widget with an associated sensor that can report the active or inactive state (that is, only two states) of
the sensor. For example, it can detect the touch or no-touch state of a finger on the sensor.
Difference Count
The difference between Raw Count and Baseline. If the difference is negative, or if it is below Noise
Threshold, the Difference Count is always set to zero.
Capacitive Sensor
A conductor and substrate, such as a copper button on a printed circuit board (PCB), which reacts to a
touch or an approaching object with a change in capacitance.
CapSense®
Cypress’s touch-sensing user interface solution. The industry’s No. 1 solution in sales by 4x over No. 2.
CapSense Mechanical Button Replacement (MBR)
Cypress’s configurable solution to upgrade mechanical buttons to capacitive buttons, requires minimal
engineering effort to configure the sensor parameters and does not require firmware development. These
devices include the CY8CMBR3XXX and CY8CMBR2XXX families.
Centroid or Centroid Position
A number indicating the finger position on a slider within the range given by the Slider Resolution. This
number is calculated by the CapSense centroid calculation algorithm.
Compensation IDAC
A programmable constant current source, which is used by CSD to compensate for excess sensor CP.
This IDAC is not controlled by the Sigma-Delta Modulator in the CSD block unlike the Modulation IDAC.
CapSense Sigma Delta (CSD) is a Cypress-patented method of performing self-capacitance (also called
self-cap) measurements for capacitive sensing applications.
In CSD mode, the sensing system measures the self-capacitance of an electrode, and a change in the
self-capacitance is detected to identify the presence or absence of a finger.
Debounce
A parameter that defines the number of consecutive scan samples for which the touch should be present
for it to become valid. This parameter helps to reject spurious touch signals.
A finger touch is reported only if the Difference Count is greater than Finger Threshold + Hysteresis for a
consecutive Debounce number of scan samples.
Driven-Shield
A technique used by CSD for enabling liquid tolerance in which the Shield Electrode is driven by a signal
that is equal to the sensor switching signal in phase and amplitude.
Electrode
A conductive material such as a pad or a layer on PCB, ITO, or FPCB. The electrode is connected to a
port pin on a CapSense device and is used as a CapSense sensor or to drive specific signals associated
with CapSense functionality.
Finger Threshold
A parameter used with Hysteresis to determine the state of the sensor. Sensor state is reported ON if the
Difference Count is higher than Finger Threshold + Hysteresis, and it is reported OFF if the Difference
Count is below Finger Threshold – Hysteresis.
Ganged Sensors
The method of connecting multiple sensors together and scanning them as a single sensor. Used for
increasing the sensor area for proximity sensing and to reduce power consumption.
To reduce power when the system is in low-power mode, all the sensors can be ganged together and
scanned as a single sensor taking less time instead of scanning all the sensors individually. When the
user touches any of the sensors, the system can transition into active mode where it scans all the sensors
individually to detect which sensor is activated.
PSoC supports sensor-ganging in firmware, that is, multiple sensors can be connected simultaneously to
AMUXBUS for scanning.
Gesture
Gesture is an action, such as swiping and pinch-zoom, performed by the user. CapSense has a gesture
detection feature that identifies the different gestures based on predefined touch patterns. In the
CapSense component, the Gesture feature is supported only by the Touchpad Widget.
Guard Sensor
Copper trace that surrounds all the sensors on the PCB, similar to a button sensor and is used to detect a
liquid stream. When the Guard Sensor is triggered, firmware can disable scanning of all other sensors to
prevent false touches.
While designing a PCB for capacitive sensing, a grounded copper plane should be placed surrounding
the sensors for good noise immunity. But a solid ground increases the parasitic capacitance of the sensor
which is not desired. Therefore, the ground should be filled in a special hatch pattern. A hatch pattern has
closely-placed, crisscrossed lines looking like a mesh and the line width and the spacing between two
lines determine the fill percentage. In case of liquid tolerance, this hatch fill referred as a shield electrode
is driven with a shield signal instead of ground.
Hysteresis
A parameter used to prevent the sensor status output from random toggling due to system noise, used in
conjunction with the Finger Threshold to determine the sensor state. See Finger Threshold.
IDAC (Current-Output Digital-to-Analog Converter)
Programmable constant current source available inside PSoC, used for CapSense and ADC operations.
Liquid Tolerance
The ability of a capacitive sensing system to work reliably in the presence of liquid droplets, streaming
liquids or mist.
Linear Slider
A widget consisting of more than one sensor arranged in a specific linear fashion to detect the physical
position (in single axis) of a finger.
Low Baseline Reset
A parameter that represents the maximum number of scan samples where the Raw Count is abnormally
below the Negative Noise Threshold. If the Low Baseline Reset value is exceeded, the Baseline is reset
to the current Raw Count.
Manual-Tuning
The manual process of setting (or tuning) the CapSense parameters.
Matrix Buttons
A widget consisting of more than two sensors arranged in a matrix fashion, used to detect the presence
or absence of a human finger (a touch) on the intersections of vertically and horizontally arranged
sensors.
If M is the number of sensors on the horizontal axis and N is the number of sensors on the vertical axis,
the Matrix Buttons Widget can monitor a total of M x N intersections using ONLY M + N port pins.
When using the CSD sensing method (self-capacitance), this Widget can detect a valid touch on only one
intersection position at a time.
Modulation Capacitor (CMOD)
An external capacitor required for the operation of a CSD block in Self-Capacitance sensing mode.
Modulator Clock
A clock source that is used to sample the modulator output from a CSD block during a sensor scan. This
clock is also fed to the Raw Count counter. The scan time (excluding pre and post processing times) is
given by (2N – 1)/Modulator Clock Frequency, where N is the Scan Resolution.
Modulation IDAC is a programmable constant current source, whose output is controlled (ON/OFF) by the
sigma-delta modulator output in a CSD block to maintain the AMUXBUS voltage at V
. The average
REF
current supplied by this IDAC is equal to the average current drawn out by the sensor capacitor.
Mutual-Capacitance
Capacitance associated with an electrode (say TX) with respect to another electrode (say RX) is known
as mutual capacitance.
Negative Noise Threshold
A threshold used to differentiate usual noise from the spurious signals appearing in negative direction.
This parameter is used in conjunction with the Low Baseline Reset parameter.
Baseline is updated to track the change in the Raw Count as long as the Raw Count stays within
Negative Noise Threshold, that is, the difference between Baseline and Raw count (Baseline – Raw
count) is less than Negative Noise Threshold.
Scenarios that may trigger such spurious signals in a negative direction include: a finger on the sensor on
power-up, removal of a metal object placed near the sensor, removing a liquid-tolerant CapSenseenabled product from the water; and other sudden environmental changes.
Noise (CapSense Noise)
The variation in the Raw Count when a sensor is in the OFF state (no touch), measured as peak-to-peak
counts.
Noise Threshold
A parameter used to differentiate signal from noise for a sensor. If Raw Count – Baseline is greater than
Noise Threshold, it indicates a likely valid signal. If the difference is less than Noise Threshold, Raw
Count contains nothing but noise.
Overlay
A non-conductive material, such as plastic and glass, which covers the capacitive sensors and acts as a
touch-surface. The PCB with the sensors is directly placed under the overlay or is connected through
springs. The casing for a product often becomes the overlay.
Parasitic Capacitance (CP)
Parasitic capacitance is the intrinsic capacitance of the sensor electrode contributed by PCB trace,
sensor pad, vias, and air gap. It is unwanted because it reduces the sensitivity of CSD.
Proximity Sensor
A sensor that can detect the presence of nearby objects without any physical contact.
Radial Slider
A widget consisting of more than one sensor arranged in a specific circular fashion to detect the physical
position of a finger.
Raw Count
The unprocessed digital count output of the CapSense hardware block that represents the physical
capacitance of the sensor.
Refresh Interval
The time between two consecutive scans of a sensor.
Scan Resolution
Resolution (in bits) of the Raw Count produced by the CSD block.
Self-Capacitance
The capacitance associated with an electrode with respect to circuit ground.
Sensitivity
The change in Raw Count corresponding to the change in sensor capacitance, expressed in counts/pF.
Sensitivity of a sensor is dependent on the board layout, overlay properties, sensing method, and tuning
parameters.
Sense Clock
A clock source used to implement a switched-capacitor front-end for the CSD sensing method.
Sensor
See Capacitive Sensor.
Sensor Auto Reset
A setting to prevent a sensor from reporting false touch status indefinitely due to system failure, or when a
metal object is continuously present near the sensor.
When Sensor Auto Reset is enabled, the Baseline is always updated even if the Difference Count is
greater than the Noise Threshold. This prevents the sensor from reporting the ON status for an indefinite
period of time. When Sensor Auto Reset is disabled, the Baseline is updated only when the Difference
Count is less than the Noise Threshold.
Sensor Ganging
See Ganged Sensors.
Shield Electrode
Copper fill around sensors to prevent false touches due to the presence of water or other liquids. Shield
Electrode is driven by the shield signal output from the CSD block. See Driven-Shield.
Shield Tank Capacitor (CSH)
An optional external capacitor (CSH Tank Capacitor) used to enhance the drive capability of the CSD
shield, when there is a large shield layer with high parasitic capacitance.
Signal (CapSense Signal)
Difference Count is also called Signal. See Difference Count.
Signal-to-Noise Ratio (SNR)
The ratio of the sensor signal, when touched, to the noise signal of an untouched sensor.
Slider Resolution
A parameter indicating the total number of finger positions to be resolved on a slider.
Touchpad
A Widget consisting of multiple sensors arranged in a specific horizontal and vertical fashion to detect the
X and Y position of a touch.
The process of finding the optimum values for various hardware and software or threshold parameters
required for CapSense operation.
V
REF
Programmable reference voltage block available inside PSoC used for CapSense and ADC operation.
Widget
A user-interface element in the CapSense component that consists of one sensor or a group of similar
sensors. Button, proximity sensor, linear slider, radial slider, matrix buttons, and touchpad are the
supported widgets.