Cypress CY8CKIT-031 - крупномасштабная плата со встроенными микроконтроллерами и разнообразными функциями. Бесплатное руководство по эксплуатации доступно для скачивания с manualshive.com. Идеальный выбор для разработчиков и энтузиастов электроники.
CY8CKIT-031
PSoC
®
CapSense
Expansion Board Kit Guide
Doc. # 001-66474 Rev. *H
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
http://www.cypress.com
Страница 1: ...CY8CKIT 031 PSoC CapSense Expansion Board Kit Guide Doc 001 66474 Rev H Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 http www cypress com ...
Страница 2: ...ility arising out of any security breach such as unauthorized access to or use of a Cypress product In addition the products described in these materials may contain design defects or errors known as errata which may cause the product to deviate from published specifications To the extent permitted by applicable law Cypress reserves the right to make changes to this document without further notice...
Страница 3: ...2 2 Hardware 12 2 3 Software 12 3 Kit Operation 13 4 Code Examples 16 4 1 Migrating the projects to use with CY8CKIT 050 and CY8CKIT 010 16 4 2 Code Example 1 BMM_USB 16 4 2 1 Project Description 16 4 2 2 Hardware Connections 18 4 2 3 Verify Output 18 4 3 Code Example 2 SLM_USB 19 4 3 1 Project Description 19 4 3 2 Hardware Connections 19 4 3 3 Verify Output 20 4 4 Code Example 3 BMM_I2C_Tuner 21 ...
Страница 4: ...4 Rev H 4 Contents A Appendix 32 A 1 Schematic 32 A 2 Board Layout 33 A 2 1 PDC 09801 Top Layer 33 A 2 2 PDC 09801 Bottom Layer 33 A 3 Bill of Materials BOM 34 A 4 Board Files 34 A 5 Shielding Electrode 34 A 6 Regulatory Compliance Information 34 Revision History 35 ...
Страница 5: ...ay affect its performance and cause interference with other apparatus in the immediate vicinity If such interference is detected suitable mitigating measures should be taken The CY8CKIT 031 as shipped from the factory has been verified to meet with requirements of CE as a Class A product The CY8CKIT 031 contains electrostatic discharge ESD sensitive devices Electrostatic charges readily accumulate...
Страница 6: ... 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 Handling Boards CY8CKIT 031 boards are sensitive to ESD Hold the board only by its edges After removing the board from its box place it on a grounded static free surface Use a conductive foam pad if ava...
Страница 7: ...CPU With the PSoC you can create the exact combination of peripherals and integrated proprietary IP to meet your application needs 1 1 Kit Contents The CY8CKIT 031 kit includes CY8CKIT 031 PSoC CapSense Expansion Board CY3280 BMM Universal CapSense Matrix Button Module Kit CY3280 SLM Universal CapSense Linear Slider Module Kit Two 1 5 mm thick overlay and one 3 mm thick overlay Quick Start Guide R...
Страница 8: ...N54181 PSoC 3 Getting Started with a PSoC 3 Design Project AN77759 Getting Started with PSoC 5LP PSoC Creator Training 1 4 2 Engineers Looking for More AN54460 PSoC 3 PSoC 4 and PSoC 5LP Interrupts AN52705 PSoC 3 and PSoC 5LP Getting Started with DMA AN52701 PSoC 3 and PSoC 5LP Getting Started with Controller Area Network CAN AN54439 PSoC 3 and PSoC 5LP External Crystal Oscillators AN52927 PSoC 3 ...
Страница 9: ... locate the most relevant project PSoC Creator provides several starter designs These designs highlight features that are unique to PSoC devices They allow you to create a design with various components instead of creating a new empty design code is also provided To use a starter design for your project navigate to File New Project and select the design required Figure 1 2 New Project ...
Страница 10: ...d starter designs that are available within PSoC Creator Cypress continuously strives to provide the best support Click here to view a growing list of application notes for PSoC 3 and PSoC 5LP 1 5 Documentation Conventions Table 1 1 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 referen...
Страница 11: ...ert the kit CD into the CD drive of your computer The CD is designed to auto run and the PSoC CapSense Expansion Board Kit menu appears Figure 2 1 Kit Menu Note If auto run does not execute double click cyautorun exe on the root directory of the CD After the installation is complete the kit contents are available in the following location Install_Directory PSoC CapSense EBK version ...
Страница 12: ...before touching the hardware Follow the below steps to avoid any undesired behavior on the board Power off the development kit before making any connections Connect the PSoC CapSense Expansion Board Kit to the development kit being used Connect the CY3280 Universal CapSense Module Board to the PSoC CapSense Expansion Board Power the development kit 2 3 Software When installing the PSoC CapSense Ex...
Страница 13: ...Module Figure 3 1 CY8CKIT 031 PSoC CapSense Expansion Board Kit Figure 3 2 CapSense Matrix Button Module Figure 3 3 CapSense Linear Slider Module The PSoC CapSense Expansion Board Kit connects to the development kit using a 2 20 pin connector It connects to the CY3280 Universal CapSense Module Boards using 2 22 pin connector 2x20 Pin Connector for DVK Interface 2x22 Pin Connector for CapSense Inte...
Страница 14: ...Interface with PSoC 3 Development Kit and Universal CapSense Matrix Button Module Kit Note The figure shows the Capsense Expansion board connections when PSoC 3 processor module is used The same connections need to be done when PSoC 5LP Processor module is used 2x22 Connector 2x20 Connector Note The figure shows the Capsense Expansion board connections when PSoC 3 Development Kit is used The same ...
Страница 15: ...pin connector provides the I2 C interface Figure 3 6 I2C Connector Note The PSoC CapSense Expansion Board Kit can use only port A of the CY8CKIT 001 PSoC Development Kit Other ports port A port B and port C cannot be used with this kit MiniProg3 connection to I2C header for communication with GUI ...
Страница 16: ...ith CY8CKIT 050 and CY8CKIT 010 for more details Use the appropriate examples according to development kit being used All code examples are available in the directory Install_Directory PSoC CapSense EBK version Firmware 4 1 Migrating the projects to use with CY8CKIT 050 and CY8CKIT 010 By default the project works with PSoC 3 To use the project for PSoC 5LP change the device to CY8C5868AXI LP035 P...
Страница 17: ...8CKIT 001 The code proceeds to CapSense sensor scanning only if USB enumeration is successful When the USB enumeration is successful the LED4 on CY8CKIT 030 050 and LED1 on CY8CKIT 001 a jumper wire connection to P1_6 is required on board turns on The example is tested to work without any overlay When an overlay of some thickness is used the Sensitivity parameter should be changed appropriately fo...
Страница 18: ...ment kit Connect J2 on the CapSense Matrix Button Module to short SHIELD and SHLD Connect jumpers J10 and J11 to position 2 and 3 to use the board at 5 V Connect the USB cable from J2 on the development kit to the PC USB port Pin P6 3 is used for the Enumerate_LED which is connected to LED4 on the board therefore an explicit connection is not required Remove LCD from port P8 The LCD module adds pa...
Страница 19: ...ious Track Slider Left Right System Volume UP DOWN The code waits for the USB cable to be connected to the PC from the USB connecter on the board USB connector J2 on CY8CKIT 030 CY8CKIT 050LP and USB connector J9 on CY8CKIT 001 The code proceeds to CapSense sensor scanning only if the USB enumeration is successful When the USB enumeration is successful the LED4 on CY8CKIT 030 050 and LED1 on CY8CK...
Страница 20: ...t shares the same pins of port D that are used for CapSense If MiniProg3 is used then disconnect it from J3 after programming The programming port J3 shares the port D pins and adds noise on CapSense if MiniProg3 is present Note See Shielding Electrode on page 34 for more details 4 3 3 Verify Output Build and program the code example and reset the device After the device is reset wait for the Enum...
Страница 21: ...ense Matrix Buttons using Capsense_CSD component in PSoC Creator When a Capsense button is touched the leds corresponding to the Row and Column gets turned ON The project uses the auto tuning feature which sets all CapSense parameters to the best values automatically The parameter settings can be monitored in the GUI but cannot be altered because they are set by auto tuning 4 4 1 2 Hardware Connec...
Страница 22: ...and the example is tested to work without any overlay When an overlay of some thickness is used the sensitivity parameter should be changed to 1 as shown in Figure 4 1 on page 17 To configure the Sensitivity parameter double click on the CapSense_CSD component Click on the Scan Order tab Select the individual CapSense sensor and configure the sensitivity as required 4 4 2 2 Hardware Connections Co...
Страница 23: ... 2 3 Launching Tuner GUI The Tuner GUI from PSoC Creator should be up and running for the code example to work To launch the GUI follow these steps 1 Go to the project s TopDesign cysch file 2 To open the tuner right click on the CapSense_CSD component in PSoC Creator and click on Launch Tuner ...
Страница 24: ...indow 4 Set the I2C communication parameters same as that set in the EZI2C component 5 Select any option for the I2C Voltage other than External The external supply pin on the MiniProg3 VTARG connects to NC on the CY8CKIT 031 board Therefore the external supply option does not work with the CY8CKIT 030 and CY8CKIT 050LP 6 Click OK to apply the settings ...
Страница 25: ...k Start 2 Open the Graphing tab it shows different CapSense results RawCounts Baseline and Difference count signal for each sensor 3 Select the sensor parameter to observe as shown in Figure 4 5 See the graph for different vari ables 4 Touch the button and observe the increase in counts Note The Tuner GUI does not show correct output if multiple buttons are touched ...
Страница 26: ...en the Tuning tab and select a sensor row or column Different CapSense parameters are shown on the bottom right Because auto tuning is used in this project you cannot edit the set tings Auto tuning automatically sets all the parameters The GUI is used to monitor the CapSense variables RawCounts Baseline and Signal for all sensors Touch the button 0 Row 0 Col 0 to see the sensor response in the tun...
Страница 27: ...CY8CKIT 031 PSoC CapSense Expansion Board Kit Guide Doc 001 66474 Rev H 27 Code Examples Figure 4 6 Tuner Window Figure 4 7 Tuner Project ...
Страница 28: ...psense_CSD component in PSoC Creator When a Capsense button is touched the corresponding LED is turned ON If a finger is placed on the slider the nearest LED turns ON and the finger position is displayed on LCD The project uses the auto tuning feature which sets all CapSense parameters to the best values automatically The parameter settings can be monitored in the GUI but cannot be altered because...
Страница 29: ...SLM board turn on when the corresponding button is touched When a slider is touched the nearest LED turns on The code uses tuner APIs The tuner API CapSense_TunerComm is used in the main loop to scan sensors which also sends the CapSense variables RawCounts Baseline and Difference counts Signal to the PC GUI through I2C communication The example is tested to work without any overlay When an overla...
Страница 30: ... SCL and GND on the MiniProg3 are mapped to the corresponding I2C pins on the kit see Figure 3 6 on page 15 for the connections Note that when MiniProg3 is used for both I2C and programming the MiniProg3 should be disconnected from the PC every time a connection is changed Note See Shielding Electrode on page 34 for more details 4 5 2 3 Launching Tuner GUI See Launching Tuner GUI on page 23 for de...
Страница 31: ...eline and Difference count signal for the Column 0 sensor Figure 4 10 Graphs for CapSense Linear Slider Module Project Figure 4 11 Tuner Window Note The CY8CKIT 001 PSoC Development Kit gives lesser SNR performance The kit is not designed to give optimal CapSense performance Only 1 5 mm overlay should be used with the PSoC Development Kit ...
Страница 32: ... GPIO5 SDA V3 3 SCL GPIO7 GPIO14 GPIO13 GPIO18 GPIO21 GPIO23 Vadj V5 0 Vin V3 3 J6 J6 1 1 J5 J5 1 1 J4 J4 1 1 J2 22x2_RA_Recptacle J2 22x2_RA_Recptacle 2 2 1 1 4 4 3 3 6 6 5 5 8 8 7 7 10 10 9 9 12 12 11 11 14 14 13 13 16 16 15 15 18 18 17 17 20 20 19 19 22 22 24 24 26 26 28 28 30 30 32 32 34 34 36 36 38 38 40 40 21 21 23 23 25 25 27 27 29 29 31 31 33 33 35 35 37 37 39 39 42 42 41 41 44 44 43 43 J3...
Страница 33: ...CY8CKIT 031 PSoC CapSense Expansion Board Kit Guide Doc 001 66474 Rev H 33 Appendix A 2 Board Layout A 2 1 PDC 09801 Top Layer A 2 2 PDC 09801 Bottom Layer ...
Страница 34: ... itance changes In some applications it is useful to select the shielding electrode signal and its placement relative to the sensing electrode such that increasing the coupling between these electrodes causes the oppo site of the touch change of the sensing electrode capacitance measurement This simplifies the high level software API work The CSD User Module supports separate output for the shield...
Страница 35: ...r on page 5 Updated the images in Code Examples chapter on page 16 Shielding Electrode on page 34 and Regulatory Compliance Information on page 34 F 4194658 11 19 2013 SASH Updated Introduction chapter on page 7 Updated description Updated PSoC Creator on page 7 Updated description Updated Additional Resources on page 8 Updated Beginner Resources on page 8 Added AN77759 Getting Started with PSoC 5...
Страница 36: ...Without Tuning on page 21 Updated BMM_I2C_Tuning With Tuning on page 22 Updated Hardware Connections on page 22 Updated description Updated Launching Tuner GUI on page 23 Updated screenshots for step 1 step 2 and step 3 Updated Verify Output on page 25 Added a note below step 4 Updated screenshots for step 1 step 4 and step 5 Updated Code Example 4 SLM_I2C_Tuner on page 28 Added description Added ...