Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Decoding
NOISE BEHAVIOR: FREQUENCY-BASED
ACQUISITION
(Digital)
Frequency-based acquisitions methods must perform
Application frequency-hopping techniques to eliminate harmonic
noise concerns. This is handled automatically by the
RightTouch turnkey products, and is always enabled.
Conducted and Radiated Noise Additionally, multiple proprietary techniques are used
to sense and adjust for noise in the device.
‘Conducted’ and ‘radiated’ are the two main
classifications of injected noise that can create
instability in capacitive touch systems. Conducted
noise is caused in systems that are powered externally
from the device. This can include systems powered off
the main-line power, desktop-powered USB devices, or
any other situation that may mean the user is not
sharing a ground with the application.
Radiated noise is a common challenge across all
capacitive touch systems. In particular, if the capacitive
touch sensor is a high-impedance input when being
scanned, it essentially performs as a high-frequency
antenna. Thus, electronic devices radiating
electro-magnetic fields near the capacitive touch
system will cause the readings to be affected. This can
include cell phones, high-power communication lines,
and fluorescent lights to name a few.
MUTUAL DRIVES
Mutual drives are any I/O pin that is driven in phase
with the mTouch waveform with the intention of
measuring changes in the relative permittivity between
the mutual drive (Tx) and the sensor (Rx).
When implementing a mutual sensor, there will be a
base amount of coupling and then a change in the
coupling when a new material is placed in the coupling
path. In order to ensure maximum sensitivity, the
mutual waveform should be driven in phase with the
sensing waveform to ensure that the voltage shift due
to additional capacitance is in the same direction as the
shift due to the permittivity/mutual-coupling change.
There are two main situations where a mutual drive
signal is advantageous to a design:
• If a piece of metal has the possibility of physically
touching the sensor, driving the metal with a
mutual signal will eliminate glitches on the
sensor’s reading when the short occurs.
1 2 3 4 5 6
Overlay Thickness (mm)
C0 = 5pF CADC = 10pF
FIGURE 15: THICK OVERLAY OPTIONS air separating the cover and PCB, your effective
permittivity, R, will be significantly decreased. For
example, a 1 mm air gap will decrease your sensitivity
(A)
to a half or a quarter of what it was. Remember that
Recommended when three capacitors are in series, the smallest will
dominate.
For systems using the metal-over-capacitive
(B)
technique, it is especially important that a good
adhesive is found for the application. Distances of tens
Thick Overlay, Larger Sensor of microns (10 micron ≈ 0.4 mil) can make a significant
difference in these designs. Talking to a representative
(C) from 3M or another adhesives manufacturer is
recommended to ensure your choice is the best for
your custom application.
Option: Create Slot for PCB
There are several other important factors to keep in
(D) mind when choosing or working with a commercial
adhesive:
Capacitive
CF Sensor
CBODY CBASE
Device
Ground
ΔCGND
CGND
Earth
Ground
User
If the filter’s bandwidth is narrow, less noise will be able Implemented on the ‘reading’ variable in the
to pass through, but it may take a long time for the filter filtering routine before sending it to the decoding
to follow the signal. On the other hand, if the filter’s algorithm.
bandwidth is wide, more noise will be able to pass
through, but it will follow the signal more closely. FIR FILTERS VS. IIR FILTERS
Combining multiple filters can allow the designer to get Finite-Impulse Response (FIR) filters take a fixed
the benefits of each while limiting the negative impact. number of previous inputs and use them to create the
There are three types of filters that are commonly used next output.
in mTouch sensing solution applications. More filters Finite-Impulse Response Filter Benefits:
could easily be added to this list and may be more
appropriate for a specific application, but these have • Simple implementations
been chosen because most designs will be able to use • Better filter stability
one or more of them. • Fewer concerns about integer precision
The three filter types are: Infinite-Impulse Response (IIR) filters take the input
1. Slew Rate Limiter and use it in combination with the previous output of the
filter to determine the next filter output.
Used as the first input filter on new incoming
samples to reject impulse noise and smooth the Infinite-Impulse Response Filter Benefits:
signal. • Low memory requirements
Implemented in the acquisition routine. • Low processing requirements
2. L-Point Running Average Ultimately, both filter types can be useful to an
application. For capacitive touch systems, IIR filters
Used to create a slow-updating (high time
can be used for slowly-updating environmental
constant) baseline (“average”) for each sensor
baselines. The filter should be designed so that it can
as a reference point during decoding. Allows the
handle impulse noise without becoming unstable. FIR
system to track environmental changes such as
filters can be used for quickly-updating sensor
temperature and humidity.
variables like the current reading.
Implemented in the filtering routine.
3. Low Pass Butterworth FILTER: SLEW RATE LIMITER
Used to reject white noise on the sensor read- The Slew Rate Limiter (SRL) filter’s main design goal is
ings while still maintaining a fast response time to reject impulse noise from sensors’ readings.
(low time constant). Sometimes referred to as a ‘decimation’ filter,
implementing the SRL filter requires a specific
scanning technique that will possibly change the
sample rate of your design.
uint16_t reading[HISTORY];
uint8_t index;
typedef struct
{
uint16_t y;
uint16_t x;
} filter_t;
filter_t filter;
// Temporary variables
uint16_t x1, y1, ay1;
uint16_t temp0, temp1;
// Calculate: ( a * y[1] )
// Where, a = 0.8125.
temp0 = y1 >> 2;
temp1 = y1 >> 4;
ay1 = y1 - temp0 + temp1;
Button Pads
Shape No specific requirement.
Size 15 x 15 mm
Pad-to-Pad Distance 10 mm
Overlay
Thickness < 3 mm
Material 2.0 ≤ r ≤ 8.0
Adhesive Thin, high r, no bubbles
Layout
Sensor traces Thin, short
Series resistance CVD 4.7 - 10 kΩ
CTMU 1 - 2.5 kΩ
LED/Comm. traces Avoid sensor traces
Power Supply
Shares GND w/User Improve sensitivity by 2x
Best VDD for Noise Higher is better
Bypass Capacitors 0.1µF on all VDD pins
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
CERTIFIED BY DNV Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
== ISO/TS 16949 == devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.