background image

CY3280-SmartSense™ CapSense

®

Auto-Tuning Kit Guide

Doc. # 001-64672 Rev. *B

Cypress Semiconductor

198 Champion Court

San Jose, CA 95134-1709

Phone (USA): 800.858.1810

Phone (Intnl): 408.943.2600

http://www.cypress.com

Содержание CapSense CY3280-SmartSense

Страница 1: ...CY3280 SmartSense CapSense Auto Tuning Kit Guide Doc 001 64672 Rev B Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypress com ...

Страница 2: ...ITNESS FOR A PARTICULAR PURPOSE Cypress reserves the right to make changes without further notice to the materials described herein Cypress does not assume any liability arising out of the application or use of any product or circuit described herein Cypress does not authorize its products for use as critical components in life support systems where a malfunction or failure may reasonably be expec...

Страница 3: ...7 1 6 Documentation Conventions 7 2 Kit Operation 9 2 1 CY3280 SmartSense Kit Board 10 2 1 1 Board Features 10 2 1 2 System Block Diagram 10 2 1 3 Power Sources 11 2 1 4 Controller Pin Assignment 11 2 1 5 Connector Details 12 3 Load CapSense Example Projects 13 3 1 CapSense Project CSD Manual Tuning 14 3 1 1 Load Project 15 3 1 2 Build Project 16 3 1 3 Program Project 17 3 1 4 Run Project 18 3 1 5...

Страница 4: ...4 CY3280 SmartSense CapSense Auto Tuning Kit Guide Doc 001 64672 Rev B Contents A Appendix 25 A 1 Schematics 25 A 2 Board Layouts 27 A 3 Bill of Materials 29 ...

Страница 5: ...280 SmartSense schematic 1 3 Installation Everything you need to use the CY3280 SmartSense kit is included install the software to load and run the example projects on the board 1 3 1 Before You Begin All Cypress software installations require administrator privileges but this is not required to run the installed software Close any Cypress software that is currently running Disconnect any ICE Cube...

Страница 6: ...ectory The default location is C Program Files Cypress CY3280 SmartSense 1 0 CY3280 SmartSense Documentation 1 3 4 Factory Default Configuration When shipped the CY3280 SmartSense kit is loaded to run the SmartSense example project The LED is expected to toggle when the corresponding button is touched For a demonstration of the self tuning capability of SmartSense algorithm refer 3 2 5 Self Tuning...

Страница 7: ...iProg3 references with MiniProg1 Table 1 2 Document Conventions for Guides Convention Usage Courier New Displays file locations user entered text and source code C cd icc Italics Displays file names and reference documentation Read about the sourcefile hex file in the PSoC Designer User Guide Bracketed Bold Displays keyboard commands in procedures Enter or Ctrl C File Open Represents menu paths Fi...

Страница 8: ...8 CY3280 SmartSense CapSense Auto Tuning Kit Guide Doc 001 64672 Rev B Introduction ...

Страница 9: ...placed below the kit in the battery holder The board has three connectors Connector J5 is used for ISSP programming and to demonstrate self tuning capability of the SmartSense algorithm Connectors J1 and J2 are used to expand controller I O pins Touch the Power Button first and ensure the power LED is turned on Each CapSense button is mapped to an LED LED 0 to LED3 such that activation of each but...

Страница 10: ... a series pass switch controlled by the CapSense based power button Protection diodes are placed to avoid accidental short between the two power sources External supply through J5 connector is directly fed to CapSense controller Four CapSense buttons and LEDs are connected to the CapSense controller and are used for dem onstration purpose Unused I Os from CapSense controller are routed to expansio...

Страница 11: ... across the power button switch circuitry External supply should be greater than 2 0 V and less than 3 8 V to get 1 71 V to 3 6 V sup ply on the CapSense controller Figure 2 3 Insert Battery in Batter Holder 2 1 4 Controller Pin Assignment Pin assignment of the CapSense controller is shown in the following table To learn how to assign pins for your design refer to the CY8C20246A data sheet Type Pi...

Страница 12: ... Connector J5 ISSP Header J5 1 VDD External J5 2 GND J5 3 XRES J5 4 P1 1 ISSP SCL J5 5 P1 0 ISSP SDA Expansion Connector J1 J1 1 P0 4 J1 2 XRES J1 3 P1 5 J1 4 P1 7 J1 5 GND J1 6 GND J1 7 P2 3 J1 8 P2 5 J1 9 P0 1 J1 10 P0 7 Expansion Connector J2 J2 33 P1 2 J2 34 NC J2 35 GND J2 36 GND J2 37 NC J2 38 NC J2 39 GND J2 40 GND J2 41 VDD External Gated by POWER BUTTON J2 42 NC ...

Страница 13: ...rtSense Firmware Before beginning follow each of these steps to make certain that your software and hardware environments are properly configured and ready for these projects 1 Install PSoC Designer following the steps in 1 3 3 PSoC Designer Installation Procedure on page 6 2 Connect the MiniProg1 into your PC using mini USB connector You can purchase the programmer from http www cypress com rID 3...

Страница 14: ...apSense Project CSD Manual Tuning This section outlines the conventional method of tuning a project CSD with manual tuning The example project demonstrates four CapSense buttons controlled by the CSD user module to detect the button press Any button press detected is indicated by toggling the corresponding LED Figure 3 2 illustrates the code flow ...

Страница 15: ...rkspace 3 Locate the project directory 4 Open the CapSense_Manual_Tuning folder 5 Double click CapSense_Manual_Tuning app The project opens in the chip editor view All the project files are in workspace explorer Intialize CapSense LED modules Scan all sensors Update the baseline count for all sensors Is any sensor active Boot Decode the active sensor number and toggle corresponding LED Turn Off al...

Страница 16: ...ure 3 3 Chip Editor View 3 1 2 Build Project To build a project select Build Generate Build PSoC Designer builds the project and displays comments in the Output window When you see the message that the project is built with 0 errors and 0 warnings you are ready to program the device Figure 3 4 Build Project ...

Страница 17: ...ogram Part window a Select MiniProg1 in the PortSelection box b Set Acquire Mode to Power Cycle If the board is already powered from AAA batteries or from external supply through J2 set Acquire Mode to Reset c Set Verification to ON This ensures that downloaded checksum matches actual checksum d Set Power Settings to 5V e Click program arrow to program the device 3 Wait until programming is comple...

Страница 18: ...responding LED2 toggles 3 Connect the supplied axial capacitor of 10 pF value between J5 5 and J5 2 this adds to the par asitic capacitance of BTN2 see Figure 3 7 4 Toggle the board power 5 Touch BTN2 the BTN2 LED2 link is broken This failure occurs due to manual tuning see Figure 3 8 6 Repeat step 2 3 and 4 with 22 pF 33 pF and 68 pF axial capacitors This experiment demonstrates that sensors need...

Страница 19: ...72 Rev B 19 Load CapSense Example Projects Figure 3 7 Connect Axial Capacitor to Connector J5 picture to be updated Figure 3 8 Broken Link in BTN2 LED2 1 Touch BTN2 LED2 remains off 2 Release BTN2 LED2 continues to remain off 3 Touch BTN2 again LED2 remains off ...

Страница 20: ...ggling the corresponding LED Figure 3 9 illustrates the code flow Figure 3 9 SmartSense Method Flowchart 3 2 1 Load Project 1 Open PSoC Designer 2 Click File Open Project Workspace 3 Locate the project directory 4 Open the CapSense_SmartSense_AutoTuning folder 5 Double click CapSense_SmartSense_AutoTuning app The project opens in the Chip Editor view All the project files are in workspace explorer...

Страница 21: ...ure 3 10 Chip Editor View 3 2 2 Build Project To build a project select Build Generate Build PSoC Designer builds the project and displays comments in the Output window When you see the message that the project built with 0 errors and 0 warnings you are ready to program the device Figure 3 11 Build Project ...

Страница 22: ... 1 3 Power Sources on page 11 Touch a CapSense button on the board to see the corresponding LEDs toggle See Figure 3 6 3 2 5 Self Tuning Demonstration 1 Power the board using one of the sources listed in 2 1 3 Power Sources on page 11 2 Touch BTN2 the corresponding LED2 toggles 3 Connect the supplied axial capacitor of value 10 pF between J5 5 and J5 2 this adds to the par asitic capacitance of BT...

Страница 23: ...F and can be used as a guide to set sensor sensitivity The sensor sensitivity should always be set at or below the sensor response indicated in Figure 3 13 This ensures robust operation Note that the area shaded in red must be avoided because the sensor response is below the minimum 0 1 pF that can be detected by SmartSense Figure 3 13 Relationship between Button Size Overlay Thickness and Sensor ...

Страница 24: ...ing Kit Guide Doc 001 64672 Rev B Load CapSense Example Projects Figure 3 14 SmartSense Property Window 5 Follow steps in 3 2 2 Build Project 3 2 3 Program Project and 3 2 4 Run Project to build pro gram and run the modified example project ...

Страница 25: ...BTN3 1 206 R D4 LE D Red 2 1 LE D0 LE D1 1 206 R D5 LE D Red 2 1 1 206 R D6 LE D Red 2 1 LE D2 1 206 R D7 LE D Red 2 1 CapSense Buttons CON_P0 4 LE D3 R 13 56 0E C4 2200 pFd LEDs J 2 CON N H E ADE R 10P OS 100 R A 15AU 33 33 35 35 37 37 39 39 41 41 34 34 36 36 38 38 40 40 42 42 P 1 5 POT2 10k 1 3 2 P0 4 R18 ZE RO 1 2 R20 1 5K 1 1 2 VDD_Dev J5 5 HEA DER 1 2 3 4 5 XRES I2C_SDA I2C_SCL R19 5 1K 1 1 2...

Страница 26: ... only to demonstrate SmartSense self tuning capability SmartSense requires an external modulation capacitor Cmod connected from VSS to one of two dedicated PSoC pins P0 1 or P0 3 The CY3280 SmartSense kit uses P0 3 as the Cmod C4 pin The recommended value for the external modulation capacitor is 2 2 nF A ceramic capacitor must be used The temperature capacitance coefficient is not important Cypres...

Страница 27: ...CY3280 SmartSense CapSense Auto Tuning Kit Guide Doc 001 64672 Rev B 27 A 2 Board Layouts A 2 1 PDC 09587 Top ...

Страница 28: ...28 CY3280 SmartSense CapSense Auto Tuning Kit Guide Doc 001 64672 Rev B A 2 2 PDC 09587 Bottom ...

Страница 29: ...Corporation RC0603FR 075K1L 11 5 R4 R11 R13 R14 R1 5 560E RES 560 OHM 1 16W 5 0402 SMD Yageo Corporation RC0402JR 07560RL 12 5 R5 R9 R10 R16 R17 330 ohm RES 330 OHM 1 8W 1 0805 SMD Panasonic ECG ERJ 6ENF3300V 13 5 R6 R7 R22 R23 R24 ZERO RES 0 0 OHM 1 10W 5 0805 SMD Panasonic ECG ERJ 6GEY0R00V 14 1 U3 CY8C20246A CY8C20246A Cypress CY8C20246A 15 1 U1 CY8CMBR2044 CY8CMBR2044 Cypress CY8CMBR2044 16 1 ...

Страница 30: ...Copal Electronics Inc CUS 14TB 28 1 SW2 SPDT SWITCH SLIDE SPDT 3A RT ANGLE E Switches EG1270 29 1 R18 ZERO RES 0 0 OHM 1 10W 5 0805 SMD Panasonic ECG ERJ 6GEY0R00V 30 1 D8 DIODE SCHOTTKY DIODE SCHOTTKY 0 5A 20V SOD 123 Fairchild Semiconduc tor MBR0520L Item Qty Reference Value Description Manufacturer Mfr Part Number ...

Отзывы: