Home Appliances & Utility Group
Download
Report
Transcript Home Appliances & Utility Group
Industrial & Multi-Market Competence Center
ST Solution for Touch Sensing
Overview
Touch Sensing positioning
S-Touch™
RC and CT Firmware for STM8S/L
STM8T14x single key with proximity
Demoboards available on ESICOM
Support request
I&MMCC - April 2010
2
Touch Sensing Positioning
Computer &
Peripherals
Notebook
Printer
Mouse
Keyboard
Monitors
Multimedia Bar
Control Panel
Blinking and
Brightness
Digital
Consumer
Wireless
Communication
Set-Top Box
DVD Player
Digital TV
Digital Camera
Digital Audio
Remote Control
Mobile Phone
PDA
PND
Car Radio
Remote Controller
Control Panel
Wheel
Slider
Blinking and
Brightness
Touch Screen
Touch Keypad
Blinking and
Brightness
I&MMCC - April 2010
Portable
Device
Home
Appliances
MP3 Player
Portable Media
Player
Digital Photo
Frame
Medical Equipment
Touch Screen
Touch Keypad
Blinking and
Brightness
Wheel, Slider
Control Panel
Touch Keypad
Blinking and
Brightness
Wheel, Slider
Air Conditioner
Refrigerator
Microwave Oven
Cooker
White Goods
Food Processor
3
S-Touch™
Port expander with capacitive sensing capability
I&MMCC - April 2010
4
S-Touch™ Technology
S-Touch touch sensing controller implements highly
innovative signal processing techniques to correctly detect,
process and pass the touch information to the main MCU.
Finite State Machine
Patented Techniques
Low Power
Consumption
High Sensitive Level
Small Package Size
I&MMCC - April 2010
5
S-Touch™ Product Roadmap
Capacitive Multi
Touch Screen
Capacitive
Touch Screen
Capacitive Touch Key
Slider & Wheel
Resistive Touch
Screen
2008
2009
I&MMCC - April 2010
2010
6
S-Touch™ Product Portfolio
S-Touch™
Touch Key
Capacitive
Touch Screen
Capacitive
STMPE28M18
STMPE321
STMPE36M28
STMPE632
STMPE821
STMPE1208S
STMPE16M31 More Sensing Channels
STMPE24M31 with Enhanced Features
STMPE16M31PX
With Proximity Sensing
STMPE24M31PX
I&MMCC - April 2010
Resistive
Dual-Touch
Multi-Touch
STMPE811
STMPE610
STMPE812
4 Wire Resistive Touch
Available in 2010
7
Capacitive Touch Key Controllers
STMPE321
Package Size
QFN12
(2.2x1.5 mm)
STMPE821
QFN16
(2.6x1.8 mm)
STMPE1208S
QFN40
(5x5 mm)
1.65 - 1.95 V
2.7 - 3.6 V
2.5 - 5.5 V
No of Sensing
Channels
3
8
12
No of GPIO
Channels
3
8
12
No of PWM
Channels
-
4
-
Slider/Wheel
Capability
Yes
Yes
Yes
Hardware Tuning
Required
Yes
Yes
Yes
Interface Type
I2C
I2C
I2C
40 fF
50 fF
60 fF
No. of Capacitive
Steps
128
128
128
ESD (HBM)
8 kV
8 kV
7 kV
Operating Voltage
Sensitivity
I&MMCC - April 2010
8
STMPE1208S 12-bit Key Controller
Key Features
12 capacitive touch key inputs
12 GPIOs
3.0 - 5.5 V Operating Voltage
Dual Interrupt output pin
I2C interface
7 kV HBM ESD protection
Individually adjustable touch
variance (TVR) setting for all
channels
Adjustable environmental variance
(EVR) for optimal calibration
Package
Data Filtering
12-Input
Capacitive
Sensor
ID_0
ID_1
RESET
T_INT
G_INT
Host I2C
Interface
SCLK
Touch
Key
SDAT
Controller
12Input
GPIO
Clock
QFN40 (5x5 mm)
C_ Ref
Data
Calibration
Control Unit
Power
Management
Voltage
Regulator
Applications
Portable Media Player
Gaming Console
Multimedia Bar (MMB)
Control Panel for TV, LCD monitor
and consumer electronics
I&MMCC - April 2010
VinReg
Vin
9
S-Touch™ Product Evolution
Evolved Products (M-Series)
High Performances Application
Hardware tuning NOT required
4x Better Sensitivity (15fF
Resolution)
Superior Noise Immunity
Embedded Hardware Ratio Engine
Proximity Sensing Capability
Basic Products (x21 Series)
STMPE16/24M31
STMPE16/24M31PX
Portable Application
Moderate Sensitivity & Noise
Immunity
Hardware Tuning Requirement
Basic Slider/Wheel Functionality
STMPE321
STMPE821
STMPE1208S
I&MMCC - April 2010
10
Touch Key Controllers: M31 Series
Single chip solution for highly sensitive and flexible
capacitive sensing capabilities.
Hardware PWM Controller
8 independent PWM controllers
Control up to 16 PWM outputs
Ramping/Blinking capable
Touch-triggered PWM sequence
Capacitive Sensing Engine
15 fF sensitivity with 512 steps
30 pF of auto-tuning
Pseudo-random sampling
Auto calibration with tuning
Fault-tolerant calibration algorithm
Hardware Ratiometric Engine
Supports 2 sliders/wheels with 3-8
STMPE16M31/24M31
sensors each
256 steps resolution per slider/wheel
Reports position and movement
No external computation
I&MMCC - April 2010
11
Capacitive Touch Key Controllers
STMPE16/24M31
Package Size
QFN32
(4x4 mm)
/ QFN40
(5x5 mm)
STMPE16/24M31PX
QFN32
(4x4 mm)
/ QFN40
(5x5 mm)
Operating Voltage
2.7 - 5.5 V
2.7 - 5.5 V
Sensing Channels
16 / 24
16 / 24
No of GPIO
16
16
No of PWM
16
16
Slider/Wheel
Capability
Yes
Yes
Hardware Tuning
Required
No (Auto-Tuning)
No (Auto-Tuning)
Auto-Calibration
Yes
Yes
Interface Type
I2C
I2C
15 fF
15 fF
No. of Capacitive
Steps
512
512
Proximity Sense
No
Yes
8 kV
8 kV
Sensitivity
ESD (HBM)
I&MMCC - April 2010
12
STMPE16/24M31 16-bit Key Controller
PWM
Key Features
PWM
Controller
Capacitive Sensing
Up to 16/24 Capacitive Sensor inputs
Configurable Automatic Impedance Calibration
15 fF resolution, 512 steps with 30 pF Auto-Tuning
2 hardware ratiometric engines
PWM and GPIO
A0
Up to 16 General Purpose Input/Outputs
A1
INT
8 independent PWM controllers,
RST
SCLK
up to 16 PWM outputs
SDAT
12mA sourcing/sinking
on GPIO for LED driving (at 3.3 V VIO)
Others
Operating voltage 1.65-1.95 V (VCC) 2.7-5.5 V (VIO)
I2C interface (Up to 400 KHz). I2C is 3.3 V tolerant.
8 kV HBM ESD protection on all sensing pins
Array
Controller
GPIO
Controller
Capacitance
MUX
Sensor
Host I2C
Interface
Noise Filter
Ratio
Engine
Voltage
Calibration
Power
Regulator Management
Clock
Control Unit
C_
Ref
Vin
VinReg
Package
QFN32 4x4 mm / QFN40 5x5 mm
I&MMCC - April 2010
13
Resistive Touch Screen Controllers
STMPE811
STMPE610
STMPE812
QFN16 (3x3 mm)
QFN16 (3x3 mm)
CSP12 (2.2x1.7 mm)
1.65 - 3.6 V
1.65 - 3.6 V
1.65 - 3.6 V
Touch Screen Controller
Fully Autonomous
Fully Autonomous
Fully Autonomous
Median Averaging Filter
No
No
Yes
Motion Tracking
Yes
Yes
No
Window Masking
Yes
Yes
No
128 level
128 level
1 level
400 KHz I2C
1 MHz SPI
400 KHz I2C
1 MHz SPI
400 KHz I2C
Yes
Yes
Yes
4
4
4
4 GPIO
4 ADC (MUX)
2 GPIO
2 ADC (MUX)
4 GPIO
1 ADC (MUX)
1 PWM (MUX)
Sensitivity Levels
Fixed
Fixed
4 levels
ESD (HBM)
4 kV
4 kV
8 kV
Package Size
Operating Voltage
Data Buffer
Interface
Programmable Settling Time
No of Wires
Extra I/O
I&MMCC - April 2010
14
Advance Features
Motion Tracking
Window Masking
Data Buffer
With Data Buffer
The host may set a value from
4-127 as the distance, from
which the new touch position
must be away from the previous
position, to be considered a
valid new position. This reduces
redundant, nearby data
positions.
The host may define a
rectangle within the full
window, of which, if the
touch position falls
outside of the defined
window, the touch is
simply ignored.
I&MMCC - April 2010
Without Data Buffer
128 sets of data buffer in the touch
screen controller ensures that no data
will be missing, even if the CPU is
busy. Each data buffer contains a 12bit X-coordinate, 12-bit Y-coordinate
and an 8-bit touch pressure.
Interrupt on FIFO full, FIFO empty and
FIFO reaching programmable
threshold.
15
STMPE811 8-GPIOs Screen Controller
Key Features
12-bit ADC for high-resolution
resistive touch screen
1.65 - 3.6 V Operating Voltage
128-depth data buffer
Advance movement tracking to
reduce CPU/Bus utilization
Window-Masking Function
Fast I2C (400 KHz) or SPI (1 MHz)
serial interface
Up to 8 GPIOs
4 Additional ADC inputs
4 kV Contact/15 kV HBM ESD
Protection
MCU
I2C
SDAT,
SCLK
RESET,
INT
4-wire
Resistive Touch
Screen
STMPE811
REF-, REF+,
GPIO Controller
GPIO
RC Oscillator
INT
Driver & Switch
Control Unit
Host
DATA IN
Package
QFN16 (3x3 mm)
A0/DATA OUT
SCLK/CLK
SDAT/CS
I2C/SPI
Touch Screen
Interface
Power Management
Controller
Thermal
VREF
Sense
Vin
I&MMCC - April 2010
16
S-Touch™ Additions in 2010
STMPE28M18
Dual touch capability
Up to 28 capacitive sensing inputs
Configurable automatic calibration
I2C Interface
8 kV HBM ESD protection on all sensing pins
Support gestures such as rotation, zoom in/out and panning
STMPE36M28
True multi-touch capability
Up to 36 capacitive sensing inputs
Touch shape sensing capability
Supports multi touches without “ghosting” effect
STMPE12M31RPX
12 Channel Touch Key Controller with Ratio Proximity Sensor
STMPE12M31MX
12 Channel Touch Key Controller with 6x6 capacitive/mechanical
keypad controller
I&MMCC - April 2010
17
RC & CT Firmware
Library for STM8S/L
I&MMCC - April 2010
18
STM8 Touch Sensing Library 2.x
Updated STM8 touch sensing library revision 2.x
It brings a new acquisition principle to the existing library
The principle is still to provide the source code for free
The license agreement remains the same as previous
version: usage restricted to ST MCUs
The acquisition selection is done using the configuration
file (.h)
Setup file available @
http://www.st.com/mcu
The library is delivered with two configuration file example:
One for RC acquisition, one for the CT acquisition
I&MMCC - April 2010
19
Package contents
The touch sensing library is delivered together with several
packages:
The last revisions of the standard peripheral libraries for
STM8S, STM8L101 and STM8L151
A few examples demonstrating both acquisitions techniques for
each STM8 subfamily supported
RC and CT examples
STM8S and STM8L examples
Buttons and wheels
Evaluation boards firmware
STM8S plug-in board
STM8L151 9 keys + 1 Wheel + 1 slider board
Documentation in windows help format (.chm)
I&MMCC - April 2010
20
Capacitive Sensing Acquisitions Overview
There are many ways to measure capacitance.
ST Firmware is based on the followings:
RC Charging Time
I&MMCC - April 2010
Charge Transfer
21
RC Charging Time Acquisition
Advantages of the RC acquisition:
Available to any STM8S and STM8L product
Almost any IO can be used as electrode
Low cost external components (2 resistors per key)
Simple driven shield implementation
I&MMCC - April 2010
22
RC Charging Time Acquisition Principle
The electrode capacitance is charged through a pull-up resistor or an
internal current source
The time necessary to charge the capacitor from one reference
voltage to another is measured with a timer
The variations of this time is used to detect the finger proximity
untouched
t
I&MMCC - April 2010
23
Charge Transfer Acquisition
Advantages:
Good sensitivity: three channels wheels and sliders possible.
Good immunity to conducted noise
Low cost external components (1 resistors/key + 1capacitor per
group of keys)
Available on STM8L products
Number of touch sensor electrode :
STM8L: up to 6 channels
STM8L15x: up to 16 channels
I&MMCC - April 2010
24
Charge Transfer Acquisition Principle
Charge transfer uses the electrical properties of the capacitor charge Q.
It uses a sampling capacitor (CS) in which the electrode (Cx) charges are
transferred to
Charge Transfer is done through analog switches embedded in STM8L I/O
structure (in “red” in the schematic below).
The operation is repeated N times until the voltage on the sampling capacitor
reaches a given threshold.
The number N of transfer cycles required to reach the threshold represents the
size of Cx. N varies when the electrode is touched.
Cx
Analog switch
CS
I&MMCC - April 2010
25
Charge Transfert Library with STM8L101
x2
To comparator
input
STM8L101
The STM8L101 can handle 2 groups of 3 keys each, for a total of 6 keys.
I&MMCC - April 2010
26
Charge Transfert Library with STM8L151
To ADC
input
x8
STM8L151
The STM8L151 can handle 8 groups of 2 keys each, for a total of 16 keys.
I&MMCC - April 2010
27
STM8T14x
Single key device
With proximity detection
I&MMCC - April 2010
28
STM8T141 key features
Single channel capacitive sensor for touch or proximity detection
Few centimeters detection range (up to 5 cm)
8-pin device in SO8 narrow or UFDFN8 (3*2mm) packages
1 configurable output to report touch or proximity detection
Configurable sensitivity levels (2 for touch + 2 for proximity)
On chip voltage regular and power-on reset (POR)
Built-in driven shield function
Enhance proximity detection and protect sensing electrode from noise
4 selectable power modes
SO8
5x6x 1.75mm
11µA in extreme low power mode, 30µA in run mode
2.9V to 5.5V voltage range
UFDFPN 8
2x3x 0.65mm
Environment compensation filter and automatic calibration
I&MMCC - April 2010
29
STM8T141 Bill of material
Components
C1
Function
Typ. value
Sampling capacitor
C2 + C2’
33nF
VREG capacitor
Comment
COG or better suggested for zoom modes
1µF + 100nF Optional (shorted to VDD with a good supply or ext regulator)
C3
VDD capacitor
1µF
Optional
R1
ESD Protection resistor
2KΩ
Optional
R2
Shield pull-up resistor
100KΩ
Optional
Vin GND
C1
Shield
Sensing
electrode
R1
VSS
OUT
Cs
VDD
Cx
SHLDout
SHLDin
R2
LD
VREG
C2
I&MMCC - April 2010
C2’
C3
Optional
LED
indicator
R
30
STM8T141 Output modes
Active mode
Toggle mode
3s latch mode
30s latch mode
I&MMCC - April 2010
31
Power modes and reaction time
4 Output modes
Normal
Low power with zoom
Extreme low power
with zoom
Extreme low power
2 selectable charge transfer frequency:
125KHz: Optimum power consumption
250KHz: Fast response time
2 selectable conversion time
Fast: 10ms (100Hz)
Slow: 20ms (50Hz)
I&MMCC - April 2010
32
Demoboards
Available in ESICOM
I&MMCC - April 2010
33
STM8T141 Evaluation board
Evaluation kit (STM8T141-EVAL)
Low cost and easy to use tool to demonstrate STM8T141 touch/proximity features
Touch detection
Proximity detection
I&MMCC - April 2010
34
STM8T141 Programming tools
Tools
STVP standard programming tool for product configuration
Specific USB dongle
Socket programming board for SO8,DFN8 and modules
STVP
Socket board
STM8T1X1-SB
Programming dongle
ST-TSLINK
I&MMCC - April 2010
35
Demoboards available in ESICOM
STMPE1208S
NEW
STMPE821
STMPE1208S
NEW
STMPE811
I&MMCC - April 2010
36
Demoboards available in ESICOM
STMPE811
STMPE1208S
STMPE321 Device and Sensor Board
ST7 USB-I2C Interface Board
STMPE321
(not in ESICOM)
I&MMCC - April 2010
37
Library Evaluation boards
STM8L151CxT-TS1 Evaluation Board
10 keys + 1 Wheel + 1 slider
Two-sided PCB with ground shield for better noise
immunity
1 Plexiglas panel (1.5mm thin dielectric)
1 LCD display for Touch Sensing parameters
visualization and modification
1 buzzer
1 SWIM connector for MCU programming &
debugging
1 STM8L pre-programmed device
Board available in September 2010
I&MMCC - April 2010
38