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.
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.
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.
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;...
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...
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®...
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.
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...
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.
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...
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...
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 ■...
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.
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.
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...
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.
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.
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.
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]...
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.
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.
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...
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.
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®...
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.
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.
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...
Need help?
Do you have a question about the Universal CapSense CY3280-22x45 and is the answer not in the manual?
Questions and answers