Microchip’s MTCH6102 is a turnkey projected
capacitive touch controller that simplifies adding
gestures to touch interface designs with
industry-leading low-power performance. It utilizes up
to 15 channels to support taps, swipes, and scrolling on
XY touch pads and touch screens. MTCH6102 allows
designers to quickly and easily integrate projected
capacitive touch into their cost-sensitive, low-power
application. MTCH6102 provides developers with a
flexible touch-sensing solution to optimize common
constraints of size, power and cost that are critical to
applications such as wearable devices, remote
controls, gaming devices and track pads.
Applications:
• Wearable Devices such as Headphones,
Watches, Fitness Wristbands
• Track Pads and Computer Peripherals
• Input Devices with Configurable Button, Keypad
or Scrolling Functions
• Any Interface with Single-Finger Gestures to
Swipe, Scroll, or Doubletap Controls
• Home Automation Control Panels
• Security Control Keypads
• Automotive Center Stack Controls
• Gaming Devices
• Remote Control Touch Pads
Touch Features:
• Gesture Detection and Reporting
• Self-Capacitance Signal Acquisition
• Multiple Built-in Filtering Options
Power Management:
• Configurable Sleep/Idle Frame Rates
• Standby mode <500 nA (typical)
• Active mode <12 uA possible
Communication Interface:
•I2C™ (up to 400 kbps)
• Both Polling and Interrupt Schemes Supported
• Sync Signal Allows for Host Frame Detection
• Field Upgradeable over I
2
C
Operating Conditions:
• 1.8V to 3.6V, -40°C to +85°C
Package Types:
• 28-Pin SSOP
• 28-Pin UQFN
Touch Sensor Support:
• Up to 15 Channels
• Sensor Sizes up to 120 mm (4.7”)
• Individual Channel Tuning for Optimal Sensitivity
• Works with Printed Circuit Board (PCB) Sensors,
Film, Glass and Flexible Printed Circuit (FPC)
Sensors
9.0Touch Frame Control ................................................................................................................................................................. 16
10.0 Touch Data Registers................................................................................................................................................................. 17
11.0 Acquisition and Touch Parameters ............................................................................................................................................ 18
14.0 Gesture Features and Parameters ............................................................................................................................................. 22
15.0 Configuring a Non-Default Application ....................................................................................................................................... 26
19.0 Ordering Information .................................................................................................................................................................. 35
The Microchip Web Site........................................................................................................................................................................ 43
Customer Support ............................................................................................................................................................................... 43
Worldwide Sales and Service............................................................................................................................................................... 45
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at docerrors@microchip.com. We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000000A is version A of document DS30000000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at www.microchip.com to receive the most current information on all of our products.
DS40001750A-page 2 2014 Microchip Technology Inc.
DS40001750A-page 6 2014 Microchip Technology Inc.
Page 7
4.1Decoupling Capacitors
The use of decoupling capacitors on power-supply
pins, such as V
following criteria when using decoupling capacitors:
1.Value and type of capacitor:
A value of 0.1 µF (100 nF), 10-20V is recommended.
The capacitor should be a low Equivalent Series
Resistance (low ESR) capacitor and have resonance
frequency in the range of 20 MHz and higher. It is
further recommended that ceramic capacitors be used.
2.Placement on the Printed Circuit Board:
The decoupling capacitors should be placed as close to
the pins as possible. It is recommended that the
capacitors be placed on the same side of the board as
the device. If space is constricted, the capacitor can be
placed on another layer on the PCB using a via;
however, ensure that the trace length from the pin to
the capacitor is within one-quarter inch (6 mm) in
length.
3.Handling high-frequency noise:
If the board is experiencing high-frequency noise,
upward of tens of MHz, add a second ceramic-type
capacitor in parallel to the above-described decoupling
capacitor. The value of the second capacitor can be in
the range of 0.01 µF to 0.001 µF. Place this second
capacitor next to the primary decoupling capacitor. In
high-speed circuit designs, consider implementing a
decade pair of capacitances as close to the power and
ground pins as possible (for example, 0.1 µF in parallel
with 0.001 µF).
4.Maximizing performance:
On the board layout from the power supply circuit, run
the power and return traces to the decoupling
capacitors first, and then to the device pins. This
ensures that the decoupling capacitors are first in the
power chain. It is equally important to keep the trace
length between the capacitor and the power pins to a
minimum, thereby reducing PCB track inductance.
DD and VSS, is required. Consider the
MTCH6102
4.2Bulk Capacitors
The use of a bulk capacitor is recommended to improve
power-supply stability. Typical values range from
4.7 µF to 47 µF. This capacitor should be located as
The MTCH6102 low-power projected capacitive touch
controller uses a standard register-based read/write
2
C protocol based upon the memory map. This
I
protocol is similar to many other devices such as
temperature sensors and serial EEPROMs. Although
data can be read at any time (polling), an interrupt pin
(INT) is provided for flexible integration options.
FIGURE 5-1:I2C™ TRANSACTION DIAGRAM
5.1.2READING/WRITING REGISTERS
To access memory (both to read or write), the I2C
transaction must start by addressing the chip with the
Write bit set, then writing out a single byte of data
representing the memory address to be operated on.
After that, the host can choose to do either of the
following (see Figure 5-1):
1.To write memory, continue writing [n] data bytes
(see Figure 5-2).
2.To read memory, restart the I
either a Stop-Start or Restart), then address the
chip with the Read bit set. Continue to read in [n]
data bytes (see Figure 5-3).
During either of these transactions, multiple bytes
within the same block may be read or written due to the
device’s address auto-increment feature. See
Section 17.0 “Memory Map” for block separation.
2
C transaction (via
FIGURE 5-2:EXAMPLE I
FIGURE 5-3:EXAMPLE I
DS40001750A-page 8 2014 Microchip Technology Inc.
2
C™ WRITE TRANSACTION
2
C™ READ TRANSACTION
Page 9
MTCH6102
I2C
dD
INT
SYNC
b
a
c
d
e
f
g
j
hi
aController sleepingfINT is released as controller goes to Sleep
bController decodinggINT is asserted due to (d)
cTouch framehINT is released due to I
2
C™ read
dFinger is presentiINT is released due to I2C™ read
eINT asserted due to (d)jFinger is not present
5.1.3DEVICE ADDRESSING
The MTCH6102 default 7-bit base address is 0x25.
Every transmission must be prefixed with this address,
as well as a bit signifying whether the transmission is a
master write (‘0’) or master read (‘1’). After appending
this Read/Write bit to the base address, this first byte
becomes either 0x4A (write) or 0x4B (read).
2
This address can be modified (seeI
requires initiallycommunicating with the device under
the default address. If this is not feasible in the user’s
application, contact Microchip support for additional
options.
CADDR), but this
FIGURE 5-4:EXAMPLE INT/SYNC LOGIC
5.2Interrupt Pin
MTCH6102 provides an open-collector active-low
Interrupt pin (INT) that will be asserted any time new
data is available. INT is automatically released under
two conditions:
1.A read is performed of any register within the
device.
2.The next frame of decoding has started.
5.3SYNC Output Pin
MTCH6102 provides an active-high sync signal that
correlates with the current touch frame status. The
SYNC pin is low while the device is sleeping (between
frames) and high while touch sensing/decoding is
occurring. A common use of this pin includes a host
that makes use of data on every frame (such as
raw-acquisition data), for host-side decoding (see
MTCH6102 has integrated algorithms to detect and
minimize the effects of noise, but proper care should
always be taken in selecting an LCD and support
components with a focus on reducing noise as much as
possible. Since the interaction between the touch
sensor and display is highly dependent upon the
physical arrangement of the components, proper
testing should always be executed with a fully
integrated device. Please reference the appropriate
projected capacitive touch screen manufacturer’s
integration guide for additional design considerations.
6.1.1PROTOTYPING DESIGNS
Touch sensor designs typically require a thorough
debugging phase to ensure a reliable product. If
possible, it is suggested that flexible prototyping
hardware be created with this in mind. A common
example is providing external access to the
communication lines for quick test and tuning while
in-circuit.
6.1.2SENSOR OVERLAY MATERIAL
To prevent saturation of sensor levels, a minimum
overlay of 0.5 mm plastic or glass is required for proper
operation of the device, even during a prototyping
phase, even if this value is different than the final
design.
Note:At no time should the device be expected
to respond correctly to a user touching a
bare PCB sensor.
DS40001750A-page 10 2014 Microchip Technology Inc.
Page 11
MTCH6102
6.2Sensor Layout Configuration
TABLE 6-1:REGISTERS ASSOCIATED WITH SENSOR LAYOUT CONFIGURATION
AddressNameDescription
0x20NUMBEROFXCHANNELSNumber of channels used for X axis
0x21NUMBEROFYCHANNELSNumber of channels used for Y axis
MTCH6102 is designed to work with sensors with a
minimum of 3x3 sensor channels, and a total maximum
of 15 channels. The number of channels on each axis
is governed by the registers in Tab le 6 -1 . For all sensor
configurations, the following conditions must be met:
1.Channel layout must start at RX0.
2.Each axis must have the associated channels in
either ascending or descending order.
3.No unconnected channel pins are allowed in the
middle of a layout.
Table 6-2 shows an example of each rule being broken
by a 6x5 sensor layout, followed by the correct layout
in the last column.
TABLE 6-2:EXAMPLE OF INCORRECT
6X5 SENSOR CONNECTIONS
(1)(2)(3)Correct
RX0
RX1
RX2
RX3
RX4X0
RX5X1X5X5
RX6X2Y0
RX7X3
RX8X4
RX9X5Y3Y1
RX10Y0Y4Y2
RX11Y1
RX12Y2
RX13Y3Y4
RX14Y4
X0X0X0
X1X1X1
X2X2X2
X4X3X3
X3X4X4
X5
Y0
Y2Y1
Y1Y0Y2
Y3
Y4
Y3
6.3Sensor Output Resolution
MTCH6102 interpolates 64 discrete points between
each channel and 32 points past the centerline of each
edge. As a result, the maximum value in the TOUCHX
and TOUCHY registers will be
(64xNUMBEROFCHANNELS) on each axis. For the
default 9x6 sensor, this results in a maximum resolution
of 576x384.
To aid in PCB layout, the sensor can be oriented in any
direction, have either axis reversed, or even have the
axes swapped. The host controller must take into
account the X/Y output and gesture orientation based
on Figure 6-2.
FIGURE 6-2:SENSOR ORIENTATION EXAMPLES
DS40001750A-page 12 2014 Microchip Technology Inc.
Page 13
MTCH6102
7.0OPERATING MODES
MTCH6102 operates in multiple modes (see Table 7-1)
governed by the MODE register (see Register 7-1).
TABLE 7-1:OPERATING MODE DESCRIPTIONS
Mode
Name
FullFull X/Y and gesture decoding occurs (Default mode) Asserted if touch is present or if a change in
TouchFull X/Y decoding onlyAsserted if touch is present or if a change in
GestureFull X/Y and gesture decoding occurs, but INT is no
longer asserted for touch data
RawRaw-capacitance signals are stored in RAWADC
registers, no decoding done. Channel selection and
type of measurement is governed by the MODECON
register
StandbyDevice is no longer sensing or performing baseline
tasks
Note 1:Data in TOUCH registers is still valid.
DescriptionINT Behavior
touch status or a gesture have occurred
touch status occurs
Asserted for gestures only
None
None
(1)
REGISTER 7-1:MODE: TOUCH DECODE MODE REGISTER
U-xU-xU-xU-xR/W-0R/W-0R/W-1R/W-1
————MODE<3:0>
bit 7bit 0
Legend:
R = Readable bit‘1’ = Bit is setx = Bit is unknown-n = Value after initialization
(default)
W = Writable bit‘0’ = Bit is clearedU = Unimplemented bitq = Conditional
bit 7-4Unimplemented: Read as ‘0’
bit 3-0MODE<3:0>: Touch Decoding mode bits
0000 =Standby
0001 =Gesture
0010 =Touch only
0011 =Full (touch and gesture)
01XX =Raw ADC
REGISTER 7-2:MODECON: RAWADC MODE CONTROL REGISTER
R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0
TYPE<3:0>CH<3:0>
bit 7bit 0
Legend:
R = Readable bit‘1’ = Bit is setx = Bit is unknown-n = Value after initialization
(default)
W = Writable bit‘0’ = Bit is clearedU = Unimplemented bitq = Conditional
bit 7-4TYPE<3:0>: CVD Result Arithmetic bits
0000 =(1023 – Result1) + Result 2
0001 =Result 1 only
0010 =Result 2 only
bit 3-0CH<3:0>: RX Sense Channel bits
0000 =RX0
..
..
1110 =RX14
1111 =Reserved, do not use
DS40001750A-page 14 2014 Microchip Technology Inc.
Page 15
MTCH6102
8.0CONTROLLER COMMANDS
Various controller commands can be initiated by writing
a ‘1’ to the appropriate bit in the CMD register
(Register 8-1). This bit will automatically be cleared
after the command has been completed.
REGISTER 8-1:CMD: COMMAND REGISTER
R/W-0R/W-0R/W-0U-xR/W-0U-xU-xR/W-0
NVDEFCFG—MFG ——BS
bit 7bit 0
Legend:
R = Readable bit‘1’ = Bit is setx = Bit is unknown-n = Value after initialization
(default)
W = Writable bit‘0’ = Bit is clearedU = Unimplemented bitq = Conditional
bit 7NV: Nonvolatile Storage Write bit
bit 6DEF: Restore Controller to Default Configuration Values bit
bit 5CFG: Configure Controller bit (after parameters have been changed)
bit 4Unimplemented: Read as ‘0’
bit 3MFG: Execute Manufacturing Test bit
bit 2-1Unimplemented: Read as ‘0’
bit 0BS: Force Baseline bit (recalibration) to occur
Touch decoding is based around the concept of a touch
frame that begins with acquisition, followed by
decoding of the acquired values, and lastly a Sleep
phase for power savings. The duration of the touch
frame is governed by the current touch state, as well as
the timing registers outlined in this section (see
Table 9-1). Figure 9-1 shows the interaction between
these registers during a typical touch cycle.
TABLE 9-1:REGISTERS ASSOCIATED
WITH TOUCH FRAME
CONTROL
AddressNameDescription
0x25ACTIVEPERIODLActive Period
0x26ACTIVEPERIODH
0x27IDLEPERIODLIdle Period
0x28IDLEPERIODH
0x29IDLETIMEOUTIdle Timeout
0x2BDEBOUNCEUPLiftoff Debounce
0x2CDEBOUNCEDOWN Touch Down
Debounce
Both active and idle period calculations are as shown
in Equation 9-1.
EQUATION 9-1:
Typical frame rates have been computed for the user’s
convenience and are shown in Tab le 9- 2.
TABLE 9-2:EXAMPLE FRAME RATE
PERIOD CALCULATIONS
Desired Rate
(ms)
100x0142
200x0284
500x064C
1000x0C99
Period
FIGURE 9-1:TOUCH FRAME TIMING
DS40001750A-page 16 2014 Microchip Technology Inc.
Page 17
MTCH6102
10.0TOUCH DATA REGISTERS
REGISTER 10-1:TOUCHSTATE: CURRENT TOUCH STATE REGISTER
R/W-0R/W-0R/W-0R/W-0U-xR/W-0R/W-0R/W-0
FRAME<3:0>—LRGGESTCH
bit 7bit 0
Legend:
R = Readable bit‘1’ = Bit is setx = Bit is unknown-n = Value after initialization
(default)
W = Writable bit‘0’ = Bit is clearedU = Unimplemented bitq = Conditional
bit 7-4FRAME<3:0>: Increments on Every Touch Frame
bit 3Unimplemented: Read as ‘0’
bit 2LRG: Large Activation is Present
bit 1GES: Gesture is Present
bit 0TCH: Touch is Present
REGISTER 10-2:TOUCHLSB REGISTER
R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0
TOUCHX<3:0>TOUCHY<3:0>
bit 7bit 0
Legend:
R = Readable bit‘1’ = Bit is setx = Bit is unknown-n = Value after initialization
(default)
W = Writable bit‘0’ = Bit is clearedU = Unimplemented bitq = Conditional
bit 7-4TOUCHX<3:0>: Current X Position (Least Significant bits)
bit 3-0TOUCHY<3:0>: Current Y Position (Least Significant bits)
TABLE 10-1:SUMMARY OF REGISTERS ASSOCIATED WITH TOUCH DATA
Every time a channel is scanned, it is scanned multiple
times (SCANCOUNT) and summed. Increasing this
number will give an inherent averaging effect, but at the
cost of time and subsequently increased power
consumption.
11.2TOUCHTHRESHX/
TOUCHTHRESHY and
HYSTERESIS
The presence of a touch is determined by the sensor
channel’s current value compared to the touch
thresholds set by TOUCHTHRESHX (or
TOUCHTHRESHY if the channel is on the Y axis).
The HYSTERESIS register contains a threshold
modifier that acts as a dynamic threshold modifier
depending on the state of the touch (higher without a
touch). A single channel of touch is shown in
Figure 11-1.
FIGURE 11-1:TOUCH THRESHOLD AND HYSTERESIS FUNCTIONALITY
DS40001750A-page 18 2014 Microchip Technology Inc.
Page 19
MTCH6102
Unfiltered (raw) data:
Median - Strength 5 (Window size 5)
I
IR
- Strength 1 (50/50)
Average – Strength 2 (Window size 4)
11.3FILTERTYPE/FILTERSTRENGTH
As new sensor values are acquired, they are filtered
based on the settings of the FILTERTYPE/
FILTERSTRENGTH registers (see Table 11-2).
Examples of the effects of each filter type are shown in
Figure 11-2.
TABLE 11-2:FILTERTYPE AND FILTERSTRENGTH DEFINITIONS
FILTERTYPEFILTERSTRENGTHValid Values
0 – No FilterN/A—
1 – MedianSize of median window3, 5, 7, 9
2 – I
IRWeighting of previous to current value1, 2, 3 (1/2, 1/4 and 1/8 weighting accordingly)
3 – AverageSize of average window1, 2, 3 (2, 4 and 8 accordingly)
FIGURE 11-2:FILTER EXAMPLES
11.4Large Activation
The LARGEACTIVATIONTHRESH registers provide a
way to do simple rejection of signals that are too large
to interpret. The amplitude of all sensor channels are
added together and compared to this threshold. If
greater, the LRG bit of the TOUCHSTATE register
(Register 10-1) will be set.
Note that this does not affect touch decoding. In other
words, even if the large activation threshold is
breached, the controller will still decode the touch
position as normal. The LRG bit merely serves to
inform the host that the large activation threshold has
been reached.
If this functionality is not intended to be used, this
register should be set to zero, which will disable the
large activation routines from running.
Choosing the correct filtering option for the user’s
application depends on the environment and sensor.
Note that while the median filter has good
characteristics, it is not the most efficient and will
consume more power than other filters.
It is very common for a typical touch sensor to have
non-uniform capacitive properties. To equalize the
sensor, a series of coefficients can be written to the
compensation RAM block. These coefficients
represent a ratio that is applied to the individual
channel in post-acquisition, before touch decoding
occurs.
EQUATION 12-1:COMPENSATION RAM CALCULATION
To obtain the correct compensation RAM values, the
following procedure should be used:
1.Set all SENSORVALUES registers to zero (if
necessary).
2.Record the peak values that occur in the
SENSORVALUES registers when using the
sensor under normal conditions (column A of
Table 12-1).
3.Pick a commonly occurring value to represent
the median of the set (‘125’).
4.Calculate the ratio of the peak value by dividing
the median value by the peak (column B).
5.Multiply this value by 64 and truncate (column
C). These are the compensation values that
should be written to the SENSORCOMP
registers. Please note that, if no compensation
is required (value of ‘64’, ratio of ‘1’), the register
should be set to ‘0’, to save time running
compensation routines for that channel.
6. To see the expected output from the
compensation values, follow Equation 12-1
(result in column D).
TABLE 12-1:COMPENSATION RAM
EXAMPLE CALCULATION
CHABCD
01021.22578124
11131.10671125
21181.05968125
3125164 (0)125
4125164 (0)125
51280.97763126
61320.94761126
71600.78150125
DS40001750A-page 20 2014 Microchip Technology Inc.
Page 21
MTCH6102
13.0BASELINE
Capacitive touch principles rely on analyzing a change
in capacitance from a previously-stored baseline value
(sometimes referred to as a calibration value). Baseline
routines and behavior can be tweaked using the
registers listed in Table 13-1.
TABLE 13-1:REGISTERS ASSOCIATED WITH BASELINE
AddressBit 7Bit 6Bit 5Bit 4Bit 3Bit 2 Bit 1Bit 0Default
0x04
0x2DBASEINTERVALL10
0x2EBASEINTERVALH0
0x2FBASEPOSFILTER20
0x30BASENEGFILTER20
0x33BASEFILTERTYPE2
0x34BASEFILTERSTRENGTH1
NVDEFCFG-MFG--BS0
13.1BS Bit (CMD Register)
The BS bit forces the current sensor values to be
stored as the baseline values, disregarding the
constraints of BASEPOSFILTER and
BASENEGFILTER.
13.2BASEINTERVAL
It represents the number of touch frames between
baseline sampling. Data that is sampled will be applied
at the next baseline interval, provided that a touch has
not occurred between the two.
If at any point, the touch threshold is breached, the
baseline counter is reset, and a full interval without a
touch must occur before baselining resumes.
Note that this value is specified in terms of the number
of touch frames, so any changes in frame rate should
take this into consideration by raising or lowering this
interval accordingly.
13.3BASEPOSFILTER/BASENEGFILTER
The positive and negative filters act as slew-rate
limiters for a new baseline being applied. For example,
if the new baseline value is larger than the previous by
a value of 35, and the BASEPOSFILTER is set to 20
(default), the new baseline will only be increased by 20.
Use of these registers helps prevent unwanted spikes
in the baseline value.
13.4BASEFILTERTYPE/
BASEFILTERSTRENGTH
Baseline acquisition frames follow the same filter type
and strength parameters as normal acquisition filters,
defined in Section 11.3 “FILTERTYPE/FILTER-
When a gesture is performed, the gesture ID will be
placed in GESTURESTATE, and the GES bit of the
TOUCHSTATE register will be set. Both of these items
are cleared after reading the GESTURESTATE
register. The GESTUREDIAG register contains a code
explaining the logic behind the last operation of the
gesture engine, primarily to help with debugging of the
gesture parameters. These diagnostic codes are
shown in Register 14-2.
TAPHOLDTIME
TAPHOLDTIMEL50
-LRGGESTCHN/A
DS40001750A-page 22 2014 Microchip Technology Inc.
Page 23
MTCH6102
RX0RX8
RX9
RX14
(0,384)
(0,0)
(576,384)
(576,0)
0x41
RIGHT
0x61
LEFT
0x51
UP
0x31
DOWN
REGISTER 14-1:GESTURESTATE: CURRENT GESTURE STATE REGISTER
R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0
GESTURESTATE<7:0>
bit 7bit 0
Legend:
R = Readable bit‘1’ = Bit is setx = Bit is unknown-n = Value after initialization
(default)
W = Writable bit‘0’ = Bit is clearedU = Unimplemented bitq = Conditional
bit 7-0GESTURESTATE<7:0>:
0x00No Gesture Present
0x10Single Click
0x11Click and Hold
0x20Double Click
0x31Down Swipe
0x32Down Swipe and Hold
0x41Right Swipe
0x42Right Swipe and Hold
0x51Up Swipe
0x52Up Swipe and Hold
0x61Left Swipe
0x62Left Swipe and Hold
Please note that the gesture orientations listed in
Register 14-1 are correct for a default layout, with right
moving on increasing X-axis channels, and down
moving on increasing Y-axis channels. These default
orientations are shown in Figure 14-1. Depending on
the application, the host may need to associate the
gesture IDs differently.
R = Readable bit‘1’ = Bit is setx = Bit is unknown-n = Value after initialization
(default)
W = Writable bit‘0’ = Bit is clearedU = Unimplemented bitq = Conditional
bit 7-0GESTUREDIAG<7:0>:
0x01Click Timeout
0x02Swipe Timeout
0x03General Timeout
0x04Click Threshold Exceeded
0x05Swipe Threshold Exceeded
0x06Swipe and Hold Threshold Exceeded
0x07Swipe Opposite Direction Threshold Exceeded
0x08Reserved
0x09Swipe and Hold Value Exceeded
0x0AOutside Swipe Angle
DS40001750A-page 24 2014 Microchip Technology Inc.
Page 25
14.1Gesture Tuning
a
f
e
b
Start
End
g
d
c
h
1
2
i
Legend:
1.HORIZONTALSWIPEDISTANCE/VERTICALSWIPEDISTANCE (a/b): Distance that a touch must move
from the initial touchdown to be considered a swipe.
2.SWIPEHOLDTHRESH (c): Allowed movement in the opposite direction before a swipe is canceled.
3.MINSWIPEVELOCITY (d): Once a movement is classified as a swipe, this distance must be kept frame to
frame before the swipe is classified as a hold (direction of travel is not important).
4.HORITZONTALGESTUREANGLE/VERTICALGESTUREANGLE (f/e): Angle in degrees allowed on
horizontal (X-axis) and vertical (Y-axis) swipe movements. Swipes outside this parameter are detected, but
not reported.
5.SWIPEHOLDBOUNDARY (g): Once a swipe is classified as a hold, movement must not exceed this
parameter in any direction.
6.DISTANCEBETWEENTAPS (h): Distance allowed between two taps to be considered a double click.
7.TAPDISTANCE (i): Even when a sensor is pressed for a very short time (click), multiple frames of touch
data occur. This parameter governs how close those individual touch points must be for a click.
8.TAPHOLDTIME (not shown): Duration of time a click must be held for to be considered a click and hold.
9.GESTURECLICKTIME (not shown): Maximum time between two clicks to be considered a double click.
When modifying sensor configuration parameters, the
CFG bit of the CMD register must be set for the
configuration to take effect. Setting this bit analyzes the
following registers for validity and coerces them if
necessary:
1.IDLEPERIOD/ACTIVEPERIOD
2.FILTERTYPE/FILTERSTRENGTH
3.BASELINEFILTERTYPE/FILTERSTRENGTH
4.NUMBEROFXCHANNELS/NUMBEROFYCHAN-
NELS
Afterwards, the values take effect, and the sensor is
base-lined and ready for use.
Note:If the controller is not in Standby mode
when changing configuration parameters,
unreliable touch data may be generated
until the CFG is set.
Most applications will require custom parameters to be
stored in the configuration RAM. The following
methods are recommended for achieving this:
1.For permanent configuration: Either during
manufacturing test or on first start-up, the host
controller writes all configuration values to the
controller, sets the CFG bit and stores them to
NVRAM by using the NV bit.
2.For configuration on every power-up: The host
writes all configuration data to the controller and
sets the CFG bit on start-up.
DS40001750A-page 26 2014 Microchip Technology Inc.
Page 27
16.0MANUFACTURING TESTING
16.1Automated Manufacturing Test
To start the automated manufacturing test, set the MFG
bit of the CMD register. This test re-purposes the same
RAM used for RAWADC commands to store the
results. When the test is complete, the MFG bit will be
cleared. The results of the manufacturing test are
stored in the registers shown in Tab le 16- 1.
MTCH6102
TABLE 16-1:MFG TEST RX LOOK-UP TABLE
AddressBit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
0XD0
0XD1
0XD2
0XD3
0XD4RX2HRX1HRX0H
0XD5RX2LRX1LRX0L
Note 1:RXnH: Pin was unable to set high and is likely shorted to V
2:RXnL: Pin was unable to set low and is likely shorted to GND.
——RX13H—RX12HRX11HRX10HRX9H
——RX13L—RX12LRX11LRX10LRX9L
——RX8HRX7HRX6HRX5HRX4HRX3H
——RX8LRX7LRX6LRX5LRX4LRX3L
(1,2)
——RX14H——
——RX14L——
DD.
16.2Sensor Integrity Testing
To test the integrity of both the touch sensor and the
overlay for defects, the following test outline is advised:
1.For this test, a way to retrieve data from the
MTCH6102 will be required. This can be either
through a host controller, or the host controller
can conduct the test itself with pre-set test
values.
2.Collect the raw-capacitance values by reading
the RAWVALUES registers under normal
conditions on a set of at least 30 completely
assembled sensors.
3.Use the information collected in step 2 to
determine the variance and average value for
each sensor channel. These values will be used
as the standard by which manufactured sensors
will need to fall within.
4.For each new sensor produced, compare the
RAWVALUES to the range described in step 3.
If the sensor falls out of this range, inspect the
sensor assembly for defects.
5.To test for touch acquisition ability, repeat steps
1-4 with a known touch stimulus applied (e.g.,
simulated metal finger).
The above outline is intentionally generic, as
manufacturing test setup will need to be modified for
every application.
DS40001750A-page 30 2014 Microchip Technology Inc.
Page 31
18.0ELECTRICAL
CHARACTERISTICS
MTCH6102
18.1Absolute Maximum Ratings
Ambient temperature under bias........................................................................................................ -40°C to +85°C
Storage temperature ........................................................................................................................ -65°C to +150°C
Voltage on pins with respect to VSS
on VDD pin ................................................................................................................................. -0.3V to +4.0V
on all other pins................................................................................................................0.3V to (V
Maximum current
out of V
into V
Maximum output current
sunk by any I/O pin ...............................................................................................................................25 mA
sourced by any I/O pin .......................................................................................................................... 25 mA
Note:This device is sensitive to ESD damage and must be handled appropriately. Failure to properly handle and
† NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above those
indicated in the operation listings of this specification is not implied. Exposure above maximum rating conditions for
extended periods may affect device reliability.
SS pin ....................................................................................................................................... 340 mA
DD pin .........................................................................................................................................255 mA
protect the device in an application may cause partial to complete failure of the device.
(†)
DD + 0.3V)
18.2Standard Operating Conditions
The standard operating conditions for any device are defined as:
Supply Current (Full Active, No Frame Rate)0.7—1.17mA
Supply Current (Sleep)<1uA
TABLE 18-2:I/O PORTS
DC CHARACTERISTICSStandard Operating Conditions (unless otherwise stated)
Param.
No.
Sym.CharacteristicMin.Typ.†Max.UnitsConditions
VILInput Low Voltage
I/O PORT:
D030with TTL buffer——0.15 V
D031with Schmitt Trigger buffer——0.2 V
2
with I
C™ levels——0.3 VDDV
with SMBus levels——0.8V2.7V V
D032RESET
, OSC1 (RC mode)——0.2 VDDV
D033OSC1 (HS mode)——0.3 V
V
IHInput High Voltage
DDV1.8V VDD 4.5V
DDV2.0V VDD 5.5V
DD 5.5V
DDV
I/O ports:
D040with TTL buffer0.25 V
D041with Schmitt Trigger buffer0.8 V
2
with I
C levels0.7 VDD——V
with SMBus levels2.1——V2.7V V
D042RESET
D043AOSC1 (HS mode)0.7 V
D043BOSC1 (RC mode)0.9 V
I
ILInput Leakage Current
(2)
DD + 0.8——V1.8V VDD 4.5V
DD——V2.0V VDD 5.5V
DD 5.5V
0.8 VDD——V
DD——V
DD——VNote 1
D060I/O ports—± 5± 125nAVSS VPIN VDD, Pin at
high-impedance at 85°C
D061RESET
(2)
—± 50± 200nAVSS VPIN VDD at 85°C
*These parameters are characterized but not tested.
† Data in “Typ.” column is at 3.0V, 25°C unless otherwise stated. These parameters are for design guidance only
and are not tested.
Note 1:Negative current is defined as current sourced by the pin.
2:The leakage current on the RESET
pin is strongly dependent on the applied voltage level. The specified levels
represent normal operating conditions. Higher leakage current may be measured at different input voltages.
DS40001750A-page 32 2014 Microchip Technology Inc.
Page 33
TABLE 18-2:I/O PORTS (CONTINUED)
DC CHARACTERISTICSStandard Operating Conditions (unless otherwise stated)
MTCH6102
Param.
No.
D070*25100200AV
D080I/O ports——0.6VI
D090I/O portsV
D101*All I/O pins ——50pF
Note 1:Negative current is defined as current sourced by the pin.
Sym.CharacteristicMin.Typ.†Max.UnitsConditions
IPURWeak Pull-up Current
DD = 3.3V, VPIN = VSS
VOLOutput Low Voltage
OL = 6 mA, VDD = 3.3V
I
OL = 1.8 mA, VDD = 1.8V
V
OHOutput High Voltage
DD - 0.7——VIOH = 3 mA, VDD = 3.3V
IOH = 1 mA, VDD = 1.8V
C
IOCapacitive Loading Specs on Output Pins
*These parameters are characterized but not tested.
† Data in “Typ.” column is at 3.0V, 25°C unless otherwise stated. These parameters are for design guidance only
and are not tested.
2:The leakage current on the RESET
represent normal operating conditions. Higher leakage current may be measured at different input voltages.
pin is strongly dependent on the applied voltage level. The specified levels
DS40001750A-page 42 2014 Microchip Technology Inc.
Page 43
MTCH6102
THE MICROCHIP WEB SITE
Microchip provides online support via our WWW site at
www.microchip.com. This web site is used as a means
to make files and information easily available to
customers. Accessible by using your favorite Internet
browser, the web site contains the following
information:
• Product Support – Data sheets and errata,
application notes and sample programs, design
resources, user’s guides and hardware support
documents, latest software releases and archived
software
• General Technical Support – Frequently Asked
Questions (FAQ), technical support requests,
online discussion groups, Microchip consultant
program member listing
• Business of Microchip – Product selector and
ordering guides, latest Microchip press releases,
listing of seminars and events, listings of
Microchip sales offices, distributors and factory
representatives
CUSTOMER CHANGE NOTIFICATION
SERVICE
CUSTOMER SUPPORT
Users of Microchip products can receive assistance
through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor,
representative or Field Application Engineer (FAE) for
support. Local sales offices are also available to help
customers. A listing of sales offices and locations is
included in the back of this document.
Technical support is available through the web site
at: http://microchip.com/support
Microchip’s customer notification service helps keep
customers current on Microchip products. Subscribers
will receive e-mail notification whenever there are
changes, updates, revisions or errata related to a
specified product family or development tool of interest.
To register, access the Microchip web site at
www.microchip.com. Under “Support”, click on
“Customer Change Notification” and follow the
registration instructions.
Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•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.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, K
PICSTART, PIC
and UNI/O are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MTP, SEEVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
Analog-for-the-Digital Age, Application Maestro, BodyCom,
chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O,
Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA
and Z-Scale are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
GestIC and ULPP are registered trademarks of Microchip
Technology Germany II GmbH & Co. KG, a subsidiary of
Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
DS40001750A-page 44 2014 Microchip Technology Inc.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
Page 45
Worldwide Sales and Service
AMERICAS
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://www.microchip.com/
support
Web Address:
www.microchip.com
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Austin, TX
Tel: 512-257-3370
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088