SlideShare uma empresa Scribd logo
1 de 11
CapSense™ Best Practices

                                                                                                            AN2394
                                                                                                Author: Mark Lee
                                                                                          Associated Project: No
                                                      Associated Part Family: CY8C20x34, CY8C21x4, CY8C24x94
                                                                                     GET FREE SAMPLES HERE
                                                                           Software Version: PSoC Designer™ 4.3
                                                      Associated Application Notes: 2233a, 2292, 2360, 2318, 2403

Application Note Abstract
This application note presents best practices for designing CapSense™ systems. The topics covered include an overview of
sensing methods, guidelines for layout and assembly, and CapSense tools and techniques.




                                                                    The PSoC architecture allows designers to incorporate
Introduction
                                                                    multiple capacitive sensing design elements into an
Adopting capacitive sensing as an interface technology in           application. Buttons, sliders, touchpads, and proximity
high-volume, high-visibility applications such as portable          detectors are supported simultaneously with the same
media players and mobile handsets has created demand                device in the same circuit. Use PSoC to scan capacitive
for this technology in more conventional consumer                   sensors and use the activation status to drive LEDs,
electronics. This demand has led to significant innovation,         control a motor, drive a speaker, and so on, as shown in
and several competitive technologies are available. While           Figure 2. Sample Application with CapSensePlus: Motor,
these technologies each have their respective differences,          LED, and Speaker with a Single PSoC. A concept called
the underlying principle is the measurement of                      dynamic reconfiguration allows the CapSense application
capacitance between a plate (the sensor) and its                    to use more than 100% of the system resources by
environment.                                                        reconfiguring as needed on-the-fly.
Compared to modules and fixed-function ICs,
programmable ICs allow more flexibility in design as
custom code is used to develop solutions. PSoC®                     Figure 2. Sample Application with CapSensePlus: Motor,
                                                                    LED, and Speaker with a Single PSoC
CapSense combines a microcontroller, configurable digital
and analog resources, on-board memory, and other
features that allow flexibility in capacitive system design.
This application note gives an overview of best practices
for CapSense design.


Figure 1. PSoC Analog and Digital Blocks Configured for
CapSensePlus




January 14, 2008                                 Document No. 001-41450 Rev. *B                                          1



                                                                                                                               [+] Feedback
AN2394




Easy-to-Configure Capacitive                                        Figure 4. CSA Waveform Changes with Finger Absent and
                                                                    Present
Sensing Solutions
PSoC implements different methods of CapSense,
configured through firmware (see Reference [1]), including
CSA and CSD.

CSA Sensing Method
CSA    stands   for CapSense  with   Successive
Approximation. CSA is only implemented in the
CY8C20x34 PSoC device family.
Figure 3. CSA Configuration of CapSense




                                                                    CSD Sensing Method
                                                                    CSD stands for CapSense with Sigma-Delta A/D. CSD is
                                                                    implemented in both CY8C21x34 and CY8C24x94 PSoC
                                                                    device families.
A block diagram of the CSA configuration is shown in
Figure 3. CSA operates as follows:                                  Figure 5. CSD Configuration of CapSense
Switches SW1 and SW2 and the CapSense sensor CX,
form a switched capacitor network with an equivalent
circuit of a resistor to ground. With the iDAC set to a
calibrated level, and SW1 and SW2 switching, the average
voltage on CMOD settles at a level that varies with the value
of CX. By setting the iDAC to a low current level, with SW2
open, the voltage on CMOD ramps up. The time for the
ramp voltage on CMOD to reach VREF is an indication of the
value of CX. The timer on the output of the comparator
converts the ramp time to a digital value.
Self-calibration of the system is accomplished through a
successive approximation binary search to determine the
                                                                    A block diagram of the CSD configuration is shown in
iDAC setting necessary to keep voltage on CMOD at VREF
                                                                    Figure 5. CSD operates as follows:
when no finger is present. Individual calibrated iDAC
settings are stored for all sensors.
                                                                    Switches SW1 and SW2 and the CapSense sensor CX,
                                                                    form a switched capacitor network with an equivalent
When a finger is present, the voltage on CMOD settles at a
                                                                    circuit of a resistor between VDD and CMOD. The equivalent
lower voltage, requiring more time to reach the threshold
                                                                    resistor has a value controlled by CX. The switching of
voltage VREF, as shown in Figure 4. If (t2–t1) is long
                                                                    SW1 and SW2 is controlled by the pseudo-random
enough, the sensor is in Finger Present state, otherwise
                                                                    sequence of the PRS generator. The PRS lowers noise
the sensor is in Finger Absent state.
                                                                    susceptibility and radiated emissions compared to a fixed
An internal capacitor, programmable up to 100 pF, is used           period clock source. SW3 operates asynchronously from
for CMOD, but a larger external capacitor improves                  SW1 and SW2. When RB is switched to ground, the voltage
performance: 1nF–4nF for buttons and sliders. CSA is not            on CMOD decreases. When RB is open, the voltage on
recommended for proximity sensors.                                  CMOD increases. The comparator changes state based on
                                                                    the voltage on CMOD relative to VREF.




January 14, 2008                                 Document No. 001-41450 Rev. *B                                            2



                                                                                                                                 [+] Feedback
AN2394



A Sigma-Delta A/D is formed by the addition of a 16-bit              PSoC Placement: It is good practice to minimize the
timer to measure comparator high-time to comparator low-             distance between the PSoC and the sensors. Typically,
time.                                                                the PSoC is mounted on the bottom layer along with the
                                                                     other components and the CapSense sensor pads are
When a finger is present, CX is larger and the equivalent            placed on the top layer.
resistor to VDD is smaller, allowing more current to flow into
CMOD. The comparator spends more time in the CMPHIGH                 Board Layers: The most common PCB format is two
state and less time in CMPLOW. If the ratio                          layers with sensor pads and gridded ground plane on top
CMPHIGH:CMPLOW is high enough, the sensor is in                      and everything else on the bottom. Four layer boards are
Finger Present state, otherwise the sensor is in Finger              used when board area must be minimized. Do not route
Absent state, as shown in Figure 6.                                  traces directly under sensor pads.


Figure 6. CSD Waveform Changes with Finger Absent and                Figure 7. Two Layer Stack-Up for CapSense Boards
Present




                                                                     Board Thickness: FR4-based designs are found to
                                                                     perform well with standard board thickness ranging from of
                                                                     0.020quot; (0.5 mm) to 0.063quot; (1.6 mm). See Flex Circuits for
                                                                     guidelines.
                                                                     Trace Length and Width: The parasitic capacitance of the
                                                                     traces and sensor pad, CP, is minimized to make the
                                                                     dynamic range of the system as large as possible. CP is
                                                                     minimized by short and narrow traces. How long can the
                                                                     traces be? The longest traces in a successful CapSense
                                                                     product are 9quot; (230 mm) for a slider, and 12quot; (300 mm) for
                                                                     a button. (This extreme example requires large sensing
                                                                     pads and a thin overlay to maximize the signal from the
                                                                     sensor.) Trace width adds to the sensor CP and increases
                                                                     coupling to elements on other layers. Trace widths of
A CMOD value between 1nF–100nF is recommended. RB
                                                                     0.0065quot;–0.008quot; (0.17–0.20 mm) suffice for most
requires tuning to sensors for optimal performance,
                                                                     applications.
(between 2K and 10K.) RB is selected so that the
CapSense counts without a finger are between 60% and                 Vias: Use the minimum number of vias consistent with
80% of the maximum counts for the selected CSD                       routing of the CapSense inputs to minimize CP. The
resolution.                                                          placement of the via is done at any location on the sensor
                                                                     pad, as shown in Figure 8.
How to Design CapSense Printed                                       Figure 8. Via to Sensor Pad can be Anywhere on the Pad
Circuit Boards                                                       (Trace on Bottom Layer, Sensor Pad on Top Layer)
In the typical CapSense application, the capacitive
sensors are formed by the traces of a printed circuit board
(PCB). The following set of guidelines show how to design
a CapSense PCB (see Reference [2]).

General Layout and Assembly Guidelines
Board Area: The area required for CapSense is only
slightly larger than the sensing area itself. The electric
fields around the sensors are very localized, especially if
the ground plane and sensor pad are placed on the same
PCB layer.




January 14, 2008                                  Document No. 001-41450 Rev. *B                                            3



                                                                                                                                  [+] Feedback
AN2394



Communication Lines: Do not run capacitive sensing                    Both signal and noise are affected by the overlay
traces in close proximity with and parallel to high-                  properties. As the thickness of the overlay increases,
frequency communication lines, such as I2C or SPI. If it is           signal and noise both decrease. Signal is defined as the
necessary to cross communication lines with sensor pins,              difference in average sensor output between the Finger
be sure the intersection is orthogonal. One effective                 Absent and Finger Present states. Noise is defined in the
method     of   reducing     the    interaction   between             peak-to-peak deviation in sensor output in the Finger
communication traces and sensor traces is to isolate each             Absent state. A representative plot of CapSense signal
by port assignment. Port pins P1[0] and P1[1] are used for            versus overlay thickness is shown in Figure 10.
programming and I2C. If they are not used for these
                                                                      Figure 10. Signal Level Drops Off as Overlay Thickness
purposes, then they are assigned to CapSense. Series
                                                                      Increases
resistors are recommended in-line with all CapSense
inputs (560 ohms) and series with communication lines
such as I2C, SPI, and so on (300 ohms) to prevent RF
interference.
Ground Fill: When ground fill is added near a CapSense
sensor pad, there is a trade-off between maintaining a
high level of CapSense signal and increasing noise
immunity of the system. Typical hatching for the ground fill
is 15% on the top layer (7 mil line, 45 mil spacing), and
10% on the bottom layer (7 mil line, 70 mil spacing), as
shown in Figure 9.
Figure 9. Partial Ground Fill to Minimize CP




                                                                      Overlay Adhesive: Overlay materials must have good
                                                                      mechanical contact with the sensing PCB. Two widely
                                                                      used non-conductive adhesives for overlays are 467MP
                                                                      and 468MP, made by 3M.
                                                                      Gloves: If the sensors work with a gloved hand, then add
                                                                      the thickness of the glove material to the total overlay
                                                                      stack-up when sizing the buttons. Dry leather and rubber
                                                                      are similar to plastic with a dielectric constant of 2.5–3.5.
Overlay Thickness: Table 1 lists the recommended
                                                                      Ski gloves have a dielectric constant of 2 or less,
maximum overlay thicknesses for PSoC CapSense
                                                                      depending on the air content of glove‘s thermal insulation.
applications (plastic overlay). The dielectric constant plays
a role in how thick the overlay is. Common glass has a                LED Backlighting: CapSense works well with LED
dielectric constant around εr = 8, while plastic is around εr =       backlighting. Just cut a hole in the sensor pad. Keep LED
2.5. The ratio of εr / 2.5 is an estimate of how thick the            traces on the bottom of the board.
overlay is, relative to plastic for the same level of
                                                                      Multiple PSoCs on One PCB: For systems with many
sensitivity. Using this rule of thumb, a common glass
                                                                      buttons, such as a keyboard, the system design may
overlay is about three times as thick as a plastic overlay
                                                                      require two or more PSoCs dedicated to CapSense. If this
for the same sensitivity.
                                                                      is the case, partition buttons so that a ground fill area
Table 1. Recommended Plastic Overlay Thickness for                    separates the traces of each button group. This prevents
CapSense                                                              coupling between the independent CapSense groups.
          Design Element               Overlay Thickness
 Button                            < 5 mm
 Slider                            < 2 mm
 Touchpad                          < 0.5 mm




January 14, 2008                                   Document No. 001-41450 Rev. *B                                               4



                                                                                                                                      [+] Feedback
AN2394



                                                                  Figure 13 gives an overview of shape recommendations
Buttons                                                           for buttons. A square or rectangular button works if the
The function of a button is to determine the presence or          layout does not support a round shape. Buttons should not
absence of a conductive object. A typical application of a        be triangular or include other pointed features with angles
CapSense button is to sense the presence of a finger.             less than 90 degrees. Interdigitated sensor traces do not
                                                                  work well with CSD or CSA.
Shape: The recommended shape for sensing a finger
press is a solid round pattern as shown in Figure 11.             Figure 13. Recommendations for Button Shape
Figure 11. Recommended Button Shape is Solid Round
Pattern




                                                                  Round buttons must be at least 5 mm in diameter, and
                                                                  rectangular buttons must have at least one dimension
                                                                  greater than 6 mm. The size of the button is selected to
                                                                  meet the minimum signal-to-noise ratio (SNR) requirement
                                                                  of 5:1 (see Reference [5]). The thicker the protective
                                                                  overlay, the larger the button diameter should be.

                                                                  Sliders
                                                                  A slider is a sensor array. Changes between adjacent
The capacitance, CP, decreases as the clearance                   capacitive elements are used to determine the position of
surrounding the button is increased. An example of this           a conductive object. Position is determined in firmware
dependence of CP on the gap is shown in Figure 12 for             using a centroid (center of mass) calculation.
three button sizes (5 mm, 10 mm, and 15 mm diameter).
                                                                  The slider segments must be small enough so that
Figure 12. CP as a Function of Button-Ground Clearance            multiple segments couple with each finger position, yet
and Button Diameter (0.062quot; Thick, FR4)                           large enough to produce the required signal level through
                                                                  the overlay. A sawtooth pattern works well for sliders, with
                                                                  a minimum of five segments. Each finger position on the
                                                                  slider produces a usable signal on at least three
                                                                  segments. The maximum length of the slider is only limited
                                                                  by the available IO pins of the PSoC and the required
                                                                  report rate for the system. A typical slider pattern is shown
                                                                  in Figure 14. The sensor output is represented by a bar
                                                                  graph above each slider segment.
                                                                  Figure 14. Sawtooth Pattern Used With Slider Sensor
                                                                  Pattern




January 14, 2008                               Document No. 001-41450 Rev. *B                                               5



                                                                                                                                  [+] Feedback
AN2394



Slider Diplexing: If IO pins are at a premium, connecting           Figure 16. Rear View of a Proximity Sensor Prototype
two slider segments to a single PSoC pin increases the
number of slider segments that are sensed by the PSoC
by two-fold. The CapSense User Module Wizard allows
the user to select this as an option for pin assignment, and
the User Module API determines the correct half of the
slider that the finger is touching. Connecting each
CapSense input pin to two slider elements doubles CP
without any increase in signal.

Touchpads
The CapSense User Module does not directly support
touchpads. Touchpads are implemented as two
independent sliders. All the guidelines that apply to sliders
also apply to touchpads.
Figure 15. Touchpads with CapSense Sliders X and Y
                                                                    Flex Circuits
                                                                    Flex circuits work well with CapSense. All the guidelines
                                                                    presented for printed circuit boards also apply to flex. A
                                                                    flex circuit is typically much thinner than a PCB. Limit CP
                                                                    by making the flex circuit no thinner than 0.01quot; (0.25 mm),
                                                                    and limiting trace lengths to a few inches. One good
                                                                    feature of flex is the high breakdown voltage provided by
                                                                    the Kapton material (290 KV/mm).

                                                                    ITO Touch Screens
                                                                    ITO is an acronym for Indium Tin Oxide. Films of this
                                                                    ceramic material are both electrically conductive and
An example of a good CapSense touchpad is a                         visually transparent. An example ITO touch screen is
commercially successful design with 20-position column              shown in Figure 17. Sheet resistivity of ITO films range
slider (X) and 10-position row slider (Y). A total of 30 pins       from 0.25–1000 ohms/square, with the typical value of
are assigned as CapSense inputs. The dimensions of the              100–500 ohms/square. Film thickness determines the
active area are 3.9quot; x 1.9quot; (99 mm x 47 mm). The overlay            sheet resistivity. Thinner film passes more light and has
is 0.010quot; (0.25 mm) ABS plastic. The row and column                 higher resistance.
sensors are spaced with a pitch of 0.2quot; (5 mm). The
                                                                    Touch screens operate in either resistive or capacitive
baseline noise level is a single count in the Finger Absent
                                                                    modes. Both modes have their niche markets. Resistive
state. A finger on the touchpad produces a difference
                                                                    mode requires pressure for contact between conductive
signal of 15 counts, which results in an SNR of 15:1.
                                                                    layers, and is prone to wear, tear, and breakage. Resistive
Setting the centroid algorithm to resolve 20 positions
                                                                    mode is a four layer solution with poor transparency
between each row pair and each column pair, this
                                                                    (<75%). Capacitive mode makes use of the finger as a
touchpad system has a resolution of 100 counts per inch.
                                                                    conductive object. Capacitive mode is a one layer or two
                                                                    layer solution with high transparency (>90%). Cypress
Proximity Sensors
                                                                    supports both touch screen technologies.
The CapSense User Module does not directly support
                                                                    Figure 17. ITO Touch Screen
proximity sensors. A proximity sensor is implemented as a
CapSense button with large CP and small difference
counts. A dedicated proximity sensor is best implemented
as a single length of wire, as demonstrated in Figure 16.
Connecting button and slider sensors already on the
CapSense PCB into a single large sensor is another
technique for implementing a proximity sensor. CSD is the
best method to use for proximity sensing. CSD performs
better than CSA with large CP values, and the shield
feature of CSD is used to extend the detection distance of
the sense wire.




January 14, 2008                                 Document No. 001-41450 Rev. *B                                             6



                                                                                                                                  [+] Feedback
AN2394



                                                                   Figure 19. Baseline in CapSense Data is Continuously
From Concept to Production:                                        Updated
CapSense Tools and Techniques
Evaluation Boards and Example Firmware
The CY3213 board, shown in Figure 18, is an evaluation
board for development of CapSense applications.
Application firmware is written in ‗C‘. A library of common
functions makes development of projects as simple as
writing a few lines of code.
Figure 18. CY3213—CapSense Training Evaluation Board




                                                                   Environmental Effects
                                                                   Temperature and Humidity: Temperature and humidity
                                                                   both cause the baseline counts to drift over time. The
                                                                   CapSense User Module is characterized from -40ºC to
                                                                   +85ºC, as shown in Figure 20. The trend that is tracked by
                                                                   the baseline automatically compensates for the effects of
                                                                   temperature and humidity.
                                                                   Figure 20. Temperature Variation


Here is an example of the code required to scan two
sensors in an array of buttons and save the result in an
I2C array.
Code 1. Code to Scan Sensors
// starting with sensor0, scan 2 sensors,
single scan mode,
SensorArray_StartScan(0,2,0);

//scan complete?
while (!(SensorArray_GetScanStatus() &

                                                                   Water: CSD is the method to use if the sensing surface is
SensorArray_SCAN_SET_COMPLETE));
                                                                   exposed to a water stream or droplets. In this case, the
                                                                   shield electrode is enabled in the CSD User Module.
//save sensor0 and sensor1results in i2c
                                                                   When water film deposits on the overlay surface, the
array
                                                                   coupling between the shielding and sensing electrodes is
info.iRawCount[0] =
                                                                   increased. The shield electrode allows you to reduce the
SensorArray_waSnsResult[0];
                                                                   influence of parasitic capacitance, which gives more
info.iRawCount[1] =
                                                                   dynamic range to process sense capacitance changes.
SensorArray_iwaSnsResult[1];


Baseline Technique
The baseline is the reference for CapSense
measurements. Each capacitive sensor has its own
baseline. The baseline is a trend line for the capacitive
sensor data that is computed by the Baseline function of
the CapSense User Module. The raw count data is
processed using an Infinite Impulse Response (IIR) low
pass filter as shown in Figure 19. High level decisions,
such as Finger Present and Finger Absent states, are
based on the reference level established by the baseline.




January 14, 2008                                Document No. 001-41450 Rev. *B                                            7



                                                                                                                                [+] Feedback
AN2394




                                                                     RF Immunity Considerations
Power Consumption and Sleep
                                                                     RF interferes with the operation of any capacitive sensing
Battery life is determined by mA-hours. The lower the
                                                                     system, including CapSense (see Reference [4]). Where
average current, the longer CapSense operates between
                                                                     the electric field strength is high enough, RF interference
recharges (see Reference [3]). The PSoC is programmed
                                                                     causes false button presses or prevents real button
such that it has different modes of power consumption:
                                                                     presses from being sensed. A cell phone is a good
                                                                    example of where an RF transmitter and buttons are
    A fast response mode during intervals of constant
                                                                     purposely combined in close proximity.
    button presses.
                                                                     The electric field strength at a distance greater than 1/6 of
   A power saving, slow response mode after a period of             a wavelength from a transmitter is approximated by
    inactivity.                                                      Equation 2.
   A deep sleep mode after a longer period of inactivity.
                                                                                                        10( P / 10)
                                                                                              6.85
                                                                                        E
One of the strengths of PSoC, as compared to other                                                                    Equation 2
                                                                                                           D
capacitive sensing solutions, is its programmability. You
                                                                     
can make the power saving modes of CapSense as                           E [volts/meter] is the electric field.
sophisticated as required. CapSense buttons are fast,
                                                                     
taking as little as 200 microseconds for each button                     P [dBm] is the RF power fed to antenna.
scanned. This high scan speed is combined with a low
                                                                     
sleep current to achieve very low average currents. One                  D [inches] is the distance from antenna to field
example of the real CapSense system is power saving,                     sensor.
slow response mode using a three button scan every 100
                                                                     For an 800 MHz cell phone transmitting at +28 dBm
milliseconds, while consuming less than 50 µA of average
                                                                     (0.6W), the electric field 3quot; from the antenna is estimated
current.
                                                                     to be around 60 V/m.
Noise Filtering                                                      Figure 21 shows the equivalent circuit of the RF
                                                                     interference scenario, with the PSoC configured to run
Noise is introduced into the CapSense system through
                                                                     CapSense. Internal diodes protect the PSoC from ESD
both conductive and radiated sources. Conductive noise
                                                                     events up to 2 KV.
enters the system through power and signal lines.
Radiated sources, such as cell phones or fluorescent lamp
                                                                     Figure 21. Diodes at Input of PSoC Provide ESD
ballasts, introduce noise through the air. Filtering
                                                                     Protection
techniques in firmware is used to increase the signal-to-
noise ratio of the CapSense system in the presence of
both types of noise. PSoC implements Finite Impulse
Response (FIR) and Infinite Impulse Response (IIR) digital
filters with only a few lines of code.
FIR Filter: The frequency of finger pressing events is low
compared to the frequency of power line noise. A low pass
filter (LPF) is an effective noise filtering solution for this
situation. An FIR LPF is defined by:

            y      ( x1 x 2 ... xN ) / N          Equation 1


Raw counts are sampled N times per cycle of the noise.
The N samples are combined together per Equation (1).
With 50 Hz noise, the sample period must be 18 ms/N.
The performance of the FIR filter increases with N, so
make N as large as the system allows.
IIR Filter: An FIR filter has a disadvantage in that it needs
to be a much higher order than an IIR filter to get the same
result. It may also be difficult to adjust the sample rate to
fit the period of the noise. So, in some cases, an IIR filter
is a more appropriate choice for the LPF. Table 2
compares the FIR and IIR filters.
Table 2. Low Pass Filter Comparison—FIR vs. IIR
  Filter Type            RAM       Response        Always
   (order=N)                          Time         Stable
 FIR LPF           1              N*T             Yes
 IIR LPF           N*2            T               No

January 14, 2008                                  Document No. 001-41450 Rev. *B                                                8



                                                                                                                                     [+] Feedback
AN2394



The resonant effects of a circuit trace form the receiver
                                                                    ESD Considerations
antenna. A quarter wavelength trace is an efficient
                                                                    The electrostatic voltage on the human body reaches 15
antenna. Figure 22 shows the length of a quarter
                                                                    KV when the humidity is low. The type of clothes worn by
wavelength antenna versus frequency.
                                                                    the CapSense user makes a difference on how this
Figure 22. Quarter Wavelength Trace is an Efficient                 voltage goes, as shown in Figure 23.
Antenna
                                                                    Figure 23. Electrostatic Voltage on a Human Body vs.
                                                                    Relative Humidity and Material Type




For a low level RF signal, the CapSense circuit operates
                                                                    Table 3 shows the minimum thickness required to
with no effect on the digital output of the system, since low
                                                                    withstand 12 KV for common overlay materials. The
levels of RF look similar to background noise and are
                                                                    overlay in the CapSense system protects the PSoC from
ignored by the system. When the RF power increases, the
                                                                    permanent damage when the thickness guidelines of the
CapSense counts are offset a constant amount that is set
                                                                    table are followed. A layer of Kapton tape works well in
by the power level of the interference. The RF signal is AC
                                                                    applications needing extra ESD protection.
but the effect on CapSense counts is DC due to the
diodes on the CapSense input. A positive shift in counts
                                                                    Table 3. Breakdown Voltage of Overlay Materials and
causes false button presses. A negative shift prevents real
                                                                    Minimum Thickness to Prevent Breakdown
button presses from being sensed. The finger and noise
thresholds of the CapSense User Module allow normal                                            Breakdown        Min. Overlay
operation in the presence of small shifts in the counts. For                 Material           Voltage         Thickness at
higher levels of RF interference, other measurements                                             [V/mm]         12 KV [mm]
need to be taken. Following are two solutions.                                                1200 – 2800
                                                                      Air                                   10

                                                                     Glass – Common          7900          1.5
    RF Solution #1—Coordinate RF and CapSense: If the
    source of the interference is part of the same system             Glass - Borosilicate    13,000        0.9
                                                                      (Pyrex)
    in which CapSense is embedded, then disable
    CapSense when RF is transmitting. One pin on the                  Formica                 18,000        0.7
    PSoC is assigned to monitor a Transmit_Enable                     ABS                     16,000        0.8
    signal. CapSense counts continue to be affected by
                                                                      Acrylic (Plexiglass)    13,000        0.9
    the high power RF, but counts are only valid with the
    transmitter turned off.                                           Polycarbonate (Lexan)   16,000        0.8

                                                                     PET Film (Mylar)        280,000       0.04
    RF Solution #2—Damp the Resonance: Resistors
                                                                      Polyimide Film          290,000       0.04
    placed in series with the CapSense input damps the
                                                                      (Kapton)
    resonance of each trace. The recommended series
                                                                      FR-4                    28,000        0.4
    resistance added to the CapSense inputs is 560
    ohms. Communication lines, I2C and SPI, benefit                   Wood – Dry              3900          3
    from 300 ohms in series.




January 14, 2008                                 Document No. 001-41450 Rev. *B                                                9



                                                                                                                                   [+] Feedback
AN2394




Summary                                                          References
                                                                      Application Note AN2233a, ―Capacitive Switch Scan,‖
The best practices for CapSense designs presented in this        1.
application note enable engineers to successfully add                 Cypress Semiconductor
capacitive sensing features to their products.
                                                                      Application Note AN2292, ―Layout Guidelines for
                                                                 2.
                                                                      PSoC CapSense,‖ Cypress Semiconductor
                                                                      Application Note AN2360, ―Power Consumption and
                                                                 3.
                                                                      Sleep Considerations with CapSense,‖ Cypress
                                                                      Semiconductor
                                                                      Application   Note    AN2318,  ―EMC    Design
                                                                 4.
                                                                      Considerations for PSoC CapSense Applications,‖
                                                                      Cypress Semiconductor
                                                                 5.   Application Note AN2403 quot;Signal-to-Noise Ratio
                                                                      Requirement for CapSense Applications,quot; Cypress
                                                                      Semiconductor




January 14, 2008                              Document No. 001-41450 Rev. *B                                         10



                                                                                                                            [+] Feedback
AN2394




About the Author
 Name:                Mark Lee
 Title:               Principal Application Engineer
 Background:          Ph.D.E.E. 1992
                      University of Washington
                      Computer Aided Modeling of                  the
                      Dielectric Properties of Materials
                      Experienced in aerospace, medical,
                      and computer industries, focusing on
                      new product development. Holder of
                      several patents.
                      Cypress employee since 2005.
 Contact:             olr@cypress.com




In March of 2007, Cypress recataloged all of its application notes using a new documentation number and revision code. This new documentation
number and revision code (001-xxxxx, beginning with rev. **), located in the footer of the document, will be used in all subsequent revisions.
PSoC is a registered trademark of Cypress Semiconductor Corp. ―Programmable system-on-Chip,‖ PSoC Designer, and PSoC Express are trademarks
of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein may be the property of their respective owners.




                                                                                                                                 Cypress Semiconductor
                                                                                                                                    198 Champion Court
                                                                                                                               San Jose, CA 95134-1709
                                                                                                                                   Phone: 408-943-2600
                                                                                                                                       Fax: 408-943-4730
                                                                                                                                http://www.cypress.com/


© Cypress Semiconductor Corporation, 2006-2008. The information contained herein is subject to change without notice. Cypress Semiconductor
Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any
license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or
safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as
critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The
inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies
Cypress against all charges.
This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide
patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a
personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative
works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress
integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the
right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or
use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a
malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress‘ product in a life-support systems
application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.




January 14, 2008                                           Document No. 001-41450 Rev. *B                                                              11



                                                                                                                                                               [+] Feedback

Mais conteúdo relacionado

Mais procurados

Diode Model Evalation Manual for LTspice
Diode Model  Evalation Manual for LTspiceDiode Model  Evalation Manual for LTspice
Diode Model Evalation Manual for LTspiceTsuyoshi Horigome
 
Very Large Scale Integration -VLSI
Very Large Scale Integration -VLSIVery Large Scale Integration -VLSI
Very Large Scale Integration -VLSIPRABHAHARAN429
 
lecture-4_me_v01.pptx
lecture-4_me_v01.pptxlecture-4_me_v01.pptx
lecture-4_me_v01.pptxmsc6272
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerMujahid Hussain
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 

Mais procurados (6)

Diode Model Evalation Manual for LTspice
Diode Model  Evalation Manual for LTspiceDiode Model  Evalation Manual for LTspice
Diode Model Evalation Manual for LTspice
 
mos transistor
mos transistormos transistor
mos transistor
 
Very Large Scale Integration -VLSI
Very Large Scale Integration -VLSIVery Large Scale Integration -VLSI
Very Large Scale Integration -VLSI
 
lecture-4_me_v01.pptx
lecture-4_me_v01.pptxlecture-4_me_v01.pptx
lecture-4_me_v01.pptx
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 

Semelhante a CapSense Capacitive Sensing Best Practices

Capacitance Sensing - Migrating from CSR to CSA
Capacitance Sensing - Migrating from CSR to CSACapacitance Sensing - Migrating from CSR to CSA
Capacitance Sensing - Migrating from CSR to CSAemilyjoseph444
 
Capacitance Sensing Migrating From Csr To Csd An2408 12
Capacitance Sensing   Migrating From Csr To Csd   An2408 12Capacitance Sensing   Migrating From Csr To Csd   An2408 12
Capacitance Sensing Migrating From Csr To Csd An2408 12Ruth Moore
 
Capacitive Sensing - Power and Sleep Considerations
Capacitive Sensing - Power and Sleep ConsiderationsCapacitive Sensing - Power and Sleep Considerations
Capacitive Sensing - Power and Sleep ConsiderationsRuth Moore
 
CapSense Capacitive Sensors Sigma Delta Algorithm
CapSense Capacitive Sensors Sigma Delta AlgorithmCapSense Capacitive Sensors Sigma Delta Algorithm
CapSense Capacitive Sensors Sigma Delta AlgorithmRuth Moore
 
IRJET- Implementation of 16-Bit Pipelined ADC using 180nm CMOS Technology
IRJET-  	  Implementation of 16-Bit Pipelined ADC using 180nm CMOS TechnologyIRJET-  	  Implementation of 16-Bit Pipelined ADC using 180nm CMOS Technology
IRJET- Implementation of 16-Bit Pipelined ADC using 180nm CMOS TechnologyIRJET Journal
 
CapSense Device and Method Selection Guide
CapSense Device and Method Selection GuideCapSense Device and Method Selection Guide
CapSense Device and Method Selection Guideemilyjoseph444
 
Data Acquisition System, a side for Electrical Engg.
Data Acquisition System, a side for Electrical Engg.Data Acquisition System, a side for Electrical Engg.
Data Acquisition System, a side for Electrical Engg.AdnanZafar83
 
Capacitance Sensing - EMC Design Considerations for PSoC CapSense Applications
Capacitance Sensing - EMC Design Considerations for PSoC CapSense ApplicationsCapacitance Sensing - EMC Design Considerations for PSoC CapSense Applications
Capacitance Sensing - EMC Design Considerations for PSoC CapSense Applicationsccox826
 
DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...
DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...
DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...VLSICS Design
 
497 article text-761-1-10-20190814
497 article text-761-1-10-20190814497 article text-761-1-10-20190814
497 article text-761-1-10-20190814Hoopeer Hoopeer
 
IRJET- Design and Implementation of High Speed, Low Power Charge Shared R...
IRJET-  	  Design and Implementation of High Speed, Low Power Charge Shared R...IRJET-  	  Design and Implementation of High Speed, Low Power Charge Shared R...
IRJET- Design and Implementation of High Speed, Low Power Charge Shared R...IRJET Journal
 
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISREAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISIRJET Journal
 
Design and implemation of an enhanced dds based digital
Design and implemation of an enhanced dds based digitalDesign and implemation of an enhanced dds based digital
Design and implemation of an enhanced dds based digitalManoj Kollam
 
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADCDesign of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADCAman JanGra
 
DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...
DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...
DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...VLSICS Design
 
DESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMS
DESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMSDESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMS
DESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMSVLSICS Design
 
Design and ASIC Implemenatation of DUC/DDC for Communication Systems
Design and ASIC Implemenatation of DUC/DDC for Communication Systems  Design and ASIC Implemenatation of DUC/DDC for Communication Systems
Design and ASIC Implemenatation of DUC/DDC for Communication Systems VLSICS Design
 

Semelhante a CapSense Capacitive Sensing Best Practices (20)

Capacitance Sensing - Migrating from CSR to CSA
Capacitance Sensing - Migrating from CSR to CSACapacitance Sensing - Migrating from CSR to CSA
Capacitance Sensing - Migrating from CSR to CSA
 
Capacitance Sensing Migrating From Csr To Csd An2408 12
Capacitance Sensing   Migrating From Csr To Csd   An2408 12Capacitance Sensing   Migrating From Csr To Csd   An2408 12
Capacitance Sensing Migrating From Csr To Csd An2408 12
 
Capacitive Sensing - Power and Sleep Considerations
Capacitive Sensing - Power and Sleep ConsiderationsCapacitive Sensing - Power and Sleep Considerations
Capacitive Sensing - Power and Sleep Considerations
 
CapSense Capacitive Sensors Sigma Delta Algorithm
CapSense Capacitive Sensors Sigma Delta AlgorithmCapSense Capacitive Sensors Sigma Delta Algorithm
CapSense Capacitive Sensors Sigma Delta Algorithm
 
IRJET- Implementation of 16-Bit Pipelined ADC using 180nm CMOS Technology
IRJET-  	  Implementation of 16-Bit Pipelined ADC using 180nm CMOS TechnologyIRJET-  	  Implementation of 16-Bit Pipelined ADC using 180nm CMOS Technology
IRJET- Implementation of 16-Bit Pipelined ADC using 180nm CMOS Technology
 
CapSense Device and Method Selection Guide
CapSense Device and Method Selection GuideCapSense Device and Method Selection Guide
CapSense Device and Method Selection Guide
 
Data Acquisition System, a side for Electrical Engg.
Data Acquisition System, a side for Electrical Engg.Data Acquisition System, a side for Electrical Engg.
Data Acquisition System, a side for Electrical Engg.
 
Capacitance Sensing - EMC Design Considerations for PSoC CapSense Applications
Capacitance Sensing - EMC Design Considerations for PSoC CapSense ApplicationsCapacitance Sensing - EMC Design Considerations for PSoC CapSense Applications
Capacitance Sensing - EMC Design Considerations for PSoC CapSense Applications
 
Wireless Sensor Network
Wireless Sensor NetworkWireless Sensor Network
Wireless Sensor Network
 
DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...
DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...
DESIGN OF IMPROVED RESISTOR LESS 45NM SWITCHED INVERTER SCHEME (SIS) ANALOG T...
 
497 article text-761-1-10-20190814
497 article text-761-1-10-20190814497 article text-761-1-10-20190814
497 article text-761-1-10-20190814
 
IRJET- Design and Implementation of High Speed, Low Power Charge Shared R...
IRJET-  	  Design and Implementation of High Speed, Low Power Charge Shared R...IRJET-  	  Design and Implementation of High Speed, Low Power Charge Shared R...
IRJET- Design and Implementation of High Speed, Low Power Charge Shared R...
 
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISISREAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
REAL-TIME LOCATION TRACKER FOR HEALTH PATIENT IN CRISIS
 
Design and implemation of an enhanced dds based digital
Design and implemation of an enhanced dds based digitalDesign and implemation of an enhanced dds based digital
Design and implemation of an enhanced dds based digital
 
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADCDesign of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
Design of Low Power High Speed 4-Bit TIQ Based CMOS Flash ADC
 
Ms 2446 final
Ms 2446 finalMs 2446 final
Ms 2446 final
 
DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...
DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...
DESIGN AND IMPLEMENTATION OF 10 BIT, 2MS/s SPLIT SAR ADC USING 0.18um CMOS TE...
 
A 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADCA 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADC
 
DESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMS
DESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMSDESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMS
DESIGN AND ASIC IMPLEMENTATION OF DUC/DDC FOR COMMUNICATION SYSTEMS
 
Design and ASIC Implemenatation of DUC/DDC for Communication Systems
Design and ASIC Implemenatation of DUC/DDC for Communication Systems  Design and ASIC Implemenatation of DUC/DDC for Communication Systems
Design and ASIC Implemenatation of DUC/DDC for Communication Systems
 

Último

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 

CapSense Capacitive Sensing Best Practices

  • 1. CapSense™ Best Practices AN2394 Author: Mark Lee Associated Project: No Associated Part Family: CY8C20x34, CY8C21x4, CY8C24x94 GET FREE SAMPLES HERE Software Version: PSoC Designer™ 4.3 Associated Application Notes: 2233a, 2292, 2360, 2318, 2403 Application Note Abstract This application note presents best practices for designing CapSense™ systems. The topics covered include an overview of sensing methods, guidelines for layout and assembly, and CapSense tools and techniques. The PSoC architecture allows designers to incorporate Introduction multiple capacitive sensing design elements into an Adopting capacitive sensing as an interface technology in application. Buttons, sliders, touchpads, and proximity high-volume, high-visibility applications such as portable detectors are supported simultaneously with the same media players and mobile handsets has created demand device in the same circuit. Use PSoC to scan capacitive for this technology in more conventional consumer sensors and use the activation status to drive LEDs, electronics. This demand has led to significant innovation, control a motor, drive a speaker, and so on, as shown in and several competitive technologies are available. While Figure 2. Sample Application with CapSensePlus: Motor, these technologies each have their respective differences, LED, and Speaker with a Single PSoC. A concept called the underlying principle is the measurement of dynamic reconfiguration allows the CapSense application capacitance between a plate (the sensor) and its to use more than 100% of the system resources by environment. reconfiguring as needed on-the-fly. Compared to modules and fixed-function ICs, programmable ICs allow more flexibility in design as custom code is used to develop solutions. PSoC® Figure 2. Sample Application with CapSensePlus: Motor, LED, and Speaker with a Single PSoC CapSense combines a microcontroller, configurable digital and analog resources, on-board memory, and other features that allow flexibility in capacitive system design. This application note gives an overview of best practices for CapSense design. Figure 1. PSoC Analog and Digital Blocks Configured for CapSensePlus January 14, 2008 Document No. 001-41450 Rev. *B 1 [+] Feedback
  • 2. AN2394 Easy-to-Configure Capacitive Figure 4. CSA Waveform Changes with Finger Absent and Present Sensing Solutions PSoC implements different methods of CapSense, configured through firmware (see Reference [1]), including CSA and CSD. CSA Sensing Method CSA stands for CapSense with Successive Approximation. CSA is only implemented in the CY8C20x34 PSoC device family. Figure 3. CSA Configuration of CapSense CSD Sensing Method CSD stands for CapSense with Sigma-Delta A/D. CSD is implemented in both CY8C21x34 and CY8C24x94 PSoC device families. A block diagram of the CSA configuration is shown in Figure 3. CSA operates as follows: Figure 5. CSD Configuration of CapSense Switches SW1 and SW2 and the CapSense sensor CX, form a switched capacitor network with an equivalent circuit of a resistor to ground. With the iDAC set to a calibrated level, and SW1 and SW2 switching, the average voltage on CMOD settles at a level that varies with the value of CX. By setting the iDAC to a low current level, with SW2 open, the voltage on CMOD ramps up. The time for the ramp voltage on CMOD to reach VREF is an indication of the value of CX. The timer on the output of the comparator converts the ramp time to a digital value. Self-calibration of the system is accomplished through a successive approximation binary search to determine the A block diagram of the CSD configuration is shown in iDAC setting necessary to keep voltage on CMOD at VREF Figure 5. CSD operates as follows: when no finger is present. Individual calibrated iDAC settings are stored for all sensors. Switches SW1 and SW2 and the CapSense sensor CX, form a switched capacitor network with an equivalent When a finger is present, the voltage on CMOD settles at a circuit of a resistor between VDD and CMOD. The equivalent lower voltage, requiring more time to reach the threshold resistor has a value controlled by CX. The switching of voltage VREF, as shown in Figure 4. If (t2–t1) is long SW1 and SW2 is controlled by the pseudo-random enough, the sensor is in Finger Present state, otherwise sequence of the PRS generator. The PRS lowers noise the sensor is in Finger Absent state. susceptibility and radiated emissions compared to a fixed An internal capacitor, programmable up to 100 pF, is used period clock source. SW3 operates asynchronously from for CMOD, but a larger external capacitor improves SW1 and SW2. When RB is switched to ground, the voltage performance: 1nF–4nF for buttons and sliders. CSA is not on CMOD decreases. When RB is open, the voltage on recommended for proximity sensors. CMOD increases. The comparator changes state based on the voltage on CMOD relative to VREF. January 14, 2008 Document No. 001-41450 Rev. *B 2 [+] Feedback
  • 3. AN2394 A Sigma-Delta A/D is formed by the addition of a 16-bit PSoC Placement: It is good practice to minimize the timer to measure comparator high-time to comparator low- distance between the PSoC and the sensors. Typically, time. the PSoC is mounted on the bottom layer along with the other components and the CapSense sensor pads are When a finger is present, CX is larger and the equivalent placed on the top layer. resistor to VDD is smaller, allowing more current to flow into CMOD. The comparator spends more time in the CMPHIGH Board Layers: The most common PCB format is two state and less time in CMPLOW. If the ratio layers with sensor pads and gridded ground plane on top CMPHIGH:CMPLOW is high enough, the sensor is in and everything else on the bottom. Four layer boards are Finger Present state, otherwise the sensor is in Finger used when board area must be minimized. Do not route Absent state, as shown in Figure 6. traces directly under sensor pads. Figure 6. CSD Waveform Changes with Finger Absent and Figure 7. Two Layer Stack-Up for CapSense Boards Present Board Thickness: FR4-based designs are found to perform well with standard board thickness ranging from of 0.020quot; (0.5 mm) to 0.063quot; (1.6 mm). See Flex Circuits for guidelines. Trace Length and Width: The parasitic capacitance of the traces and sensor pad, CP, is minimized to make the dynamic range of the system as large as possible. CP is minimized by short and narrow traces. How long can the traces be? The longest traces in a successful CapSense product are 9quot; (230 mm) for a slider, and 12quot; (300 mm) for a button. (This extreme example requires large sensing pads and a thin overlay to maximize the signal from the sensor.) Trace width adds to the sensor CP and increases coupling to elements on other layers. Trace widths of A CMOD value between 1nF–100nF is recommended. RB 0.0065quot;–0.008quot; (0.17–0.20 mm) suffice for most requires tuning to sensors for optimal performance, applications. (between 2K and 10K.) RB is selected so that the CapSense counts without a finger are between 60% and Vias: Use the minimum number of vias consistent with 80% of the maximum counts for the selected CSD routing of the CapSense inputs to minimize CP. The resolution. placement of the via is done at any location on the sensor pad, as shown in Figure 8. How to Design CapSense Printed Figure 8. Via to Sensor Pad can be Anywhere on the Pad Circuit Boards (Trace on Bottom Layer, Sensor Pad on Top Layer) In the typical CapSense application, the capacitive sensors are formed by the traces of a printed circuit board (PCB). The following set of guidelines show how to design a CapSense PCB (see Reference [2]). General Layout and Assembly Guidelines Board Area: The area required for CapSense is only slightly larger than the sensing area itself. The electric fields around the sensors are very localized, especially if the ground plane and sensor pad are placed on the same PCB layer. January 14, 2008 Document No. 001-41450 Rev. *B 3 [+] Feedback
  • 4. AN2394 Communication Lines: Do not run capacitive sensing Both signal and noise are affected by the overlay traces in close proximity with and parallel to high- properties. As the thickness of the overlay increases, frequency communication lines, such as I2C or SPI. If it is signal and noise both decrease. Signal is defined as the necessary to cross communication lines with sensor pins, difference in average sensor output between the Finger be sure the intersection is orthogonal. One effective Absent and Finger Present states. Noise is defined in the method of reducing the interaction between peak-to-peak deviation in sensor output in the Finger communication traces and sensor traces is to isolate each Absent state. A representative plot of CapSense signal by port assignment. Port pins P1[0] and P1[1] are used for versus overlay thickness is shown in Figure 10. programming and I2C. If they are not used for these Figure 10. Signal Level Drops Off as Overlay Thickness purposes, then they are assigned to CapSense. Series Increases resistors are recommended in-line with all CapSense inputs (560 ohms) and series with communication lines such as I2C, SPI, and so on (300 ohms) to prevent RF interference. Ground Fill: When ground fill is added near a CapSense sensor pad, there is a trade-off between maintaining a high level of CapSense signal and increasing noise immunity of the system. Typical hatching for the ground fill is 15% on the top layer (7 mil line, 45 mil spacing), and 10% on the bottom layer (7 mil line, 70 mil spacing), as shown in Figure 9. Figure 9. Partial Ground Fill to Minimize CP Overlay Adhesive: Overlay materials must have good mechanical contact with the sensing PCB. Two widely used non-conductive adhesives for overlays are 467MP and 468MP, made by 3M. Gloves: If the sensors work with a gloved hand, then add the thickness of the glove material to the total overlay stack-up when sizing the buttons. Dry leather and rubber are similar to plastic with a dielectric constant of 2.5–3.5. Overlay Thickness: Table 1 lists the recommended Ski gloves have a dielectric constant of 2 or less, maximum overlay thicknesses for PSoC CapSense depending on the air content of glove‘s thermal insulation. applications (plastic overlay). The dielectric constant plays a role in how thick the overlay is. Common glass has a LED Backlighting: CapSense works well with LED dielectric constant around εr = 8, while plastic is around εr = backlighting. Just cut a hole in the sensor pad. Keep LED 2.5. The ratio of εr / 2.5 is an estimate of how thick the traces on the bottom of the board. overlay is, relative to plastic for the same level of Multiple PSoCs on One PCB: For systems with many sensitivity. Using this rule of thumb, a common glass buttons, such as a keyboard, the system design may overlay is about three times as thick as a plastic overlay require two or more PSoCs dedicated to CapSense. If this for the same sensitivity. is the case, partition buttons so that a ground fill area Table 1. Recommended Plastic Overlay Thickness for separates the traces of each button group. This prevents CapSense coupling between the independent CapSense groups. Design Element Overlay Thickness Button < 5 mm Slider < 2 mm Touchpad < 0.5 mm January 14, 2008 Document No. 001-41450 Rev. *B 4 [+] Feedback
  • 5. AN2394 Figure 13 gives an overview of shape recommendations Buttons for buttons. A square or rectangular button works if the The function of a button is to determine the presence or layout does not support a round shape. Buttons should not absence of a conductive object. A typical application of a be triangular or include other pointed features with angles CapSense button is to sense the presence of a finger. less than 90 degrees. Interdigitated sensor traces do not work well with CSD or CSA. Shape: The recommended shape for sensing a finger press is a solid round pattern as shown in Figure 11. Figure 13. Recommendations for Button Shape Figure 11. Recommended Button Shape is Solid Round Pattern Round buttons must be at least 5 mm in diameter, and rectangular buttons must have at least one dimension greater than 6 mm. The size of the button is selected to meet the minimum signal-to-noise ratio (SNR) requirement of 5:1 (see Reference [5]). The thicker the protective overlay, the larger the button diameter should be. Sliders A slider is a sensor array. Changes between adjacent The capacitance, CP, decreases as the clearance capacitive elements are used to determine the position of surrounding the button is increased. An example of this a conductive object. Position is determined in firmware dependence of CP on the gap is shown in Figure 12 for using a centroid (center of mass) calculation. three button sizes (5 mm, 10 mm, and 15 mm diameter). The slider segments must be small enough so that Figure 12. CP as a Function of Button-Ground Clearance multiple segments couple with each finger position, yet and Button Diameter (0.062quot; Thick, FR4) large enough to produce the required signal level through the overlay. A sawtooth pattern works well for sliders, with a minimum of five segments. Each finger position on the slider produces a usable signal on at least three segments. The maximum length of the slider is only limited by the available IO pins of the PSoC and the required report rate for the system. A typical slider pattern is shown in Figure 14. The sensor output is represented by a bar graph above each slider segment. Figure 14. Sawtooth Pattern Used With Slider Sensor Pattern January 14, 2008 Document No. 001-41450 Rev. *B 5 [+] Feedback
  • 6. AN2394 Slider Diplexing: If IO pins are at a premium, connecting Figure 16. Rear View of a Proximity Sensor Prototype two slider segments to a single PSoC pin increases the number of slider segments that are sensed by the PSoC by two-fold. The CapSense User Module Wizard allows the user to select this as an option for pin assignment, and the User Module API determines the correct half of the slider that the finger is touching. Connecting each CapSense input pin to two slider elements doubles CP without any increase in signal. Touchpads The CapSense User Module does not directly support touchpads. Touchpads are implemented as two independent sliders. All the guidelines that apply to sliders also apply to touchpads. Figure 15. Touchpads with CapSense Sliders X and Y Flex Circuits Flex circuits work well with CapSense. All the guidelines presented for printed circuit boards also apply to flex. A flex circuit is typically much thinner than a PCB. Limit CP by making the flex circuit no thinner than 0.01quot; (0.25 mm), and limiting trace lengths to a few inches. One good feature of flex is the high breakdown voltage provided by the Kapton material (290 KV/mm). ITO Touch Screens ITO is an acronym for Indium Tin Oxide. Films of this ceramic material are both electrically conductive and An example of a good CapSense touchpad is a visually transparent. An example ITO touch screen is commercially successful design with 20-position column shown in Figure 17. Sheet resistivity of ITO films range slider (X) and 10-position row slider (Y). A total of 30 pins from 0.25–1000 ohms/square, with the typical value of are assigned as CapSense inputs. The dimensions of the 100–500 ohms/square. Film thickness determines the active area are 3.9quot; x 1.9quot; (99 mm x 47 mm). The overlay sheet resistivity. Thinner film passes more light and has is 0.010quot; (0.25 mm) ABS plastic. The row and column higher resistance. sensors are spaced with a pitch of 0.2quot; (5 mm). The Touch screens operate in either resistive or capacitive baseline noise level is a single count in the Finger Absent modes. Both modes have their niche markets. Resistive state. A finger on the touchpad produces a difference mode requires pressure for contact between conductive signal of 15 counts, which results in an SNR of 15:1. layers, and is prone to wear, tear, and breakage. Resistive Setting the centroid algorithm to resolve 20 positions mode is a four layer solution with poor transparency between each row pair and each column pair, this (<75%). Capacitive mode makes use of the finger as a touchpad system has a resolution of 100 counts per inch. conductive object. Capacitive mode is a one layer or two layer solution with high transparency (>90%). Cypress Proximity Sensors supports both touch screen technologies. The CapSense User Module does not directly support Figure 17. ITO Touch Screen proximity sensors. A proximity sensor is implemented as a CapSense button with large CP and small difference counts. A dedicated proximity sensor is best implemented as a single length of wire, as demonstrated in Figure 16. Connecting button and slider sensors already on the CapSense PCB into a single large sensor is another technique for implementing a proximity sensor. CSD is the best method to use for proximity sensing. CSD performs better than CSA with large CP values, and the shield feature of CSD is used to extend the detection distance of the sense wire. January 14, 2008 Document No. 001-41450 Rev. *B 6 [+] Feedback
  • 7. AN2394 Figure 19. Baseline in CapSense Data is Continuously From Concept to Production: Updated CapSense Tools and Techniques Evaluation Boards and Example Firmware The CY3213 board, shown in Figure 18, is an evaluation board for development of CapSense applications. Application firmware is written in ‗C‘. A library of common functions makes development of projects as simple as writing a few lines of code. Figure 18. CY3213—CapSense Training Evaluation Board Environmental Effects Temperature and Humidity: Temperature and humidity both cause the baseline counts to drift over time. The CapSense User Module is characterized from -40ºC to +85ºC, as shown in Figure 20. The trend that is tracked by the baseline automatically compensates for the effects of temperature and humidity. Figure 20. Temperature Variation Here is an example of the code required to scan two sensors in an array of buttons and save the result in an I2C array. Code 1. Code to Scan Sensors // starting with sensor0, scan 2 sensors, single scan mode, SensorArray_StartScan(0,2,0); //scan complete? while (!(SensorArray_GetScanStatus() & Water: CSD is the method to use if the sensing surface is SensorArray_SCAN_SET_COMPLETE)); exposed to a water stream or droplets. In this case, the shield electrode is enabled in the CSD User Module. //save sensor0 and sensor1results in i2c When water film deposits on the overlay surface, the array coupling between the shielding and sensing electrodes is info.iRawCount[0] = increased. The shield electrode allows you to reduce the SensorArray_waSnsResult[0]; influence of parasitic capacitance, which gives more info.iRawCount[1] = dynamic range to process sense capacitance changes. SensorArray_iwaSnsResult[1]; Baseline Technique The baseline is the reference for CapSense measurements. Each capacitive sensor has its own baseline. The baseline is a trend line for the capacitive sensor data that is computed by the Baseline function of the CapSense User Module. The raw count data is processed using an Infinite Impulse Response (IIR) low pass filter as shown in Figure 19. High level decisions, such as Finger Present and Finger Absent states, are based on the reference level established by the baseline. January 14, 2008 Document No. 001-41450 Rev. *B 7 [+] Feedback
  • 8. AN2394 RF Immunity Considerations Power Consumption and Sleep RF interferes with the operation of any capacitive sensing Battery life is determined by mA-hours. The lower the system, including CapSense (see Reference [4]). Where average current, the longer CapSense operates between the electric field strength is high enough, RF interference recharges (see Reference [3]). The PSoC is programmed causes false button presses or prevents real button such that it has different modes of power consumption: presses from being sensed. A cell phone is a good  example of where an RF transmitter and buttons are A fast response mode during intervals of constant purposely combined in close proximity. button presses. The electric field strength at a distance greater than 1/6 of  A power saving, slow response mode after a period of a wavelength from a transmitter is approximated by inactivity. Equation 2.  A deep sleep mode after a longer period of inactivity. 10( P / 10) 6.85 E One of the strengths of PSoC, as compared to other Equation 2 D capacitive sensing solutions, is its programmability. You  can make the power saving modes of CapSense as E [volts/meter] is the electric field. sophisticated as required. CapSense buttons are fast,  taking as little as 200 microseconds for each button P [dBm] is the RF power fed to antenna. scanned. This high scan speed is combined with a low  sleep current to achieve very low average currents. One D [inches] is the distance from antenna to field example of the real CapSense system is power saving, sensor. slow response mode using a three button scan every 100 For an 800 MHz cell phone transmitting at +28 dBm milliseconds, while consuming less than 50 µA of average (0.6W), the electric field 3quot; from the antenna is estimated current. to be around 60 V/m. Noise Filtering Figure 21 shows the equivalent circuit of the RF interference scenario, with the PSoC configured to run Noise is introduced into the CapSense system through CapSense. Internal diodes protect the PSoC from ESD both conductive and radiated sources. Conductive noise events up to 2 KV. enters the system through power and signal lines. Radiated sources, such as cell phones or fluorescent lamp Figure 21. Diodes at Input of PSoC Provide ESD ballasts, introduce noise through the air. Filtering Protection techniques in firmware is used to increase the signal-to- noise ratio of the CapSense system in the presence of both types of noise. PSoC implements Finite Impulse Response (FIR) and Infinite Impulse Response (IIR) digital filters with only a few lines of code. FIR Filter: The frequency of finger pressing events is low compared to the frequency of power line noise. A low pass filter (LPF) is an effective noise filtering solution for this situation. An FIR LPF is defined by: y ( x1 x 2 ... xN ) / N Equation 1 Raw counts are sampled N times per cycle of the noise. The N samples are combined together per Equation (1). With 50 Hz noise, the sample period must be 18 ms/N. The performance of the FIR filter increases with N, so make N as large as the system allows. IIR Filter: An FIR filter has a disadvantage in that it needs to be a much higher order than an IIR filter to get the same result. It may also be difficult to adjust the sample rate to fit the period of the noise. So, in some cases, an IIR filter is a more appropriate choice for the LPF. Table 2 compares the FIR and IIR filters. Table 2. Low Pass Filter Comparison—FIR vs. IIR Filter Type RAM Response Always (order=N) Time Stable FIR LPF 1 N*T Yes IIR LPF N*2 T No January 14, 2008 Document No. 001-41450 Rev. *B 8 [+] Feedback
  • 9. AN2394 The resonant effects of a circuit trace form the receiver ESD Considerations antenna. A quarter wavelength trace is an efficient The electrostatic voltage on the human body reaches 15 antenna. Figure 22 shows the length of a quarter KV when the humidity is low. The type of clothes worn by wavelength antenna versus frequency. the CapSense user makes a difference on how this Figure 22. Quarter Wavelength Trace is an Efficient voltage goes, as shown in Figure 23. Antenna Figure 23. Electrostatic Voltage on a Human Body vs. Relative Humidity and Material Type For a low level RF signal, the CapSense circuit operates Table 3 shows the minimum thickness required to with no effect on the digital output of the system, since low withstand 12 KV for common overlay materials. The levels of RF look similar to background noise and are overlay in the CapSense system protects the PSoC from ignored by the system. When the RF power increases, the permanent damage when the thickness guidelines of the CapSense counts are offset a constant amount that is set table are followed. A layer of Kapton tape works well in by the power level of the interference. The RF signal is AC applications needing extra ESD protection. but the effect on CapSense counts is DC due to the diodes on the CapSense input. A positive shift in counts Table 3. Breakdown Voltage of Overlay Materials and causes false button presses. A negative shift prevents real Minimum Thickness to Prevent Breakdown button presses from being sensed. The finger and noise thresholds of the CapSense User Module allow normal Breakdown Min. Overlay operation in the presence of small shifts in the counts. For Material Voltage Thickness at higher levels of RF interference, other measurements [V/mm] 12 KV [mm] need to be taken. Following are two solutions. 1200 – 2800 Air 10  Glass – Common 7900 1.5 RF Solution #1—Coordinate RF and CapSense: If the source of the interference is part of the same system Glass - Borosilicate 13,000 0.9 (Pyrex) in which CapSense is embedded, then disable CapSense when RF is transmitting. One pin on the Formica 18,000 0.7 PSoC is assigned to monitor a Transmit_Enable ABS 16,000 0.8 signal. CapSense counts continue to be affected by Acrylic (Plexiglass) 13,000 0.9 the high power RF, but counts are only valid with the transmitter turned off. Polycarbonate (Lexan) 16,000 0.8  PET Film (Mylar) 280,000 0.04 RF Solution #2—Damp the Resonance: Resistors Polyimide Film 290,000 0.04 placed in series with the CapSense input damps the (Kapton) resonance of each trace. The recommended series FR-4 28,000 0.4 resistance added to the CapSense inputs is 560 ohms. Communication lines, I2C and SPI, benefit Wood – Dry 3900 3 from 300 ohms in series. January 14, 2008 Document No. 001-41450 Rev. *B 9 [+] Feedback
  • 10. AN2394 Summary References Application Note AN2233a, ―Capacitive Switch Scan,‖ The best practices for CapSense designs presented in this 1. application note enable engineers to successfully add Cypress Semiconductor capacitive sensing features to their products. Application Note AN2292, ―Layout Guidelines for 2. PSoC CapSense,‖ Cypress Semiconductor Application Note AN2360, ―Power Consumption and 3. Sleep Considerations with CapSense,‖ Cypress Semiconductor Application Note AN2318, ―EMC Design 4. Considerations for PSoC CapSense Applications,‖ Cypress Semiconductor 5. Application Note AN2403 quot;Signal-to-Noise Ratio Requirement for CapSense Applications,quot; Cypress Semiconductor January 14, 2008 Document No. 001-41450 Rev. *B 10 [+] Feedback
  • 11. AN2394 About the Author Name: Mark Lee Title: Principal Application Engineer Background: Ph.D.E.E. 1992 University of Washington Computer Aided Modeling of the Dielectric Properties of Materials Experienced in aerospace, medical, and computer industries, focusing on new product development. Holder of several patents. Cypress employee since 2005. Contact: olr@cypress.com In March of 2007, Cypress recataloged all of its application notes using a new documentation number and revision code. This new documentation number and revision code (001-xxxxx, beginning with rev. **), located in the footer of the document, will be used in all subsequent revisions. PSoC is a registered trademark of Cypress Semiconductor Corp. ―Programmable system-on-Chip,‖ PSoC Designer, and PSoC Express are trademarks of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein may be the property of their respective owners. Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone: 408-943-2600 Fax: 408-943-4730 http://www.cypress.com/ © Cypress Semiconductor Corporation, 2006-2008. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress. Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress‘ product in a life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges. Use may be limited by and subject to the applicable Cypress software license agreement. January 14, 2008 Document No. 001-41450 Rev. *B 11 [+] Feedback