26
© 2008 Microchip Technology Inc. DS41346A PICDEM Touch Sense 1 Development Board User’s Guide

PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Embed Size (px)

Citation preview

Page 1: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

© 2008 Microchip Technology Inc. DS41346A

PICDEM™ Touch Sense 1Development Board

User’s Guide

Page 2: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Note the following details of the code protection feature on Microchip devices:• 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 ourproducts. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such actsallow 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 deviceapplications and the like is provided only for your convenienceand may be superseded by updates. It is your responsibility toensure that your application meets with your specifications.MICROCHIP MAKES NO REPRESENTATIONS ORWARRANTIES OF ANY KIND WHETHER EXPRESS ORIMPLIED, WRITTEN OR ORAL, STATUTORY OROTHERWISE, RELATED TO THE INFORMATION,INCLUDING BUT NOT LIMITED TO ITS CONDITION,QUALITY, PERFORMANCE, MERCHANTABILITY ORFITNESS FOR PURPOSE. Microchip disclaims all liabilityarising from this information and its use. Use of Microchipdevices in life support and/or safety applications is entirely atthe buyer’s risk, and the buyer agrees to defend, indemnify andhold harmless Microchip from any and all damages, claims,suits, or expenses resulting from such use. No licenses areconveyed, implicitly or otherwise, under any Microchipintellectual property rights.

DS41346A-page ii

Trademarks

The Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

FilterLab, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.

Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM, PICDEM.net, PICtail, PIC32 logo, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, UNI/O, WiperLock and ZENA 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.

All other trademarks mentioned herein are property of their respective companies.

© 2008, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.

Printed on recycled paper.

© 2008 Microchip Technology Inc.

Microchip received ISO/TS-16949:2002 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® MCUs and dsPIC® DSCs, KEELOQ® code hopping 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.

Page 3: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM TOUCH SENSE 1DEVELOPMENT BOARD

USER’S GUIDE

Table of Contents

Chapter 1: Chapter 1. Introduction1.1 Introduction ..................................................................................................... 51.2 Highlights ........................................................................................................ 51.3 PICDEM™ Touch Sense 1 Development Kit Contents .................................. 51.4 PICDEM™ Touch Sense 1 Development Board Construction and Layout .... 51.5 mTouch™ Diagnostic Tool Overview ............................................................. 7

Chapter 2: Chapter 2. Getting Started2.1 Introduction ..................................................................................................... 82.2 Highlights ........................................................................................................ 82.3 Installing the mTouch™ Software Development Kit (SDK) and mTouch™

Diagnostic Tool ......................................................................................... 82.4 Using The PICDEM™ Touch Sense and mTouch™ Diagnostic Tool ............ 8

Chapter 3: Chapter 3. Troubleshooting3.1 Introduction ................................................................................................... 163.2 Highlights ...................................................................................................... 163.3 Common Problems ....................................................................................... 16

Appendix A. Hardware SchematicsA.1 Introduction .................................................................................................. 18

© 2008 Microchip Technology Inc. DS41346A-page iii

Page 4: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM TOUCH SENSE 1DEVELOPMENT BOARD

USER’S GUIDE

Preface

INTRODUCTIONThis chapter contains general information that will be useful to know before using the PICDEMTM Touch Sense 1 Development Board. Items discussed in this chapter include:• Document Layout• Conventions Used in this Guide• Recommended Reading• The Microchip Web Site• Customer Support• Document Revision History

DOCUMENT LAYOUTThis document describes how to use the PICDEMTM Touch Sense 1 Development Board as a development tool to emulate and debug firmware. The manual layout is as follows:• Chapter 1. “Introduction”• Chapter 2. “Getting Started”• Chapter 3. “Troubleshooting”• Appendix A. “Hardware Schematics”

NOTICE TO CUSTOMERS

All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available.

Documents are identified with a “DS” number. This number is located on the bottom of each page, in front of the page number. The numbering convention for the DS number is “DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the document.

For the most up-to-date information on development tools, see the MPLAB® IDE on-line help. Select the Help menu, and then Topics to open a list of available on-line help files.

© 2008 Microchip Technology Inc. DS41346A-page 1

Page 5: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

CONVENTIONS USED IN THIS GUIDEThis manual uses the following documentation conventions:

DOCUMENTATION CONVENTIONSDescription Represents Examples

Arial font:Italic characters Referenced books MPLAB® IDE User’s Guide

Emphasized text ...is the only compiler...Initial caps A window the Output window

A dialog the Settings dialogA menu selection select Enable Programmer

Quotes A field name in a window or dialog

“Save project before build”

Underlined, italic text with right angle bracket

A menu path File>Save

Bold characters A dialog button Click OKA tab Click the Power tab

N‘Rnnnn A number in verilog format, where N is the total number of digits, R is the radix and n is a digit.

4‘b0010, 2‘hF1

Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>Courier New font:Plain Courier New Sample source code #define START

Filenames autoexec.bat

File paths c:\mcc18\h

Keywords _asm, _endasm, static

Command-line options -Opa+, -Opa-

Bit values 0, 1

Constants 0xFF, ‘A’

Italic Courier New A variable argument file.o, where file can be any valid filename

Square brackets [ ] Optional arguments mcc18 [options] file [options]

Curly brackets and pipe character: { | }

Choice of mutually exclusive arguments; an OR selection

errorlevel {0|1}

Ellipses... Replaces repeated text var_name [, var_name...]

Represents code supplied by user

void main (void){ ...}

DS41346A-page 2 © 2008 Microchip Technology Inc.

Page 6: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Preface

RECOMMENDED READINGThis user’s guide describes how to use the PICDEMTM Touch Sense 1 Development Board. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.Readme FilesFor the latest information on using other tools, read the tool-specific Readme files in the Readmes subdirectory of the MPLAB IDE installation directory. The Readme files contain update information and known issues that may not be included in this user’s guide.Design CenterMicrochip has a capacitive touch design center which can be found on www.microchip.com/mtouch.The following Microchip Application Notes are available and recommended as supplemental reference resources.AN1101, “Introduction to Capacitive Sensing” (DS01101)AN1102, “Layout and Physical Design Guidelines for Capacitive Sensing” (DS01102)AN1103, “Software Handling for Capacitive Sensing” (DS01103)AN1104, “Capacitive Multibutton Configurations” (DS01104)“PICkit™ Serial Analyzer User’s Guide” (DS51647)“PICkit™ 2 User’s Guide” (DS51553)Webseminar, “Introduction to mTouch™ Capacitive Touch Sensing”Webseminar, “Capacitive mTouch™ Sensing Solutions: Design Guidelines”

THE MICROCHIP WEB SITEMicrochip provides online support via our web 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 (FAQs), 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

© 2008 Microchip Technology Inc. DS41346A-page 3

Page 7: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

CUSTOMER SUPPORTUsers of Microchip products can receive assistance through several channels:• Distributor or Representative• Local Sales Office• Field Application Engineer (FAE)• Technical SupportCustomers 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://support.microchip.com

DOCUMENT REVISION HISTORY

Revision A (February 2008)• Initial Release of this Document.

DS41346A-page 4 © 2008 Microchip Technology Inc.

Page 8: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM TOUCH SENSE 1DEVELOPMENT BOARD

USER’S GUIDE

Chapter 1. Introduction

1.1 INTRODUCTIONThe PICDEM™ Touch Sense 1 Development Board and Diagnostic Tool provide a plat-form that introduces users to Microchip’s Capacitive Touch Sensing Technology. An alternative to traditional mechanical push buttons, this system is completely sealed and has no mechanical components that will wear with time. Furthermore, the shape of the buttons is not critical, allowing designers the ability to add aesthetic diversity to their design. Most importantly, Microchip offers a royalty-free license along with a multitude of resources to aid in the development of your own mTouch™ applications.The PICDEM™ Touch Sense 1 Development Board comes pre-programmed with a demonstration application to ease the user into Capacitive Touch Sensing using all of the board’s features. For advanced users comfortable with the core concepts, the two onboard PIC™ Microcontrollers (MCUs) can be reprogrammed using a PICkit™ 2 programmer. The accompanying CD-ROM includes resource documentation such as a detailed description of the mTouch technology along with reference designs.

1.2 HIGHLIGHTSThis chapter discusses:• PICDEM™ Touch Sense 1 Development Kit Contents• PICDEM™ Touch Sense 1 Development Board Construction and Layout• mTouch™ Diagnostic Tool Overview

1.3 PICDEM™ TOUCH SENSE 1 DEVELOPMENT KIT CONTENTSThe PICDEM™ Touch Sense 1 Development Kit contains the following items:1. The PICDEM™ Touch Sense 1 Development Board2. PICkit™ Serial Analyzer3. USB cable4. CD-ROM including:

• mTouch™ Diagnostic Tool Software• Application Notes• Code Module Library• Reference Designs

1.4 PICDEM™ TOUCH SENSE 1 DEVELOPMENT BOARD CONSTRUCTION AND LAYOUT

The PICDEM™ Touch Sense 1 Development Board is constructed using a two layer sandwich assembly. The bottom layer is the Printed Circuit Board (PCB) which holds all the electronic components as well as the touch sensors themselves (see Figure 1-1 and Figure 1-2).

© 2008 Microchip Technology Inc. DS41346A-page 5

Page 9: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Introduction

FIGURE 1-1: PICDEM™ TOUCH SENSE 1 DEVELOPMENT BOARD (TOP) WITHOUT SILK-SCREENED COVER PLATE

FIGURE 1-2: PICDEM™ TOUCH SENSE 1 DEVELOPMENT BOARD (BOTTOM)

Notice that all electronic components such as LEDs, PIC® Microcontrollers (MCUs) and multiplexer ICs are mounted on the bottom side of the board to create a flat surface to accommodate the top layer. A clear acrylic cover plate with a decorative silk screen is mounted over the PCB using a double-sided adhesive tape (see Figure 1-3).

Legend:1. Directional Pad PICkit™ 2

Programmer connector2. Keypad/Slider PICkit™ 2

Programmer connector3. PICkit™ Serial Analyzer

connector4. Standby button5. Directional Pad6. Keypad7. Slider

1 2 34

5 67

Legend:1. PIC16F677 (controls

Directional Pad)2. PIC16F877 (controls

Slider and Keypad)3. Mini-B USB Port

connector4. LEDs

1 23

4

© 2008 Microchip Technology Inc. DS41346A-page 6

Page 10: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Introduction

FIGURE 1-3: ASSEMBLED PICDEM™ SENSE 1 DEVELOPMENT BOARD (TOP)

The PICDEM™ Touch Sense 1 Development Board features three styles of touch sensor pad configurations to optimize the design process:• Directional pad• Keypad • Slider The PICDEM™ Touch Sense 1 Development Board comes populated with a 20-pin PIC16F677 MCU and a 44-pin PIC16F887 MCU each with its own dedicated PICkit™ 2 Programmer Connector (see Figure 1-3). Each PIC MCU comes factory programmed with demonstration firmware and controls its own unique section of the PICDEM™ Touch Sense 1 Development Board. The PIC16F677 MCU is dedicated to the Directional Pad while the PIC16F887 MCU to both the Keypad and Slider. I2C™ serial communication between both MCUs is made possible using on-chip Master Synchronous Serial Port (MSSP) peripherals.A PICkit™ Serial Connector is included to enable communication with the PICDEM™ Touch Sense 1 Development Board using the mTouch Diagnostic Tool.

1.5 mTouch™ DIAGNOSTIC TOOL OVERVIEWThe mTouch™ Diagnostic Tool is a Windows® based application that provides an intu-itive means of analyzing a capacitive system. The mTouch Diagnostic Tool provides communication with the PICDEM™ Touch Sense 1 Development Board via the PICKit™ Serial Analyzer using the I2C protocol. Application critical information such as Trip threshold and acceptable hysteresis signaling a sensor touch can easily be determined by visualizing sensor behavior.

Legend:1. Directional Pad PICkit™

2 Programmer connec-tor (PIC16F677)

2. Keypad/Slider PICkit™ 2 Programmer connector (PIC16F887)

3. PICkit™ Serial Analyzer connector

4. Standby button5. Directional Pad6. Keypad7. Slider

1 2 34

5 67

© 2008 Microchip Technology Inc. DS41346A-page 7

Page 11: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM TOUCH SENSE 1DEVELOPMENT BOARD

USER’S GUIDE

Chapter 2. Getting Started

2.1 INTRODUCTIONThis section provides an introduction to the PICDEM™ Touch Sense 1 Demonstration Board and mTouch™ Diagnostic Tool using the demonstration application firmware pre-programmed on the PIC® MCUs that populate the board. A more detailed discus-sion on the mTouch technology is provided in the mTouch™ User’s Guide (DS41328) that can be found on the accompanying CD-ROM.

2.2 HIGHLIGHTSThis chapter discusses:• Installing the mTouch Software Development Kit and Diagnostic Tool• Using the PICDEM Touch Sense 1 and mTouch Diagnostic Tool

2.3 INSTALLING THE mTouch™ SOFTWARE DEVELOPMENT KIT (SDK) AND mTouch™ DIAGNOSTIC TOOL

Insert the PICDEM™ Touch Sense 1 CD-ROM into the CD-ROM drive. Browse to the CD-ROM directory and select setup.exe to install the Diagnostic Tool.The mTouch™ SDK contains application notes related mTouch™, documentation such as the mTouch™ Users Guide, example designs and the mTouch™ Diagnostic Tool. A working directory is generated during installation that will contain files associated with the mTouch diagnostic tool. This directory can be accessed in C:\Program Files\Microchip\mTouch.

2.4 USING THE PICDEM™ TOUCH SENSE AND mTouch™ DIAGNOSTIC TOOL

2.4.1 Target PowerThe PICDEM™ Touch Sense 1 Demonstration Board can be powered in one of three ways:• The included USB cable connected to the USB Mini-B connector input provides

power from a PC USB port. Note that this connection does not allow for any communication.

• A PICkit™ 2 Programmer connected to any one of the two PICkit™ 2 Programmer connectors.

• A PICkit™ Serial Analyzer connected to the of the PICkit™ Serial Analyzer connector.

This Getting Started Guide will use power provided by the PICkit™ Serial Analyzer.

2.4.2 Connecting the PICDEM™ Touch Sense 1 Demonstration BoardEnsure that the PICDEM™ Touch Sense 1 Demonstration Board is sitting on a flat non-conductive surface. Connect the PICKit™ Serial Analyzer to the PICDEM™ Touch Sense 1 Demonstration Board and then to an available USB port on your PC as shown in Figure 2-2.

© 2008 Microchip Technology Inc. DS41346A-page 8

Page 12: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

FIGURE 2-1: CONNECTING THE PICDEM TOUCH SENSE 1 DEMONSTRATION BOARD

2.4.3 Starting the mTouch Diagnostic ToolStart the mTouch Diagnostic Tool by selecting Start>Programs>Microchip>mTouch. The mTouch Diagnostic Tool main window and Board Selection window should appear as shown in Figure 2-2.

FIGURE 2-2: BOARD SELECTION AND mTOUCH DIAGNOSTIC TOOL WINDOWS

Notice that the PICDEM™ Touch Sense 1 Demonstration Board is powered. All touch pad areas should now be functional with the associated LED lighting when a pad is touched. Also note that the individual touch pad activated is highlighted in both the Board Selection and mTouch Diagnostic Tool windows.

To PC USB Port

DS41346A-page 9 © 2008 Microchip Technology Inc.

Page 13: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Getting Started

2.4.4 Board SelectionThe Board Selection window allows user selection of three different board styles:• PICDEM™ Touch Sense 1 Demonstration Board• 4-Button Demonstration Board• Custom board Ensure that the PICDEM™ Touch Sense 1 Demonstration Board is selected as shown in Figure 2-3.

FIGURE 2-3: BOARD SELECTION TAB

Each touch pad section on the PICDEM™ Touch Sense 1 Demonstration Board is represented in the Board Selection window as shown in Figure 2-4.

FIGURE 2-4: BOARD SELECTION WINDOW TOUCH PAD SELECTION

Board Selection Tab

© 2008 Microchip Technology Inc. DS41346A-page 10

Page 14: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

2.4.5 mTouch Diagnostic Tool Main WindowSelecting a touch pad section on the Board Selection window updates the main mTouch Diagnostic Tool window displaying gauges for individual touch pads in that section as shown in Figure 2-5.

FIGURE 2-5: mTOUCH DIAGNOSTIC TOOL DISPLAY AND ASSOCIATED PAD WITH KEYPAD SECTION SELECTED IN BOARD SELECTION WINDOW

Individual gauge names can be altered from the default by clicking in the name window directly beneath the gauge.Select the Keypad section of the PICDEM™ Touch Sense 1 Board in the Board Selection window. Touching the different touch pad sections, you should notice that only the Keypad in the Board Selection window shows activity. This confirms that the Demonstration Firmware Application is polling only the Keypad section and ignores the Directional Pad and Slider.

DS41346A-page 11 © 2008 Microchip Technology Inc.

Page 15: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Getting Started

2.4.6 mTouch Diagnostic Tool Window Configuration In the mTouch Diagnostic Tool window, select Settings. The Settings window shown in Figure 2-6 should now display.

FIGURE 2-6: SETTINGS WINDOW

In the Settings window change the value in the Global Limit window to 20000 and press the Save Settings Now button. The mTouch Diagnostic Tool window gauges should now all be scaled to a maximum upper limit of 20000 counts.Deselect the Enable Polling feature in the Settings window to disable software polling of the individual Keypad Keys. Touching the Keypad now has no effect on the individual gauges in the mTouch Diagnostic Tool window. Select Enable Polling once again. The Settings window also allows the user to save settings for the next time the tool is used.Alternately, the AutoScale button found at the top of the mTouch Diagnostic Tool window can be used to scale both Upper and Lower Limits based on current average values.

2.4.7 mTouch Diagnostic Tool GaugesEach touch pad (Key ‘0’ shown) on the PICDEM Touch Sense 1 Board is represented by its own individual gauge in the mTouch Diagnostic Tool window. This adjustable gauge can be used to either analyze and/or change functional characteristics of the associated pad as shown in Figure 2-7.

FIGURE 2-7: GAUGE INFORMATION FOR KEYPAD KEY ‘0’

Guard Band (Blue)

Relaxation Oscillator Frequency

Running Average(cumulative reading)

Running Average (Orange)

Trip Level (Green)

Raw data (instantaneous reading)

Key being gauged Band (Blue)

© 2008 Microchip Technology Inc. DS41346A-page 12

Page 16: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

Guard Band and Trip Level parameters are easily changed by sliding their associated pointers up and down the gauge. The Guard Band provides a range of raw data values that will be included into the averaging algorithm of the demonstration software. Any raw data value below the Guard Band is not included. More information on software algorithms and other mTouch Technology related topics can be found in the mTouch User’s Guide on the accompanying CD-ROM following installation of the mTouch SDK).

2.4.8 Individual Gauge Configuration Using the Setup WindowAlternately, gauges can be configured using the Setup window. Click on the gauge associated with Key ‘0’ to open the Gauge Setup window shown in Figure 2-8.

FIGURE 2-8: KEY ‘0’ SETUP WINDOW

The Setup window allows customization of a particular gauge by numerically adjusting parameters such as Guard Band and Trip Level. Additionally, auxiliary pointers can be added to the gauge for other user determined references. The scale section of the window provides individual gauge scaling of both Upper (UL) and Lower Limits (LL) or by using the AutoScale button.

2.4.9 Charting Raw Data using the Chart WindowClick on the Chart button within the Setup window. The Chart window shown in Figure 2-9 should now be open.

FIGURE 2-9: CHART WINDOW FOR KEY ‘0’

Adjusts Window Resolution

Clear Chart Data

Adjusts Window Resolution

Start/Stop Data Collection

Average Value Key Touch

DS41346A-page 13 © 2008 Microchip Technology Inc.

Page 17: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Getting Started

The Chart window provides a visualization of the raw data for a particular touch pad as a function of time. Pressing Key ‘0’ on the PICDEM Touch Sense 1 Board will cause the data line to dip providing that parameters are set accordingly as shown in Figure 9. The resulting data can be stored as a .txt file within the working directory C:\Program Files\Microchip\mTouch and used for analytical purposes in such spreadsheet programs as Excel. To stop recording data from the pad, deselect the check box next to Run. The Clear button clears the data in the window. Chart resolution can also be configured by changing the Num Points box value.

2.4.10 Directional Pad and SliderThe preceding Getting Started guide demonstrated use of the keypad. These same concepts and tools are applicable to the Directional Pad and Slider. The user is encouraged to complete the Getting Started guide for both these sections as well.

© 2008 Microchip Technology Inc. DS41346A-page 14

Page 18: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

NOTES:

DS41346A-page 15 © 2008 Microchip Technology Inc.

Page 19: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM TOUCH SENSE 1DEVELOPMENT BOARD

USER’S GUIDE

Chapter 3. Troubleshooting

3.1 INTRODUCTIONThis chapter describes common problems when using the PICDEM Touch Sense 1 Development Board and their solutions.

3.2 HIGHLIGHTSHighlights covered in this chapter:

• Common Problems

3.3 COMMON PROBLEMS

3.3.1 PICkit™ Serial Analyzer could not be foundQuestion:I am receiving the error message, “PICkit™ Serial Analyzer could not be found” in the Transactions window, but the PICkit™ Serial Analyzer is plugged in. What is wrong?Answer:Open the Windows® operating system Device Manager by clicking on Control Panel > System, selecting the Hardware tab and clicking on Device Manager button. Check if there is an error displayed under Human Interface Devices as shown in Figure 13-1. If an error is displayed, try unplugging and then re-plugging the USB cable until the error goes away (this may take 3 or 4 tries).If the error persists, try another USB port or hub. Try plugging the PICkit™ Serial Analyzer into another computer to verify that the USB port is working.

3.3.2 Current Limit ExceededQuestion:I received the error message “USB Hub Current Limit Exceeded” from the Windows® operating system. What is wrong?Answer:The USB port current limit is set to 100 mA. If the target device plus PICkit™ Serial Analyzer exceeds this current limit, the USB port will shut down. Check for shorts. The target device can be externally powered if more power is needed.

3.3.3 Microsoft® Windows® 98 SEQuestion:After plugging the PICkit™ Serial Analyzer into the USB port, Windows® 98 SE asks for a driver. Where is the driver?

© 2008 Microchip Technology Inc. DS41346A-page 16

Page 20: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Troubleshooting

Answer:The PICkit™ Serial Analyzer uses the Human Interface Device (HID) driver included with the Windows® Operating System. When Windows® 98 SE prompts for a driver, select “Search for the best driver for your device.” Then select the check box next to “Microsoft Windows Update” and click Next. Windows will automatically install the appropriate driver. Do not use Microchip’s MPLAB® ICD 2 USB driver.

3.3.4 Microsoft® Windows® 95/98/NTQuestion:Can I run on Windows® 95/98/NT?Answer:No. These operating systems either do not support USB or have drivers that are not compatible.

3.3.5 Can’t get projects to runThe projects are for use with the PICkit 2 and are compiled with the HI-TECH™ C compiler.

© 2008 Microchip Technology Inc. DS41346A-page 17

Page 21: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM TOUCH SENSE 1DEVELOPMENT BOARD

USER’S GUIDE

Appendix A. Hardware Schematics

A.1 INTRODUCTIONThis appendix contains the PICDEM System Management Board hardware diagrams.

FIGURE A-1: SCHEMATIC SHEET 1 – DIRECTIONAL PAD

RO

T1_2

RO

T1_3

RO

T1_1

RO

T1_1

VD

D

EA

ST

WE

ST

NO

CO

NN

EC

TR

OT1

_0

GN

DV

DD

RO

T1_0

RO

T1_2

RO

T1_3

RO

T1_0

VD

D

VD

D

C2O

UT

T1C

KI

VD

DC2+

VD

D

U4_

MC

LR

EA

ST

100n

FC6

VD

DV

DD

R40

100K

NO

RTH

WE

ST

NO

RTH

SO

UTH

SO

UTH

EA

ST

NO

RTH

WE

ST

RO

T1_2

U4_

MC

LR

SC

L

RO

T1_3

NO

RTH

EA

ST

GN

D

475

R23

475

R34

475

R19

475

R20

SO

UTH

WE

ST

WE

ST

R31

100K

R33

100K

R41

100K

SO

UTH

SO

UTH

EA

ST

475

R36

475

R35

VD

D

475

R21

VD

D

475

R22

RO

T1_1

SD

AN

OR

TH

EA

ST

RO

T1_0

D20

YE

L

D24

YE

L

D19

GR

N

D23

GR

N

R32

100K

VD

D

D21

GR

N

D25

GR

N

VD

D

D22

YE

L

D26

YE

L

100n

FC7

6T1

G

3V

SS

1V

PP

2V

DD

4IC

SP

DAT

5IC

SP

CLK

NO

RTH

EA

ST

SO

UTH

WE

ST

10R

B7

7R

C3

4M

CLR

1V

DD

11R

B6

14R

C2

17R

A2

20V

SS

65R

C5

15R

C1

16

3O

SC

2

2 8R

C6

9R

C7

18R

A1

19R

A0

12R

B5

13R

B4

U4

PIC

kit™

2PIC

kit™

2 P

rogr

amH

eade

r for

U4

PIC

16F6

77

© 2008 Microchip Technology Inc. DS41346A-page 18

Page 22: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

FIGURE A-2: SCHEMATIC SHEET 2 – KEYPAD AND SLIDER

79

-

41

63

RC6

SDARD3

ICSPDATARD1MCLRRD0

RA1RA2RC1

BTN

_7

SLI

DE

_6

SLI

DE

_5

BTN

_88

S1

BTN

_9

BTN

_7

BTN

_6

SLI

DE

_2

SLI

DE

_3

SLI

DE

_4

S1

PW

R

MU

X_S

ELS0

RD

4P

WR

B4

BTN

_4

BTN

_1

SLI

DE

_4

R30

10K

MU

X_S

EL

SLI

DE

_3

RA

1

0B

TN_0

BTN

_552

BTN

_2

S2

S0

VD

D

BTN

_6

BTN

_3

VD

D

+

BTN

_5G

ND

BTN

_4

RA

1

SLI

DE

_1

SLI

DE

_5

SLI

DE

_6

S2

S0VD

D

VD

D

VD

D

100n

FC1

S1

VD

D S2

GN

D

RD

5

RC

7

RD

6

RC5

VD

D

ICSPCLK

PWRSCL

RD2

68.1

K

R27

RA

1

VD

D

B7

B1

6T1

G

3V

SS

1V

PP

2V

DD

4IC

SP

DAT

5IC

SP

CLK

VD

D

R38

10K

68.1

K

R26

-+B

Z1

VD

D

SLI

DE

_2

SLI

DE

_1

ICS

PD

ATA

MC

LR

BTN

_3

BTN

_2

SD

A

RA

2

RE

1

GN

D

B0

B5

B6

BTN

_9B

TN_8

VD

D100n

FC

4

ICS

PC

LK

VD

D

NO

CO

NN

EC

T

GN

D

B16

BTN

_1B

TN_010

0nF

C3

VD

D

SC

L

GN

D

VD

D

100n

FC5

100K

R25

VD

D

100n

FC

2

RE

0

RE

2V

DD

RA

6R

A7

B8

B9

B2

B3

R29

10K

10G

ND

7E

1

4A

CO

M

1A

4

11LE

14N

C

17A

0

20V

CC

9V

EE

8E

2

2A

63

NC

5A

76

A5

13S

112

S2

19A

218

A1

16A

315

S0

U3

74H

C43

51R

2810

K

10G

ND

7E

1

4A

CO

M

1A

4

11LE

14N

C

17A

0

20V

CC

9V

EE

8E

2

2A

63

NC

5A

76

A5

13S

112

S2

19A

218

A1

16A

315

S0

U2

74H

C43

51

R24 300K

R39

10K

VD

D

S

D

G

Q1

B11

B12

B13

MU

X_S

EL B

10

B14

B15

6S

DO

/RX

3V

SS

2V

DD

1C

S/T

X

4S

DA

/SD

I5

SC

L/S

CK43 RC5

40 RD2

37 RC3

34 NC

13NC

16RB6

19RA0

22RA3

7V

DD

4R

D6

1R

C7

24R

A5

27R

E2

30O

SC

1

33N

C

5R

D7

6V

SS

44 RC6

39 RD138 RD0

23R

A4

28V

DD

29V

SS

2R

D4

3R

D5

8R

B0

9R

B1

12NC

17RB718MCLR

25R

E0

26R

E1

31O

SC

2

32R

C0

10R

B2

11R

B3

42 RC441 RD3

36 RC235 RC1

14RB415RB5

21RA2

20RA1

U1

PIC

16F8

87/P

T

PIC

kit™

Ser

ial

Hea

der

PIC

kit™

Ser

ial

PIC

kit™

2 P

rogr

amH

eade

r for

U1

PIC

kit™

2

DS41346A-page 19 © 2008 Microchip Technology Inc.

Page 23: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

Hardware Schematics

FIGURE A-3: SCHEMATIC SHEET 3 – LEDS

SLI

DE

5

RC

6

475

R13

RE

0

475

R1RD

0VD

D

475

R8

SLI

DE

4

RC

7

475

R14

RD

3

475

R7

RA

7

475

R4

VD

D

SLI

DE

2

RD

5

475

R16

BU

TTO

N 9

RE

1

475

R2

BU

TTO

N 4

RD

1VD

D

475

R9

SLI

DE

1

RD

6

475

R17

RE

2

475

R3

RC

1VD

D

475

R6

C8

10uF

VD

DV

DD

D13

YE

L

VD

D

VD

D

D14

GR

N

VD

D

D2

RE

D

VD

DV

DD

D16

GR

NVD

D

D9

RE

D

VD

D

D17

GR

NVD

D

SLI

DE

6S

LID

E 3

RD

4R

C5

475

R12

475

R15

BU

TTO

N 8

BU

TTO

N 6

BU

TTO

N 7

RD

2

475

R10

BU

TTO

N 3

BU

TTO

N 1

BU

TTO

N 2

RA

6

VD

D

475

R5

C9

.1uFVD

D

D7

RE

DD

1R

ED

D10

RE

D

D12

RE

DD

15G

RN

VD

D

D4

RE

DD

8R

ED

D5

RE

D

4N

C

1V

US

B2

D-

3D

+

5G

ND

US

B

BU

TTO

N 0

BU

TTO

N 5

D3

RE

DD6

RE

D

© 2008 Microchip Technology Inc. DS41346A-page 20

Page 24: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

PICDEMTM Touch Sense 1 Development Board User’s Guide

NOTES:

DS41346A-page 21 © 2008 Microchip Technology Inc.

Page 25: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

© 2008 Microchip Technology Inc. DS41346A-page 22

PICDEM™ Touch Sense 1 Development Board User’s Guide

NOTES:

Page 26: PICDEM Touch Sense 1 Development Board User’s Guideww1.microchip.com/downloads/en/DeviceDoc/41346A.pdf · 1.3 PICDEM™ Touch Sense 1 Development Kit Contents ... PICDEMTM Touch

DS41346A-page 23 © 2008 Microchip Technology Inc.

AMERICASCorporate Office2355 West Chandler Blvd.Chandler, AZ 85224-6199Tel: 480-792-7200 Fax: 480-792-7277Technical Support: http://support.microchip.comWeb Address: www.microchip.comAtlantaDuluth, GA Tel: 678-957-9614 Fax: 678-957-1455BostonWestborough, MA Tel: 774-760-0087 Fax: 774-760-0088ChicagoItasca, IL Tel: 630-285-0071 Fax: 630-285-0075DallasAddison, TX Tel: 972-818-7423 Fax: 972-818-2924DetroitFarmington Hills, MI Tel: 248-538-2250Fax: 248-538-2260KokomoKokomo, IN Tel: 765-864-8360Fax: 765-864-8387Los AngelesMission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608Santa ClaraSanta Clara, CA Tel: 408-961-6444Fax: 408-961-6445TorontoMississauga, Ontario, CanadaTel: 905-673-0699 Fax: 905-673-6509

ASIA/PACIFICAsia Pacific OfficeSuites 3707-14, 37th FloorTower 6, The GatewayHarbour City, KowloonHong KongTel: 852-2401-1200Fax: 852-2401-3431Australia - SydneyTel: 61-2-9868-6733Fax: 61-2-9868-6755China - BeijingTel: 86-10-8528-2100 Fax: 86-10-8528-2104China - ChengduTel: 86-28-8665-5511Fax: 86-28-8665-7889China - Hong Kong SARTel: 852-2401-1200 Fax: 852-2401-3431China - NanjingTel: 86-25-8473-2460Fax: 86-25-8473-2470China - QingdaoTel: 86-532-8502-7355Fax: 86-532-8502-7205China - ShanghaiTel: 86-21-5407-5533 Fax: 86-21-5407-5066China - ShenyangTel: 86-24-2334-2829Fax: 86-24-2334-2393China - ShenzhenTel: 86-755-8203-2660 Fax: 86-755-8203-1760China - WuhanTel: 86-27-5980-5300Fax: 86-27-5980-5118China - XiamenTel: 86-592-2388138 Fax: 86-592-2388130China - XianTel: 86-29-8833-7252Fax: 86-29-8833-7256China - ZhuhaiTel: 86-756-3210040 Fax: 86-756-3210049

ASIA/PACIFICIndia - BangaloreTel: 91-80-4182-8400 Fax: 91-80-4182-8422India - New DelhiTel: 91-11-4160-8631Fax: 91-11-4160-8632India - PuneTel: 91-20-2566-1512Fax: 91-20-2566-1513Japan - YokohamaTel: 81-45-471- 6166 Fax: 81-45-471-6122Korea - DaeguTel: 82-53-744-4301Fax: 82-53-744-4302Korea - SeoulTel: 82-2-554-7200Fax: 82-2-558-5932 or 82-2-558-5934Malaysia - Kuala LumpurTel: 60-3-6201-9857Fax: 60-3-6201-9859Malaysia - PenangTel: 60-4-227-8870Fax: 60-4-227-4068Philippines - ManilaTel: 63-2-634-9065Fax: 63-2-634-9069SingaporeTel: 65-6334-8870Fax: 65-6334-8850Taiwan - Hsin ChuTel: 886-3-572-9526Fax: 886-3-572-6459Taiwan - KaohsiungTel: 886-7-536-4818Fax: 886-7-536-4803Taiwan - TaipeiTel: 886-2-2500-6610 Fax: 886-2-2508-0102Thailand - BangkokTel: 66-2-694-1351Fax: 66-2-694-1350

EUROPEAustria - WelsTel: 43-7242-2244-39Fax: 43-7242-2244-393Denmark - CopenhagenTel: 45-4450-2828 Fax: 45-4485-2829France - ParisTel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79Germany - MunichTel: 49-89-627-144-0 Fax: 49-89-627-144-44Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781Netherlands - DrunenTel: 31-416-690399 Fax: 31-416-690340Spain - MadridTel: 34-91-708-08-90Fax: 34-91-708-08-91UK - WokinghamTel: 44-118-921-5869Fax: 44-118-921-5820

WORLDWIDE SALES AND SERVICE

01/02/08