Cypress Universal CapSense CY3280-22x45 Manual

Controller
Table of Contents

Advertisement

Quick Links

®
CY3280-22x45 Universal CapSense
Controller Development Kit Guide
Doc. # 001-51921 Rev. *H
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): 408.943.2600
http://www.cypress.com

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress Universal CapSense CY3280-22x45

  • Page 1 ® CY3280-22x45 Universal CapSense Controller Development Kit Guide Doc. # 001-51921 Rev. *H Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): 408.943.2600 http://www.cypress.com...
  • 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

    Contents Safety Information 1. Introduction Kit Contents .........................7 1.1.1 Prerequisites ....................7 1.1.2 MiniProg1 Programmer ..................7 1.1.3 CY3240-I2USB Bridge ..................8 1.1.4 CY3280 Universal CapSense Module Boards ..........8 PSoC Designer ......................8 PSoC Programmer ......................8 Bridge Control Panel....................8 Additional Learning Resources..................8 Documentation Conventions..................9 2.
  • Page 4 Contents 4.2.10 External Power Supply Interface (J5) ............29 4.2.11 CY3280-SLM Board Connector (J6) .............. 30 4.2.12 CapSense Plus Module Connector (J7)............32 Test Point and Description ..................33 5. Code Examples Create a CapSense Project Using PSoC Designer........... 35 5.1.1 Flowchart .......................
  • Page 5: Safety Information

    Safety Information Regulatory Compliance The CY3280-22x45 is intended for use as a development platform for hardware or software in a laboratory environment. The board is an open system design, which does not include a shielded enclosure. This may cause interference to other electrical or electronic devices in close proximity. In a domestic environment, this product may cause radio interference.
  • Page 6 General Safety Instructions ESD Protection ESD can damage boards and associated components. Cypress recommends that you perform procedures only at an ESD workstation. If one is not available, use appropriate ESD protection by wearing an antistatic wrist strap attached to chassis ground (any unpainted metal surface) on your board when handling parts.
  • Page 7: Introduction

    12 V DC adapter (optional) ■ CY3215-DK (optional, required to debug programs in PSoC Designer™). For more information, ■ visit http://www.cypress.com/go/CY3215-DK. 1.1.2 MiniProg1 Programmer The PSoC MiniProg1 allows you to program PSoC parts quickly and easily. It is small, compact, and connects to your PC using the provided USB 2.0 cable.
  • Page 8: Cy3240-I2Usb Bridge

    PSoC Programmer offers a simple GUI to configure and program PSoC devices. For more informa- tion about PSoC Programmer, go to the following location: <Install_directory>\Programmer\<version>\Documents. The default <Install_directory> is "C:\Program Files\Cypress." Bridge Control Panel The Bridge Control Panel GUI is used with CY3240-I2USB bridge to enable communication with I2C slave devices;...
  • Page 9: Documentation Conventions

    Introduction PSoC Designer Training: http://www.cypress.com/?rID=40543. This is a web-based course that ■ provides an overview of PSoC and its design tool. Getting started with CapSense: http://www.cypress.com/?rID=48787 ■ Documentation Conventions Table 1-1. Document Conventions for Guides Convention Usage Displays file locations, user entered text, and source code: Courier New C:\ ...cd\icc\...
  • Page 10 Introduction Note: Intentionally left blank. CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 11: Getting Started

    CY3280-22x45 Kit ISO: This file (ISO image) is an archive file of the optical disc provided with the kit. You can use this to create an installer DVD or extract information using WinRar or sim- ilar tools. This ISO file includes kit code examples, hardware files, documents, Cypress pre- ®...
  • Page 12 Getting Started Figure 2-1. Kit Installer Startup Screen Note If auto-run does not execute, double-click cyautorun.exe in the root directory of the DVD, as shown in Figure 2-2. Figure 2-2. DVD Root Directory 3. The InstallShield Wizard screen appears, which shows the default setup location. You can change the location using Change, as shown in Figure 2-3.
  • Page 13 Getting Started Figure 2-3. InstallShield Wizard 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. Accept the license agreement to proceed. 7.
  • Page 14 Getting Started 8. 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). 9. Wait until all the packages are downloaded and installed successfully. Figure 2-5.
  • Page 15 Getting Started Figure 2-6. Installation Complete Page After software installation, verify your setup by opening PSoC Programmer with the MiniProg attached to PC. Open Bridge Control Panel with the CY3240-I2USB bridge attached to the PC to verify driver installation. Note Advanced users can skip to Code Examples chapter on page CY3280-22x45 Universal CapSense®...
  • Page 16: 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 17: Psoc Programmer

    Getting Started PSoC Programmer 1. Click Start > All Programs > Cypress > PSoC Programmer <version> > PSoC Programmer <version>. 2. Select the MiniProg from Port Selection and click the power button, as shown in Figure 2-8. Figure 2-8. PSoC Programmer Window 3.
  • Page 18 Getting Started CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 19: Kit Operation

    Kit Operation Introduction The CY3280-22x45 board is pre-programmed with a demonstration firmware. When this board is 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. These instructions assume your board is reprogrammed with factory settings.
  • Page 20: Connecting Capsense Module Board

    4. Connect your computer to the CapSense test board ISSP connector (J3) using the MiniProg and a USB cable. 5. Click Start > All Programs > Cypress > PSoC Programmer <version> > PSoC Programmer <version>. CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 21: Test The Board

    2. Connect your computer to the CY3280-22x45 board ISSP connector (J3) using the MiniProg and a USB cable. 3. Click Start > All Programs > Cypress > PSoC Programmer <version> > PSoC Programmer <version>. 4. Click File > File Load, navigate to and open the CY3280_22X45_SLM.hex file on the DVD at: <Installed directory>\CY3280-22X45\1.0\Firmware\CY3280_22X45_SLM...
  • Page 22 Kit Operation Figure 3-2. Programmer Settings for MiniProg3 8. From the Device menu, select CY8C22545-24AXI. 9. Click Program. "Programming Succeeded..." appears in the Actions pane when programming is complete. Note: Intentionally left blank. CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 23: Hardware Design

    Hardware Design The CY3280-22x45 Universal CapSense Controller Board is used to demonstrate the features of CY8C22x45. The CY8C22x45 family includes CY8C21345-24SXI, CY8C22345-24SXI, and CY8C22545-24AXI. A special circuit is needed to demonstrate some features of CY8C22x45. System Block Diagram The CY3280-22x45 Universal Capsense Controller Board has the following sections: PSoC CY8C22045-24AXI ■...
  • Page 24: Psoc Power Supply

    Hardware Design 4.1.1 PSoC Power Supply There are two kinds of power supplies for PSoC VCC: fixed 5 V or variable Vadj. The JP3 is used to select the power. If pin 2 is shorted to pin 3, the fixed 5 V is selected for the PSoC VCC. If pin 2 is shorted to pin 1, the variable Vadj is selected for the PSoC VCC.
  • Page 25: Dual-Channel Csd Scanning

    Hardware Design 4.1.2 Dual-channel CSD Scanning The significant improvement of CY8C22x45 is the dual-channel CSD scanning. To demonstrate this new feature, two external capacitors are required. According to the CY8C22x45 Technical Reference Manual (TRM), pin 5 and pin 7 of port 0 are dedicated for external capacitor connection. The capacitor Cmod assigned to pin 5 of port 0 is connected to the internal left analog bus.
  • Page 26: Hardware Interface And Description

    Hardware Design Hardware Interface and Description 4.2.1 Connector and Hardware Descriptions Table 4-1. Connector and Hardware Descriptions Board ID Description Short to connect Potentiometer RV2 in parallel with Cmod on P0[5] Short to connect Potentiometer RV3 in parallel with Cmod on P0[7] PSoC VCC selection jumper XRES selection External 9-V battery connector...
  • Page 27: Xres/Int Selection Jumper (Jp4)

    Hardware Design 4.2.4 XRES/INT Selection Jumper (JP4) Figure 4-6. XRES/INT Selection Jumper Pin 3 of JP4 served as XRES signal or INT signal. JP4 selects which PSoC pin is connected to pin 3 of the ISSP/I2C header J3. Short pin 1 and pin 2 of JP4 to connect the PSoC XRES pin to pin 3 of the ISSP/I2C header.
  • Page 28: Rs-232 Interface (J2)

    Hardware Design 4.2.7 RS-232 Interface (J2) Figure 4-8. RS-232 Interface J2 connector is the RS-232 interface. If this interface is selected, resistors of R76 and R77 must be populated. Configure P1[5] to the TX of UART and P1[7] to the RX of UART in the interconnection window of PSoC Designer 5.2.
  • Page 29: Ice Interface (J4)

    Hardware Design 4.2.9 ICE Interface (J4) Figure 4-10. ICE Interface CY3280-22x45 Universal CapSense Controller Board has an interface for in-circuit debugging. Connect the ICE-Cube to J4. Then the PSoC Designer debugger provides in-circuit emulation support that allows you to test the project in a hardware environment when viewing and debugging device activity in a software environment.
  • Page 30: Cy3280-Slm Board Connector (J6)

    Hardware Design 4.2.11 CY3280-SLM Board Connector (J6) Figure 4-11. CY3280-SLM Board Connector J6 is the connector for this board connecting with CY3280-SLM Universal CapSense Linear Slider Controller Module. The CY3280-SLM Universal CapSense Linear Slider Controller Module is used for CapSense demonstration. R66, R67, and R7 are not populated as default. The following table lists the pin use when these two boards are connected.
  • Page 31 Hardware Design Table 4-3. Pin Usage (continued) Port of PSoC Description P1[2] Connect to LED1 of CY3280-SLM Board P1[3] Connect to Button4 of CY3280-SLM Board P1[5] P1[7] P3[3] Connect to Button3 of CY3280-SLM Board Ground Ground P2[1] Connect to Button2 of CY3280-SLM Board P2[3] Connect to Button1 of CY3280-SLM Board P2[5]...
  • Page 32: Capsense Plus Module Connector (J7)

    Hardware Design 4.2.12 CapSense Plus Module Connector (J7) Figure 4-12. CapSense Plus Module Connector The J7 connector can be used to connect the custom CapSense Plus module board such as a tem- perature sensor. The resistors R68 and R69 are not populated by default. The following table lists the pin connection on the J7 connector to CY8C22045-24AXI chip.
  • Page 33: Test Point And Description

    Hardware Design Table 4-4. Pin Connection (continued) PSoC Port Description Ground Ground P4[7] GPIO P4[6] GPIO P4[5] GPIO P4[4] GPIO P4[3] GPIO P4[2] GPIO P4[1] GPIO P4[0] GPIO Ground Ground GPIO GPIO P1[1] GPIO P1[0] GPIO Ground Ground PSoC VCC power supply Vadj Variable power supply External power supply...
  • Page 34 Hardware Design Note: Intentionally left blank. CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 35: Code Examples

    Code Examples Create a CapSense Project Using PSoC Designer This code example describes the steps to create a PSoC Designer project. At the end of the code example, you can touch a button on the board and see the corresponding LED light up. For details on basic CapSense working, refer to Getting Started with CapSense.
  • Page 36 Code Examples 2. Select File > New Project and name the project MyProject, as shown in Figure 5-1. 3. To save the project in a different location, click Browse and navigate to the desired directory. Figure 5-1. New Project 4. In the Target Device option, choose CY8C22545-24AXI from the drop-down menu, as shown in Figure 5-1.
  • Page 37: Add Csd2X, Led, And Ezi2Cs User Module To Your Design

    Code Examples Figure 5-2. Default View 5.1.2.1 Add CSD2X, LED, and EzI2Cs User Module to Your Design 1. In the User Module window, expand the Cap Sensors folder. Figure 5-3. Cap Sensors Folder 2. Double-click CSD2X or right-click CSD2X and select Place, as shown in Figure 5-4.
  • Page 38 Code Examples Figure 5-4. User Modules Window-CSD Select 3. In the Choose a CSD2X Configuration dialog, select Dual-channel with IDAC Configuration. 4. Click OK; see Figure 5-5. Figure 5-5. CSD2X Configuration Dialog 5. Expand the Digital Comm folder and place the EzI2Cs user module; to do this, double-click EzI2Cs or right-click EzI2Cs and select Place, as shown Figure 5-6.
  • Page 39 Code Examples Figure 5-6. User Module Window-EzI2Cs Select 6. Expand Misc Digital folder and place the LED user module; to do this, double-click LED or right- click LED and select Place, as shown in Figure 5-7. Figure 5-7. LED User Module 7.
  • Page 40 Code Examples Figure 5-8. Workspace Explorer Window 8. All seven selected user modules are displayed in the Workspace Explorer window. CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 41: Configure Led And Ezi2Cs User Modules

    Code Examples 5.1.2.2 Configure LED and EzI2Cs User Modules 1. Select the LED_1 user module in the Workspace Explorer window, as shown in Figure 5-9. Figure 5-9. LED_1 Properties 2. In the Properties - LED_1 window, set Port as Port_2, Pin as Port_2_5, and Drive as Active Low, as shown in Figure 5-10.
  • Page 42: Configure Sensor Csd2X User Module

    Code Examples 5. Select the EzI2Cs_1 user module in the Workspace Explorer window. Set the following: Slave Addr to ‘67’ ■ Address_Type to ‘Static’ ■ ROM_Registers to ‘Disable’ ■ I2C Clock to ‘100K Standard’ ■ I2C Pin to “P[1]0-P[1]1” ■ Figure 5-11.
  • Page 43 Code Examples Diplex to 'False' Resolution to '50' Sensor count to '10' Figure 5-13. CapSense Wizard - Sensor Settings Figure 5-14. CapSense Wizard 4. To assign the sensor on a particular pin, click and drag from the sensor block to the required pin in the Pin Assignment window.
  • Page 44 Code Examples ment can be done in Chip Pin Assignment View (Figure 5-15) or Table Pin Assignment View (Figure 5-16). Figure 5-15. Chip Pin Assignment View Figure 5-16. Table Pin Assignment View and then click OK. 5. Assign the switches to the corresponding pin numbers listed in Table 5-2 CY3280-22x45 Universal CapSense®...
  • Page 45 Code Examples Table 5-2. Button Assignment Buttons Pins P3[1] P1[3] P3[3] P2[1] P2[3] Table 5-3. Slider Segment Slider Segments Pins S1(0) P1[4] S1(1) P0[6] S1(2) P0[4] S1(3) P0[2] S1(4) P2[6] S1(5) P2[4] S1(6) P2[2] S1(7) P2[0] S1(8) P3[2] S1(9) P3[0] 6.
  • Page 46: Program Cy3280-22X45 Board

    Code Examples Figure 5-18. Global Resources 8. Update the main.c content (Workspace Explorer > MyProject > Source Files > main.c) with the contents of 'main.c' present in the example project (<Installed Directory>\CY3280- of this user guide and select Build Generate/ 22x45\1.0\Firmware\CY3280_22x45_SLM) Build 'MyProject' Project.
  • Page 47 Code Examples Table 5-4. Settings in Program Part Window Parameter Value Acquire Mode Power Cycle Verification Power settings 5.0 V 3. From the Port menu, select MiniProg1/<Identification Code> and click the Toggle Power but- ton, to power the board from the MiniProg, as shown in Figure 5-20.
  • Page 48: Test The Board

    J3 using I C-USB bridge and a USB cable. 2. Go to Start > Cypress > Open Bridge Control Panel. Note Bridge Control Panel is installed as part of the PSoC Programmer installation process. 3. Select the device from the Connected I2C/SPI-USB converters: window and click on the Connect/Disconnect button.
  • Page 49 Code Examples Figure 5-23. Variable Settings 7. Sample data read: Reading raw count of BTN0: a. Send I2C write instruction W 43 00 00 once. b. Press the Repeat button to send the following I2C read instruction continuously R 43 @1RawCount @0RawCount a.
  • Page 50 Code Examples CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 51: Appendix

    Appendix Schematics Place test points next to connector P2. Place test points near edge of board. While Using External Crystal, Vadj CY8C22X45 OCD CY8C22X45 OCD C1 0.1uF C1 0.1uF Do Not Plug Mini Programmer. Vadj TP2 Testpoint TP2 Testpoint TP5 Testpoint TP5 Testpoint Note: Default Use R47 TP7 Testpoint...
  • Page 52: Top Silk Screen

    Appendix Top Silk Screen CY3280-22x45 Universal CapSense® Controller Development Kit Guide, Doc. # 001-51921 Rev. *H...
  • Page 53: Bill Of Materials (Bom)

    Appendix Bill of Materials (BOM) Item Qty Reference Description Manufacturer Mfr Part Number BAT 9V Holders CT1,CT2,CT3,CT4 CAP TANTALUM 10UF 25V 10% SMD AVX Corporation TAJC106K025R C1,C5,C9,C10,C1 CAP CER 0.10UF 25V X7R 10% 0603 AVX Corporation 06033C104KAT2A 1,C12,C13 CAP CER 10000PF 25V C0G 5% C2,C3 TDK Corporation C1608C0G1E103J...
  • Page 54: Regulatory Compliance Information

    RES 1.0K OHM 1/10W 5% 0603 SMD Panasonic - ECG ERJ-3GEYJ102V R63,R64,R65 TP1,TP2,TP3,TP4, TP5,TP6,TP7,TP8, TEST POINT PC MINI .040"D BLACK Keystone Electronics 5001 TP9, TP10,TP11 Cypress Semiconductor PSoC CY8C22045-24PVXI Corp. LP3875EMP-ADJ/ IC REG LDO 1.5A ADJ SOT223-5 National Semiconductor NOPB LM1117MPX-5.0/ IC REG LDO 800MA 5.0V SOT-223...
  • Page 55: Revision History

    Revision History Document Revision History ® Document Title: CY3280-22x45 Universal CapSense Controller Development Kit Guide Document Number: 001-51921 Origin of Revision ECN# Issue Date Description of Change Change JPLU / 2689499 3/23/09 New kit guide AESA JPLU / 2697173 4/23/09 Changed board name AESA 3210194...

Table of Contents