Cypress CY3280-20x66 Universal CapSense Manual

Cypress CY3280-20x66 Universal CapSense Manual

Controller kit
Hide thumbs Also See for CY3280-20x66 Universal CapSense:

Advertisement

Quick Links

CY3280-20x66
®
Universal CapSense
Controller Kit Guide
Doc. No. 001-67447 Rev. *A
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com
[+] Feedback

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CY3280-20x66 Universal CapSense and is the answer not in the manual?

Questions and answers

Summary of Contents for Cypress CY3280-20x66 Universal CapSense

  • Page 1 CY3280-20x66 ® Universal CapSense Controller Kit Guide Doc. No. 001-67447 Rev. *A Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): 408.943.2600 http://www.cypress.com [+] Feedback...
  • Page 2 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.
  • Page 3: Table Of Contents

    4.2.4 CapSense Module Connector ................27 4.2.5 ISSP/I2C Connector..................27 4.2.6 ICE-Cube Debug Connector ................28 4.2.7 VADJ Variable Regulator Control ..............28 4.2.8 LEDs ......................29 4.2.9 Reset Switch ....................29 4.2.10 CMOD ......................30 CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 4 5.4.3 Firmware Architecture..................62 5.4.4 Verify Output ....................63 A. Appendix Schematic........................65 Board Layout ......................66 A.2.1 PDCR-9492 Top .................... 66 A.2.2 PDCR-9492 Bottom ..................67 CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 5: Introduction

    ❐ ❐ Quick start guide Release notes ❐ Inspect the contents of the kit. If any parts are missing, contact your nearest Cypress sales office for further assistance. 1.1.1 Prerequisites The following are required for the functioning of the kit: CY3280 Universal CapSense Module board or user custom board similar to CY3280 module ■...
  • Page 6: Miniprog1 Programmer

    The Bridge Control Panel GUI is used with CY3240-I2USB bridge to enable communication with I2C slave devices; here, it is used with the CY3280-20x66 Universal CapSense Controller. This software is used to configure I2C devices as well as acquire and process data received from I2C slave devices.
  • Page 7: Document History

    Click the File icon and then click Open. Displays an equation: Times New Roman 2 + 2 = 4 Text in gray boxes Describes cautions or unique functionality of the product. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 8: Getting Started

    Getting Started This chapter describes the installation and configuration of the CY3280-20x66 Universal CapSense Controller Kit. Kit Installation To install the kit software, follow these steps: 1. Insert the kit CD into the CD drive of your PC. The CD is designed to auto-run and the kit installer startup screen appears.
  • Page 9 5. In the Product Installation Overview screen, select the installation type that best suits your requirement. The drop-down menu has three options - Typical, Complete, and Custom, as shown in Figure 2-4. 6. Click Next to start the installation. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 10 7. When the installation begins, a list of packages appear on the Installation Page. A green check mark appears adjacent to every package that is downloaded and installed (see Figure 2-5). 8. Wait until all the packages are downloaded and installed successfully. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 11 PC. Open Bridge Control Panel with the I2USB bridge attached to the PC to verify driver installation. Note Advanced users can skip to Code Examples chapter on page CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 12: Psoc Designer

    Getting Started PSoC Designer 1. Click Start > All Programs > Cypress > PSoC Designer <version> > PSoC Designer <ver- sion>. 2. Click File > New Project to create new project; click File > Open Project to work with an existing project.
  • Page 13: Psoc Programmer

    Note For more details on PSoC Programmer, go to Programmer user guide at: <Install_directory>\Cypress\Programmer\<version>\Documents. Bridge Control Panel 1. Click Start > All Programs > Cypress > Bridge Control Panel <version> > Bridge Control Panel <version>. 2. Select 5.0V from Power Setting box, as highlighted in Figure 2-9.
  • Page 14 Getting Started Figure 2-9. Selecting the Bridge Note For more details on the Bridge Control Panel, view the help topics from the Bridge Control Panel Menu bar. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 15: Kit Operation

    Figure 3-1. Connect CapSense Module Board to Universal CapSense Controller. On the CY3280-20x66 Universal CapSense Controller board, place shunts on pins 1 to 2 of J4 (XRES select). On the CY3280-SLM Universal CapSense Linear Slider Module, place a shunt on pins 2 and 3 of J2.
  • Page 16: Programming Psoc With New Design

    2. On the UCC, connect J7 to pin 2 of J1. This enables power supply by the MiniProg1. 3. Toggle the Power button on PSoC Programmer. 4. LED D1 on the CY3280-20x66 Universal CapSense Controller is on if powered with Vcc_Prog. Otherwise, both LEDs D1 and D2 light up on powering the device with other power sources.
  • Page 17: Bridge Control Panel

    Bridge Control Panel software. Follow these steps to use the Bridge Control Panel software with the CY3280-20x66 Universal CapSense Controller board. 1. Click Start > All Programs > Cypress > Bridge Control Panel <version>. 2. Select the device to be connected from the port selection window.
  • Page 18 Figure 3-6. LED2 Glows on Touching Sensor SLD4 11. Click on the Chart tab to switch to Chart view and see the respective waveforms of CapSense parameters. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 19 12.View the required parameters by selecting or clearing the checkboxes to the right of the Chart view. 13.Click Stop to stop scanning. 14.Click the Table tab to view the values of the demonstration board variables, as shown in Figure 3-8. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 20 Kit Operation Figure 3-8. Bridge Control Panel Table View. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 21: Hardware

    Figure 4-1. System Block Diagram ,663,& &02' &RQQHFWRU 3RZHU 3RZHU 6HOHFWLRQ 6XSSO\ -XPSHU &DS6HQVH 0RGXOH &RQQHFWRU 36R& 9$'- 9DULDEOH 5HJXODWRU &<&$/;7, /('V 86% 0LQL % &RQQHFWRU  ,&(&XEH &RQQHFWRU  5HVHW CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 22: Functional Description

    The CY3280-20x66 Universal CapSense Controller includes PSoC CY8C20066A, ISSP connector, CapSense module connector, USB Mini B connector, DC supply socket, Reset button, ICE-Cube debug connector. The following figure shows the different functional blocks on the CY3280-20x66 Universal CapSense Controller board. Figure 4-2. CY3280-20x66 Universal CapSense Controller Functional Blocks...
  • Page 23 P2_7 NOTE: Place all resistors close to PSoC 32.768KHz XTAL 32.768KHz XTAL CY8C20066 CY8C20066 NO LOAD NO LOAD NO LOAD NO LOAD DO NOT POPULATE MHz Crystal CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 24: Pin Description Of Cy8C20066A-24Ltxi

    P0[6] CapSense Supply voltage OCDO OCD even data I/O OCDE OCD odd data output P0[7] GPIO P0[5] GPIO, LED3 P0[3] Integrating input Ground connection P0[1] GPIO, LED2 CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 25: Power Supply System

    The following block diagram shows the structure of the power system on the board. Figure 4-4. Power Supply System Structure 9 '& 6XSSO\ 9 5HJXODWRU 9 %DWWHU\ 5HJXODWRU 9FFB3URJ ,&( &XEH ,663 ,& CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 26: Power Supply Jumper Setting

    5 V voltage. Protection diode D5 is present so that the 5 V from the board does not flow to the USB connector. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 27: Capsense Module Connector

    The ISSP connector is also used to connect the I2USB bridge to communicate between the PC and the controller board. See Power Supply Jumper Setting on page 26. The pin mapping for the ISSP connector is shown in the following figure. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 28: Ice-Cube Debug Connector

    If the load at R67 is 3 K, the output voltage is 2.484 V; if the load at R67 is 9 K, the output voltage is 4.968 V. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 29: Leds

    SDA and SCL lines drive resistive low for eight sleep clock cycles and transition to high impedance state. Figure 4-12. Schematic View of RESET Switch Reset XRES 100 ohm 100 ohm SW PUSHBUTTON SW PUSHBUTTON CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 30: Cmod

    This test point may increase the noise sen- sitivity by acting as an antenna. Figure 4-13. Schematic View of CMOD CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 31: Code Examples

    EzI2Cs: The EzI2Cs user module implements an I2C register based slave device. This user module does not require any digital or analog PSoC blocks. It is used to transfer all CapSense parameters related to a sensor to the PC for monitoring CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 32: Flowchart

    Store 0x00 as default slider on slider? status data in I2C buffer Store finger position on slider in I2C buffer Turn ON Led based on active sensor number CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 33: Creating My First Psoc 1 Project

    5. Click OK. The Select Project Type window opens. 6. In the Select Target Device option, click View Catalog, as shown in Figure 5-2. Figure 5-2. Select Project Type CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 34 Figure 5-3. Device Catalog 9. Under Generate 'Main' File Using: select C and then click OK. 10. By default, the project opens in Chip view, as shown in Figure 5-4. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 35 PSoC. In the User Modules window, expand the Cap Sensors folder. Figure 5-5. Cap Sensors Folder 12.In this folder, right click on CSD and select Place. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 36 Code Examples Figure 5-6. User Modules Window - CSD Select Figure 5-7. CSD User Module Placement 13.Configure the CSD_1 properties, as shown in Figure 5-8: CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 37 Figure 5-8. CSD User Module Properties 14.Right-click on the CSD user module and select the CSD Wizard option to assign pins to the sen- sors. Figure 5-9. Open CSD Wizard CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 38 Figure 5-11. Global Settings - CSD Wizard 16.Click on the slider in the CSD Wizard to view sensor settings. Configure the Sensor Settings, as shown in Figure 5-12. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 39 Pin Assignment window. Drag and drop SW0 to pin P1 [6]. Sensor pin assignment can be done in Table Pin Assignment View (Figure 5-14) or Chip Pin Assignment View (Figure 5-13). Figure 5-13. Assign Sensors to Pins - Chip Pin Assignment View CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 40 Figure 5-14. Assign Sensors to Pins - Table Pin Assignment View 18.After assigning a sensor, the CSD Wizard looks as shown in Figure 5-15. Figure 5-15. Sensor Assigned CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 41 P2[0] S1(8) P3[2] S1(9) P3[0] 20.After assigning all the sensors successfully, the CSD Wizard appears as follows: Figure 5-16. All Sensors Assigned - Table Pin Assignment View CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 42 21.In the User Modules window, expand the Digital Comm folder, select EzI2Cs, right-click and select Place to place an EzI2Cs in the design. Figure 5-18. User Module Window - EzI2Cs Select CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 43 22.By default, the EzI2Cs is placed at the I2C/SPI block. The placement of EzI2Cs module is shown Figure 5-19. Figure 5-19. EzI2Cs User Module Placement 23.Configure the properties of EzI2Cs_1 as shown. Figure 5-20. EzI2Cs User Module Properties CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 44 25.Configure the properties of P2[7], P0[1], P0[5] and P1[2] as shown in the following figures. Figure 5-22. P2[7] Port Pin Properties Figure 5-23. P0[1] Port Pin Properties Figure 5-24. P0[5] Port Pin Properties CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 45 27.Open the existing main.c file in Workspace Explorer. Replace the existing main.c content with the content of the embedded Example_My_First_PSoC_Project_Main.c file, which is attached to this PDF. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 46 28.Add a new file to the project by clicking File > New File. Figure 5-28. Add New File 29.Select the C file type and name the file. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 47 Code Examples Figure 5-29. File Types 30.Similarly, create two .h file types and name them as main.h and display.h, respectively. Figure 5-30. New Files in Project CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 48 Note While programming the board with PSoC Designer, close any open instance of PSoC Pro- grammer. a. Click on Program > Program Part. Figure 5-32. Program Part Window Toggle Power Button Program Button CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 49: Verify Output

    3. Connect a USB cable from the CY3240-I2USB bridge board to a free USB port on a PC. 4. Click Start > Programs > Cypress > Bridge Control Panel <version> > Bridge Control Panel <version>. Note Make sure that PSoC Designer and PSoC Programmer are closed before opening the Bridge Control Panel.
  • Page 50 16.Click on the second command line and then click Repeat to read I2Cdata received from the Uni- versal CapSense Controller board. 17.Switch to the Chart tab to view the respective wave forms of CapSense parameters. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 51 Figure 5-37. Bridge Control Panel Chart View 18.The various parameter values received by the UCC is displayed in the Table tab. Figure 5-38. Bridge Control Panel Table View CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 52: Cy3280_20X66 Csd Pd Project2

    EzI2Cs: The EzI2Cs user module implements an I2C register based slave device. This user module does not require any digital or analog PSoC blocks. It is used to transfer all CapSense parameters related to a sensor to the PC for monitoring. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 53: Device Configurations

    Code Examples 5.2.2 Device Configurations Figure 5-39. Device Configuration for CY3280_20x66 CSD PD Project2. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 54: Firmware Architecture

    Store 0x00 as default slider on slider? status in I2C buffer Store finger position on slider in I2C buffer Turn ON Led based on active sensor number CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 55: Verify Output

    5-41. Note The character ‘r’ in Figure 5-40 defines the start of "read data" command. Figure 5-40. Command Line View Figure 5-41. Bridge Control Panel Chart View CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 56: Cy3280_ 20X66 Csa Pd Project1

    PSoC blocks. The EzI2Cs user module is used to transfer all CapSense parameters related to a sensor to the PC for monitoring. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 57: Device Configurations

    Code Examples 5.3.2 Device Configurations Figure 5-42. Device Configuration for CY3280_20x66 CSA PD Project1. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 58: Firmware Architecture

    Store 0x00 as default slider on slider? status data in I2C buffer Store finger position on slider in I2C buffer Turn ON Led based on active sensor number CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 59: Verify Output

    "write data" command. Similarly, the char- acter ‘p’ generates stop condition on the I2C bus and ‘r’ defines start of "read data"command. Figure 5-43. Command Line View CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 60: Cy3280_ 20X66 Csa Pd Project2

    ■ Reads the sensor ID sent by the I2C master Stores CapSense data in the I2C registers ■ Updates the LED status for the On/Off sensors ■ CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 61: Device Configurations

    PSoC blocks. The EzI2Cs user module is used to transfer all CapSense parameters related to a sensor to the PC for monitoring. 5.4.2 Device Configurations Figure 5-45. Device Configuration for CY3280_20x66 CSA PD Project2 CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 62: Firmware Architecture

    Store 0x00 as default slider on slider? status in I2C buffer Store finger position on slider in I2C buffer Turn ON Led based on active sensor number CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 63: Verify Output

    5. Switch to the Chart tab to view respective waveforms of CapSense parameters; see Figure 5-47. Figure 5-46. Command Line View Figure 5-47. Bridge Control Panel Chart View Note The brown line in the figure represents the axis. CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 64 Code Examples CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 65: Appendix

    Document Number PCB: PDCR-9492 REF-14882 REF-14882 REF-14882 PCA: 121R-49200 Date: Date: Date: Tuesday March 01 2011 Tuesday March 01 2011 Tuesday March 01 2011 Sheet Sheet Sheet CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 66: Board Layout

    Board Layout A.2.1 PDCR-9492 Top CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 67: Pdcr-9492 Bottom

    A.2.2 PDCR-9492 Bottom CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 68 IC, 48QFN PSoC Device w/ OCD Cypress Semiconductor CY8C20066A-24LTXI IC REG LDO 150MA 5.0V 1% SOT23-5 Micrel MIC5205-5.0YM5 IC REG LDO 150MA ADJ 1% SOT23-5 Micrel MIC5205YM5 CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 69 Place jumper (0.100" pitch) across pins 1 and 2 of J4. Install On Bottom of PCB As Close To Corners As Possible BUMPER CLEAR.370X.19" CYLINDER Richco Plastic Co RBS-35 CY3280-20x66 Universal CapSense Controller Kit Guide, Doc. No. 001-67447 Rev. *A [+] Feedback...
  • Page 70 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Cypress Semiconductor CY3280-20X66...

Table of Contents