cost-effective touch screen demo - nxp semiconductors · 2014-06-06 · (120 khz) load resistor (22...

29
TM Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008. Cost-Effective Touch Screen Demo Using E-field Sensor MC34940 AC305 June 2007 Edgard Palomera Applications Engineer

Upload: phungnhu

Post on 20-Jun-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Cost-Effective Touch Screen DemoUsing E-field Sensor MC34940AC305

June 2007

Edgard PalomeraApplications Engineer

Page 2: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

2Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Agenda

► IntroductionScope of the Project

► Understanding the Electric Field (E-Field)What is an Electric Field?How Freescale’s E-field Sensor Works?Capacitor Model

► Using Freescale’s Capacitive Technology for Touch ScreensThe Most Commonly Technology used for Touch ScreensCapacitive Touch Sensing TheoryWhy use the E-field Sensor ?Interfacing an ITO Glass with the E-field Sensor MC34940

► Using ITO Glass for Touch ScreensGetting familiar with the ITO GlassFeatures

► Cost-Effective Touch Screen System DesignMC34940 E-field sensor for Touch Screen AppsHardware DesignSoftware Design

► Freescale’s Applications► Implementation

Hardware DescriptionSoftware Description

► Cost-Effective Touch Screen Demonstration► Summary

Page 3: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TMFreescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Introduction

Page 4: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

4Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Scope of the Project

►Convert your old LCD panel into a Touch Screen System.

►Replace the traditional, expensive Touch Screens using our E-field Sensors.

►Eliminate the use of mechanical buttons.

►Cost Effective Solution.

►This Reference Design provides a proof of concept.

Page 5: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TMFreescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Understanding the Electric Field (E-Field)

Page 6: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

6Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

What is an Electric Field?

►A field of force surrounding a charged particle.

►Determines the electric force exerted by a charged particle on all other charged objects in its vicinity.

►Represented by invisible lines between objects at different potentials.

The strength of an E-Field is:

► Proportional to the area of the electrode

► Proportional to the dielectric constant of the material between the electrodes

► Inversely proportional to the distance between the objects

Page 7: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

7Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

How Freescale’s E-field Sensor Works?

►When connected to external Electrodes, an Electric Field is created.

►As the object approaches to the electrode, the E-field is intercepted by the object.

►What kind of materials can be sensed with an E-field Sensor?

• Any object which is somewhat conductive and/or has a different dielectric constant than its surroundings

Page 8: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

8Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

How Freescale’s E-field Sensor Works? (cont.)Drive level ~ 5v p-p Voltage level proportional to 1/C (voltage divider)

Detector

Electrodes

Object

Capacitance increases as electrodes move closer together

Detected signal level decreases with increasing capacitance

Stray variablecapacitance

Low Pass Filter

Capacitor model

Sine generator(120 KHz)

Load resistor(22 K ohms)

Virtual Ground

Page 9: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

9Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Capacitor Model

dAkC 0ε=

C = the capacitance in farads (F)

A = the area of the plates in square meters (m2)

d = the distance between the plates in meters (m)

k = the dielectric constant of the material separating the plates

ε0 = is the permittivity of free space (8.85 x 10-12 F/m)

dk

Page 10: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TMFreescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Using Freescale’s Capacitive Technology for Touch Screens

Page 11: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

11Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

The Most Commonly Technology used for Touch Screens

►How does the resistive touch screens work?

Page 12: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

12Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Capacitive Touch Sensing Theory

How does it work?

Virtual Ground

IFIB

IF = IB

E1

Page 13: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TMFreescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Using ITO Glass for Touch Screens

Page 14: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

14Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Getting familiar with the ITO Glass

►What is an ITO Glass?►Is a glass coated with a transparent

& conductive material named Indium Tin Oxide

ELECTRODES PATTERN

ITO Glass

Page 15: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

15Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

ITO Glass features

►As the thickness of the ITO coating is increased:The coating becomes more conductingThe transmission fallsThe cost risesThe flexibility of the coating reduces.

Things to keep in mind!

For efficient use of ITO and optimum performance the thinnest possible coatings should be used commensurate with the required resistivity.

Page 16: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

16Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Transmission Index

►Optical Transmission of ITO coatings:

Lower Sheet Resistance (Ohms/Square) means Lower Transparency!

Page 17: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

17Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Designing an ITO Glass

►1. ITO shall be transparent, choose appropriate XXX ohm/sq thickness.

►2. Total resistance in each electrode has to be less than 30kohm!

►3. Trace width shall be as thin as possible

►4. Maximize the separation between traces. Trace width shall be equal at all points.

►5. Minimize the trace length between pads and connectors.

►6. Separation between traces shall be equal.

►7. The connection point of a trace to pad does not matter. Connect at a point that suits trace rules 2 - 6.

►NOTE: Rules are listed in order of priority

General Rules & Trade-offs!

TIP…Send the Pattern to the ITO glass manufacturer and ask if they can do the trace routing for you. Remember, the manufacturer has the tools & the experience to comply with your requirements.

Page 18: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

18Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

How can be improved the Transmission Index?

►Ask for this feature to your ITO manufacturer

A Matching Layer is the answer!

Page 19: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

19Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

What is a matching Layer?

►Reflections r1 and r2 are equal and opposite

►Then, it greatly reduces the reflection from the ITO

►As background, most of the transmission loss is due to reflection

►The light is either transmitted, reflected or absorbedTransmission + Reflection + Absorption = 100%

►Absorption is very small , reflection dominates the lossTransmission = 100% - Reflection

Is an Anti Reflection Layer on Top of the ITO

Air

Matching Layer

ITOIf the reflection is reduced,Then the transmission goes up

Page 20: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

20Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Challenges & Limitations

►Supplier’s Capabilities

►Resolution

►Electrodes Pattern (Single Layer)

►Connector Attachment (What’s the best option?)

You can replace resistive touch as long as the application does not require fine resolution such as signature capture.

Page 21: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TMFreescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Cost-Effective Touch Screen System Design

Page 22: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

22Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

MC34940 E-field sensor for Touch Screen Apps

►How can you make this real? ►Using an ITO Glass with our E-field Sensors

PTA1

PTA2

PTA3

ADP4

SPI

BKGD

PTB7

PTB6

BDM

COMM STATE

HEARTBEAT

PTB1STATUS

ColdFire

PTA0BUZZER

MC9S08QG8 MC34940A

LEVEL

B

C

LPCAP

ROSC

VCCCAP

12

VDDCAP

12

12

E1E2E3E4

E5E6E7

SHIELD FLEX CABLE SHIELDING

ITO GLASS

FLEX

CA

BLE

ELECTRODES

Page 23: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

23Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Low Cost Electric Field Sensor MC34940

►Competitive Appliance-Industrial Market Features

The MC34940 is lower cost to serve the appliance and industrial marketsSupports up to 7 ElectrodesSupports up to 28 touch pad sensors w/ 2 way multiplexingLinear and rotational touch pad slidersProximity detectionSupports multifunctional applicationsShield Driver for Driving Remote Electrodes Through Coaxial CableHigh-Purity Sine Wave Generator Tunable with External ResistorResponse Time Tunable with External CapacitorVersatile

– A wide range of objects and materials can be detected– People, metallic and non metallic materials– 3-dimensional position determination

Package: 24-pin SOICWPb-Free and RoHS compliant

Contact and Contact-less

Sensing!

Page 24: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

24Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

MC9S08QG8 features used in this Design

►3 General Purpose I/O for Electrode Selection

►8KB Internal Flash and 512B RAM

►Serial Peripheral Interface for communications with the MCF5329

►1 Analog to Digital Converter (Reads DC Level representation of Capacitive Touch)

►Internal oscillator for processor clock generation

►General Purpose I/O for direct drive of LEDs

Designed to reduce overall systems cost!

Page 25: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

25Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Electrodes Pattern on ITO Glass Used

Indicates area whereITO is present

Black area Indicatesremoval of ITO

Touch Zones

Connector Location

Page 26: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

26Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Cost-Effective Touch Screen Design►System block diagram:

FreescaleMC9S08QG8

8-bit uCBDM

LEDs

FreescaleMC34940E-Field

Power Supplies +12V +5V +3.3V +2.5V +1.5V

FreescaleColdFireMCF532932-bit uC

32MBDDR

SDRAM

16MBNOR

FLASH

16MBNANDFLASH

(OPTIONAL)

Level Shift

Buffer

Level ShiftXcvr

BUZZER

uCReset BDM/JTAG

BacklightInverter

SVGA TFTLCD Panel

USBPowerSwitch

FreescaleMRAM

(OPTIONAL)

FreescaleMC13192U

ZigBeeModule

(OPTIONAL)

4x5KeypadMatrix

USB 2 HostType A

Connector

EthernetPHY

(100Mbps)RJ45

CONN

RS-232Xcvr

DB9CONN

Page 27: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

27Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

ColdFire® MCF5329 features used in the Design

►240 MHz core clock via internal PLL, running at up to 211 MIPS

►LCD Controller for direct interface to an 800 x 600 SVGA Color TFT Display

►Internal hardware accelerated Encryption Module for secure data transmission

►Two USB 1.1 Host interfaces for a Card Reader and Bar Code Scanner

►10/100 Ethernet Controller driving external PHY

►Asynchronous serial interface for an RS232 transceiver

►Serial Peripheral Interface for communications with a Freescale MC9S08QG8

►DDR SDRAM memory controller interface

►Flash memory interface via the FlexBus

►General Purpose I/O for Keypad scan, LEDs, etc.

►PWM output for LCD backlight brightness control

►Freescale MC13192U ZigBee Module

It’s innovation, accelerated!

Page 28: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

28Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.

Cost-Effective Touch Screen

►Demo’s Picture & video link

http://compass.freescale.net/go/170797972

Page 29: Cost-Effective Touch Screen Demo - NXP Semiconductors · 2014-06-06 · (120 KHz) Load resistor (22 K ohms) ... Separation between traces shall be equal. 7. The connection point of

TM

Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2006-2008.