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 http://www.cypress.
Copyrights Copyrights © Cypress Semiconductor Corporation, 2007. The information contained herein is subject to change without notice. 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.
Contents 1. Getting Started 5 Kit Contents .................................................................................................................5 Installing Software .......................................................................................................5 Install PSoC Express Development Software ..................................................5 Install PSoC Designer Development Software.................................................
Contents What's Next? ............................................................................................................. 23 6. Design Support and Resources 25 PSoC Development Software Online ........................................................................ 25 PSoC Data Sheets and Application Notes ................................................................ 25 PSoC Device Selector Guide ....................................................................................
1. Getting Started 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.
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.
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.
Use the Board as Factory Programmed 2.3 From the Port menu, select MiniProg1/. 2.4 Click Toggle Device Power green. . The D1 LED on the CY3280-20x34 board lights Test the Board 2.5 Touch the slider on the board with your finger. An LED will light up representing where your finger 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.
3. Create a PSoC Express CapSense Project This project walks you through the steps of creating a PSoC Express project from scratch. At the end of the project, you will be able to touch a button on the board and see the corresponding LED light up. Start a New Project 3.1 Open PSoC Express. 3.2 Select File New Project. 3.3 Name the project MyExpressProject. 3.4 If needed, click Browse to save the project in a different location. 3.5 Click OK. Add the First CSA Button Driver to Your Design 3.
Create a PSoC Express CapSense Project 3.10 Click OK to accept the default settings. Another Add Input Driver window will open automatically. 3.11 Name this driver CapSenseProperties. 3.12 In the Properties pane, set ExternalCap to Enabled. 3.13 Click OK. Add a Second CSA Button Driver to Your Design 3.14 Repeat Step 3.8 to add a second CSA Button to your design. 3.15 Name the driver Button2. 3.16 Click OK. Add the First LED Value Driver to Your Design 3.
Create a PSoC Express CapSense Project Define the LED Transfer Function 3.25 You now have five drivers on your design desktop: Button1, Button2, LED1, LED2, and CapSenseProperties. Right-click the LED1 driver and select Transfer Function. Note: If your driver icons are stacked on top of each other, simply use your mouse to click and drag each driver to a new location until all five drivers are clearly visible.
Create a PSoC Express CapSense Project Build Your Project 3.32 Select Build Generate/Build ‘MyExpressProject’ Project 3.33 In the PSoC Device Configuration Selection window, select the CY8C20434, 32-Pin QFN part in the Available Device Configurations pane. Note: The CY3280-20x34 Universal CapSense Controller includes a special on-chip debugger (OCD) part, CY8C20000, which is a 48-pin part that is not normally used for production.
Create a PSoC Express CapSense Project 3.38 Assign the rest of the drivers according to the following table: 3RUWB B 3RUWB B 3RUWB B 3 > @ 3 > @ 3 > @ 3RUWB B P2[7] 9'' P2[5] LED2 3RUWB B LED1 3 > @ P0[3] &DS6HQVH3URSHUWLHVB CapSenseProperties_ExternalCap (previously assigned in Step 3.
Create a PSoC Express CapSense Project 3.43 From the Port menu, select MiniProg1/. 3.44 Click Program . “Programming Succeeded...” appears in the Actions pane when programming is complete. Test the Board 3.45 Click Toggle Device Power . 3.46 Touch buttons P1[6] and P1[3] on the board with your finger. The corresponding LED lights up. 3.47 When you are done experimenting, click Toggle Device Power PSoC Programmer. , and close 3.
4. Tune a PSoC Express CapSense Project Note: A CY3240-I2USB Bridge is needed for CapSense tuning. If you do not have a CY3240-I2USB Bridge board, purchase one online by going to http://www.cypress.com/design/DK10063, and clicking Buy Online. The goal of tuning a capacitive sensing application is to adjust the sensitivity of the buttons or slider so that they accurately detect finger presses.
Tune a PSoC Express CapSense Project Assign Drivers to Pins 4.9 In the User Pin Assignment window, click Unassign All Pins. All drivers move to the Unassigned Drivers list. 4.10 To assign drivers to pins, drag and drop drivers from the Unassigned Drivers list onto a pin. Assign the CapSenseProperties_ExternalCap driver to port P0[3]. Assign the rest of the drivers according to the following table. Button1_CSA P1[6] Button2_CSA P1[3] CapSenseProperties_ExternalCap (previously assigned in Step 4.
Tune a PSoC Express CapSense Project 4.22 Touch the button with your finger. The button is now less sensitive. When you're finished experimenting, close the CSA Button Tuner window and then click Stop. Monitoring a design consumes a lot of processor cycles on your PC. Congratulations! You have successfully completed this example.To experiment with additional Universal CapSense designs, go to the \Firmware folder on the kit CD. CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev.
Tune a PSoC Express CapSense Project 18 CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev.
5. Create a PSoC Designer CapSense Project This project is a brief introduction to PSoC Designer. It is recommended that you complete the PSoC Designer training offered by Cypress. At the end of the project, you will be able to touch button P2[3] on the CY3280-SLM board and see the corresponding LED light up. 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.
Create a PSoC Designer CapSense Project Add CSA, LED, and I2C User Modules to Your Design 5.11 If it is not already selected, click the Device Editor button . 5.12 Select Config Selection to see the user module selection screen. 5.13 Under Cap Sensors, right-click the CSA user module on the left of the screen. 5.14 Click Select. 5.15 Under Misc Digital, right-click the LED user module on the left of the screen. 5.16 Click Select. 5.
Create a PSoC Designer CapSense Project Configure CSA, LED, and I2C User Modules in Your Design 5.22 Select the CSA User Module. 5.23 Set the External Cap to P0[3], under User Module Parameters (on the left center). 5.24 Select the LED user module. 5.25 Set the port to Port_1 and the pin to Port_1_2. 5.26 Set the drive to active low. 5.27 Select the EzI2Cs user module. 5.28 Set the I2C Clock to 400K Fast. 5.29 Set the I2C Pin to P1[0]-P1[1]. Configure Sensor Pins Using the CSA Wizard 5.
Create a PSoC Designer CapSense Project Add Code to main.c and Build the Project 5.35 Select View Application Editor. 5.36 Ensure the Project View button is selected. 5.37 Double-click main.c under mydesignerproject files Source Files on the left. 5.38 Select all text in main.c and delete it. 5.39 Add the following code: #include #include "PSoCAPI.
Create a PSoC Designer CapSense Project Program the CY3280 - 20x34 Board 5.41 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 before proceeding. Follow the instructions in the Power the Board section on page 4. 5.42 In PSoC Designer, select Program Program Part.The PSoC Programmer application opens. 5.
Create a PSoC Designer CapSense Project 24 CY3280-BK1 Universal CapSense Controller Quick Start, Doc. # 001-37959 Rev.
6. Design Support and Resources PSoC Development Software Online All PSoC development software tools are available for download online. For PSoC Express, visit www.cypress.com/psocexpress. For PSoC Designer visit www.cypress.com/psocdesigner. For PSoC Programmer visit www.cypress.com/psocprogrammer. PSoC Data Sheets and Application Notes For all PSoC device data sheets and detailed application notes, many with complete starter projects, visit www.cypress.com/designresources.
Design Support and Resources Additional CapSense Resources A wealth of information about PSoC Express and CapSense is available on the Cypress.com web site, and more is frequently added. The following list is just a sample of what is available.