Cypress Semiconductor CY3280-BK1 Quick Start

CY3280-BK1 Universal CapSense Controller
Basic Kit #1 Quick Start
Doc. # 001-37959 Rev. **
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
[+] Feedback
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2007. The information contained here in is subject to ch ange wi thout noti ce. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or sa fety applica tions, unless pursu ant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components in life­support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom soft­ware and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as speci­fied in the applicable agreement. Any reproduction, modification, transla tion, compilation, or representation of this Source Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATE­RIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the right to make cha nges without further notice to the materials described herein. Cypress does not assume any liability arising out of the applica tion or use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems whe re a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support sys­tems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement. PSoC Designer™, Programmable System-on-Chip™, and PSoC Express™ are trademarks and PSoC® is a registered
trademark of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced herein are property of the respective corporations.
Flash Code Protection
Cypress products meet the specifications contained in their particular Cypress PSoC Data Sheets. Cypress believes that its family of PSoC products is one of the most secure families of its kind on the market today, regardless of how they are used. There may be methods, unknown to Cypress, that can breach the code protecti on features. Any of these methods, to our knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guaran­tee the security of their code. Code protection does not mean that we are guaranteeing the prod uct as "unbreakable."
Cypress is willing to work with the customer who is concerned about the inte grity of their code. Co de prot ection i s constantly evolving. We at Cypress are committed to continuously improving the code protection features of our products.
2 CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev. **
[+] Feedback
Contents
1. Getting Started 5
Kit Contents..................................... ... ... ....................................... ... ... ... .... ..................5
Installing Software . ... ... ... .... ... ....................................... ... ... ... .... ... ... ... .........................5
Install PSoC Express Development Software..................................................5
Install PSoC Designer Development Software.................................................5
Additional CY3280-BK1 Universal CapSense Controller CD Content .............6
CapSense Best Practices............................................................................................6
2. Use the Board as Fac tory Programmed 7
Power the Board..........................................................................................................7
Test the Board .............................................................................................................8
Resetting the Board to the Original Factory Programming..........................................8
3. Create a PSoC Expres s CapSense Project 9
Start a New Project......................................................................................................9
Add the First CSA Button Driver to Your Design .........................................................9
Add a Second CSA Button Driver to Your Design.....................................................10
Add the First LED Value Driver to Your Design.........................................................10
Add the Second LED Value Driver to Your Design....................................................10
Define the LED Transfer Function .............................................................................11
Build Your Project............................................................... ... .... ... ... ... ... .... ... ... ..........12
Assign Drivers to Pins................................................................................................12
Program the CY3280-20x34 UCC Board...................................................................13
Test the Board ...........................................................................................................14
What’s Next? .............................................................................................................14
4. Tune a PSoC Express CapSense Project 15
Open Your PSoC Express Project................... ... ... ... .... ... ... ... .... ... ... ... ... .... ... ... ... .... ...15
Add an I2C Slave Driver to Your Design ...................................................................15
Build the Project.................. ... ... ... .... ... ... ....................................... ... ... ... .... ... ... ... .... ...15
Assign Drivers to Pins................................................................................................16
Program the CY3280-20x34 UCC Board...................................................................16
Tune Button1.............................................................................................................16
5. Create a PSoC Designer CapS ense Project 19
Start a New Project....................................................................................................19
Add CSA, LED, and I2C User Modules to Your Design ............................................20
Configure CSA, LED, and I2C User Modules in Your Design ................................ ...21
Configure Sensor Pins Using the CSA Wizard..........................................................21
Add Code to main.c and Build the Project.................................................................22
Program the CY3280 - 20x34 Board ............ .............................................................23
Test the Board ...........................................................................................................23
CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev. ** 3
[+] Feedback
Contents
What's Next? .............................................................................................................23
6. Design Support and Resou rces 25
PSoC Development Software Online ........................................................................25
PSoC Data Sheets and Application Notes ................................................................25
PSoC Device Selector Guide ....................................................................................25
PSoC Development Tools Selector Guide ................................................................25
PSoC On-Demand Training.......................................................................................25
PSoC On-Site Training..............................................................................................25
Online Technical Support............. ... ... ... .......................................... .... ......................25
Additional CapSense Resources...............................................................................26
4 CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev. **
[+] Feedback

1. Getting S tarted

The examples in this Quick Start are for the CY3280-20x34 and CY3280-SLM Linear Slider Module boards only.

Kit Contents

CY3280-20x34 Universal CapSense Controller Board
CY3280-21x34 Universal CapSense Controller Board
CY3280-SLM Universal CapSense Linear Slider Module
CY3280-BBM Universal CapSense Prototyping Module
CY3240-I2USB Board
CY3210 MiniProg1 Programmer
USB 2.0 Retractable Cable
PSoC Express Installation CD
PSoC Designer and PSoC Programmer Installation CD
CY3280-BK1 Universal CapSense Controller Kit CD
1.5 mm and 3 mm Polycarbonate Overlays (with Adhesive for attachment to module board if
wanted)

Installing Software

To use the examples in this quick start:
Install PSoC Express Development Software
Install PSoC Designer Development Software
Review the Additional CY3280-BK1 Universal CapSense Controller CD Content

Install PSoC Express Development Software

1.1 Insert the PSoC Express Installation CD.
1.2 Install PSoC Express 3.
1.3 Install .NET Framework 2.0.
1.4 Install PSoC Programmer.
1.5 Install Express Pack 3 (found on the kit CD in the \Software folder).

Install PSoC Designer Development Software

1.6 Insert the PSoC Designer and PSoC Programmer Installation CD.
1.7 Browse to and launch PD44_B119x86.exe at \PSoC Programmer 2.3_PSoc Designer
4.4\psoc_designer_tm__v__4_4_13\.
1.8 Follow the installation instructions.
1.9 Install Service Pack 1 (found on the kit CD in the \Software folder).
1.10 A C compiler license is required to build PSoC Designer C language projects. Section 2.1 of the C Language Compiler Users Guide.pdf found in Help Documentation explains how to enter the license.
CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev. ** 5
[+] Feedback
Getting Started

Additional CY3280-BK1 Universal CapSense Controller CD Content

Example projects for PSoC Express and PSoC Designer
Hardware schematics and gerber files
CY3240-I2USB software installer and documentation

CapSense Best Practices

The Universal CapSense Controller has been created using the best practices for CapSense lay out. To enable universality and development of the kit and its projects, certain design elements have been changed from what is recommended for final products. Below is a list of the design features in
the Universal CapSense Controller and what to change for final products.
Design Feature Reason Impact Recommended Change
Sensing traces routed through a connector to sen­sors
Sensing traces routed to other schematic elements
Sensing traces located on the top layer
Several regulators used, including a variable regulator
Test point on CMOD Accessibility of charge/dis-
GND spacing is generalized for noise immunity and sensitivity
Connection to shield electrode is through a jumper (module ­J2)
ESD protection cir­cuitry is not included
UM Parameters set to supplied overlay thicknesses
Unused pins are not routed directly to GND
0-ohm Resistors populated through­out
Buttons, sliders and LEDs placed on the module board to all for greater flexibility with cus­tom modules for development and subsequent releases.
Universality of the board enabled by population/depopu­lation of 0-ohm resistors
Using vias to route traces to bot­tom of board and back to con­nector increases parasitic capacitance.
Demonstration of CapSense at several voltages.
charge waveforms
Universality of kit required mid­dle-ground on many parameters
Flexibility of module boards for both CSD and CSA control boards
Development/evaluation plat­form without consistent overlay is inherently vulnerable to ESD events
Projects optimized for supplied hardware
Pins brought out to connector for subsequent modules or cus­tom designs
Universality of the board enabled by population/depopu­lation of 0-ohm resistors
Connectors increase the para­sitic capacitance of the sensors, effectively reducing their sensi­tivity. Connectors also create another path for noise to enter the system.
Solder pads of 0-ohm resistors increase parasitic capacitance.
Possible noise sensitivity to stimulus on top side of board. Finger presses on routing of control board can lead to sensor activation.
Global and User Module param­eters may need to be verified with changing power supply.
A test point increases noise sen­sitivity by acting as an antenna.
Design is not optimized for high­noise or very thick overlays
Higher resistance paths can impair performance of shield electrode in CSD projects
Direct or air-separated ESD testing may impair operation or damage circuitry. +/-2kV limit on PSoC pins (see datasheet).
Sensitivity may not be high enough for very thicker overlays
Possible noise path Tie unused sensing traces
Solder pads of 0-ohm resistors increase parasitic capacitance
Sensors and control circuitry should be located on the same printed circuit board. Lower par­asitic capacitance by reducing trace lengths.
Route traces directly to sensing elements. Use as few 0-ohm resistors as possible
Route sensing traces on non­user side of printed circuit board. Route sensing traces as far from noise sources as possi­ble.
Supply one regulated voltage to PSoC.
Solder-pad test points for leads offer better noise immunity if test points are required.
Increase spacing for thicker overlays and better sensitivity. Decrease spacing for greater noise immunity
Dedicated trace for shield elec­trode. Remove jumpers wher­ever possible
Include an overlay and ESD pro­tection circuitry
Thicker overlays may require verification of parameters to ensure proper operation
directly to ground
Route traces directly to sensing elements. Use as few 0-ohm resistors as possible
6 CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev. **
[+] Feedback

2. Use the Board as Factory Programmed

The examples in this Quick Start are for the CY3280-20x34 and CY3280-SLM Linear Slider Module boards only.
The CY3280-20x34 board is preprogrammed with demonstration firmware. When powered by a PSoC MiniProg, a CY3240-I2USB Bridge, or an optional external power supply, the LEDs light up when a finger touches one of the buttons or the slider.
These instructions assume your board has not been reprogrammed from the factory settings. If it has, and you would like to follow along with this demonstration, follow the instructions in the Reset­ting the Board to the Original Factory Programming section on page 5, and then start this example with the Power the Board section below.

Power the Board

2.1 Connect your computer to the CapSense test board ISSP Connector (J3) using the PSoC MiniProg and a USB cable. If this is your first time using the MiniProg, you will need to install the driver using these steps before proceeding:
a. When the Found New Hardware Wizard opens, select the Install the software automati-
cally (Recommended) option and click Next.
b. A warning message may tell you the software you are trying to install has not passed Win-
dows Logo testing. Click Continue Anyway each time it appears.
c. When the installation is complete, click Finish.
2.2 Open PSoC Programmer by going to the Windows Start menu and selecting All Programs Cypress MicroSystems PSoC Programming PSoC Programmer.
CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev. ** 7
[+] Feedback
Use the Board as Factory Programmed
2.3 From the Port menu, select MiniProg1/<Identification Code>.
2.4 Click Toggle Device Power . The D1 LED on the CY3280-20x34 board lights green.

Test the Board

2.5 Touch the slider on the board with your finger. An LED will light up representing where your fin­ger is on the slider. The LED state changes as you move your finger across the slider
2.6 Touch one or more buttons with your finger. The LEDs light up corresponding to the buttons being pressed.

Resetting the Board to the Original Factory Programming

Follow these steps if you wish to reset the board to the original factory installed programming:
2.7 Place shunts on pins 2 and 3 of J1 and pins 1 and 2 of J4.
2.8 The example projects are available on the CD and from the Cypress web site. On
www.cypress.com, search for CY3280-BK1.
2.9 To reset the board to the factory conditions, connect your computer to the CY3280­20x34 board ISSP Connector (J3) using the PSoC MiniProg and a USB cable.
2.10 Open PSoC Programmer by going to the Windows Start menu  All Programs  Cypress MicroSystems PSoC Programming PSoC Programmer
2.11 Click File Load, navigate to, and open the CY3280_20x34_slm.hex file on the CD at:
Firmware/PSoCDesigner/CY8C20x34/CY3280_20x34_SLM/Output/CY3280_20x34_slm.hex
2.12 From the Device Family menu, select 20x34.
2.13 From the Device menu, select CY8C20434-12LFXC.
2.14 Click Program. “Programming Succeeded...” appears in the Actions pane when programming is complete.
Note: The CY3280_20x34_slm example project is a PSoC Designer project, and will not open with PSoC Express. PSoC Programmer uses .hex files generated by both applications.
8 CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev. **
[+] Feedback
Loading...
+ 18 hidden pages