CY3214 PSoCEVALUSB Kit Guide Doc No. 001-67030 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.
Copyrights Copyrights © Cypress Semiconductor Corporation, 2011-2012. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights.
Contents 1. Introduction 1.1 1.2 1.3 1.4 Kit Contents .................................................................................................................5 Additional Learning Resources....................................................................................6 1.2.1 Reference Documents .....................................................................................6 Document History ................................................................................................
Contents 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.2.1 Project Description......................................................................................... 51 5.2.2 Hardware Connections .................................................................................. 51 5.2.3 Firmware Architecture.................................................................................... 53 5.2.4 Verify Output ..................................................................................................
1. Introduction Thank you for your interest in the CY3214-PSoCEVALUSB Kit. This kit includes a development board for the CY8C24894-24LTXI PSoC® device. Note that the board has the CY8C24094 device, which is an on-chip debug part for the CY8C24x94 family. You can design your own projects with PSoC Designer™ or by altering the code examples provided with this kit. It is a combination of technologies that create opportunities for a new range of low-cost, mixed-signal USB products.
Introduction 1.2 Additional Learning Resources Visit www.cypress.com for additional learning resources in the form of data sheets, technical reference manuals, and application notes. 1.2.1 1.3 Reference Documents ■ Schematic diagram for the CY3214 PSoCEVALUSB board: http://www.cypress.com/go/CY3214-PSoCEvalUSB ■ CY8C24894-24LTXI data sheet: http://www.cypress.com/?mpn=CY8C24894-24LTXI ■ PSoC MiniProg1 details: http://www.cypress.com/go/CY3217-MiniProg1 ■ ICE-Cube details: http://www.cypress.
Introduction Table 1-1. Document Conventions for Guides Convention Usage File >> Open Represents menu paths: File >> Open >> New Project Bold Displays commands, menu paths, and icon names in procedures: Click the File icon and then click Open. Times New Roman Displays an equation: 2+2=4 Text in gray boxes Describes cautions or unique functionality of the product. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Introduction 8 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
2. Getting Started This chapter describes how to install and configure the CY3214-PSoCEVALUSB Kit. 2.1 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. Note You can also download the latest kit installer from http://www.cypress.com/go/CY3214PSoCEvalUSB. Three different types of installers are available for download. a.
Getting Started Note If auto-run does not execute, double-click cyautorun.exe file on the root directory of the CD/DVD, as shown in Figure 2-2. Figure 2-2. Root directory of the CD/DVD 3. On the startup screen, click Next to start the installer. 4. The InstallShield Wizard screen is displayed, with the default location for setup. You can change the location using Change, as shown in Figure 2-3. 5. Click Next to launch the kit installer. Figure 2-3. InstallShield Wizard 6.
Getting Started Figure 2-4. Installation Type Options 8. When the installation begins, a list of all packages appears on the Installation Page. 9. A green check mark appears adjacent to every package that is cached and installed. Wait until all the packages are downloaded and installed successfully. Figure 2-5. Installation Page CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Getting Started 10.Click Finish to complete the installation of the CY3214-PSoCEVALUSB Kit, as shown in Figure 2-6. Figure 2-6. Installation Completion Page Note Advanced users can skip to Code Examples chapter on page 31. 2.2 PSoC Designer PSoC Designer is the revolutionary easy-to-use Integrated Development Environment (IDE) that helps to customize PSoC to meet your specific application requirements. PSoC Designer accelerates system bring-up and time-to-market. 1.
Getting Started Figure 2-7. PSoC Designer Interconnect View CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Getting Started 2.3 PSoC Programmer To open the PSoC Programmer, click Start > All Programs > Cypress > PSoC Programmer > PSoC Programmer . To successfully program the device, follow these steps: 1. Use the Power button to power up the CY3214-PSoCEVALUSB kit before loading the hex file on to the kit. Figure 2-8. PSoC Programmer 2. Click the File Load button to load the respective hex file. 3. Click the Program button to program the hex file to the chip. 4.
3. 3.1 Kit Operation Introduction The CY3214-PSoCEVALUSB kit examples helps you to exchange data between a PC application and real world I/O. The kit includes a full-speed USB User Module with programmable I/O user modules to provide instant connection. 3.2 Square Mouse Example The Square Mouse example is programmed to the CY3214-PSoCEVALUSB board as a default project for demonstration purposes.
Kit Operation 3.2.1 Programming Specifications and Connections When the MiniProg is connected, you can use PSoC Programmer to program the CY3214PSoCEVALUSB kit. Plug in the USB cable into the MiniProg before attaching it to the ISSP header on the board. When using a USB cable with MiniProg, keep the length under six feet to avoid signal integrity issues. When using MiniProg, the LEDs blink at a variable rate to track connection status.
Kit Operation Figure 3-3. PSoC Programmer Screen File Load Program Toggle Power Follow these steps to program using MiniProg1: 1. Connect the USB cable to the PC and MiniProg1 2. Plug in the MiniProg1 to the ISSP header on the CY3214-PSoCEVALUSB board 3. When USB is connected to the MiniProg1, the LED (green) glows in the MiniProg1 4. Open PSoC Programmer 5. Click the Load File button and browse to the hex file location. Click Open to select the hex file 6.
Kit Operation 18 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
4. Hardware This section provides an overview of the hardware, including power system, jumper setting, and programming interface. To start using the board, go to Code Examples chapter on page 31. 4.
Hardware Figure 4-1. CY3214-PSoCEVALUSB Board Table 4-1. Functional Pin Table 20 Pin No. Pin Name 1 P2[3] Direct switched capacitor block input Description 2 P2[1] Direct switched capacitor block input 3 P4[7] GPIO 4 P4[5] GPIO 5 P4[3] GPIO 6 P4[1] GPIO 7 P3[7] GPIO 8 P3[5] GPIO 9 P3[3] GPIO 10 P3[1] GPIO 11 P5[7] GPIO 12 P5[5] GPIO 13 P5[3] GPIO 14 P5[1] GPIO CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Hardware Table 4-1. Functional Pin Table Pin No.
Hardware Figure 4-2. Hardware Block Diagram ,663 86% '& 6XSSO\ &RQWUDVW 3RWHQWLRPHWHU &DS6HQVH %XWWRQV DQG 6OLGHUV &KDUDFWHU /&' 'LVSOD\ 3RZHU 6XSSO\ ,663 &RQQHFWRU ,&( &XEH &RQQHFWRU -R\VWLFN 5HVHW %XWWRQ %X]]HU 36R& %XWWRQV 6 DQG 6 56 ,QWHUIDFH 3RWHQWLRPHWHU 95 DQG 95 4.2 Functional Description 4.2.1 Character LCD Module 86% &RQQHFWRU /('V The kit has a character LCD module, which goes into the character LCD header, P8.
Hardware 4.2.2 CapSense® Buttons (P3[0], P3[7]), and Sliders (Port5) There are two CapSense buttons and eight element CapSense sliders on the CY3214PSoCEVALUSB kit. CapSense Sigma Delta uses an external modulation capacitor (CMOD), the copper sensor pad on the CY3214 PSoCEVALUSB board, and bleed resistor (Rb) in addition to the sensor capacitor (Cx).
Hardware Figure 4-5. CapSense Buttons 4.2.3 Legacy DB9 Connector (J1) This connector is used for serial interface. Connect the serial cable to the DB9 connector and the serial port on the PC. The supply voltage is 3.3 V to 5 V; the output voltage Vout (high) is Vcc–0.6 V and Vout (low) is 0.4 V. Figure 4-6. DB9 Connector Table 4-2. IC Description 24 Pin No.
Hardware Table 4-2. IC Description Pin No. Pin Name Description 8 R2in 9 R2out Clear to send (OUT) Clear to send (IN) 10 T2in Request to send (IN) 11 T1in Transmitted data (IN) 12 R1out Receive data (OUT) 13 R1in Receive data (IN) 14 T1out Transmitted data (OUT) 15 Gnd Ground 16 Vcc Vcc supply Table 4-3. DB9 Connector Description 4.2.
Hardware 4.2.5 LEDs (LED1–4) Four LEDs are accessible through headers LED1–4. LEDs are illuminated by connecting the signal to Vss (active low, set drive to strong, drive low). These LEDs are active low. Figure 4-8. LEDs 4.2.6 Buzzer (LS1) The buzzer is accessible through LS1. Figure 4-9. Buzzer 26 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Hardware 4.2.7 ISSP Connector (J15) This is used to program the device using the MiniProg device and the USB cable. To load a hex file to the PSoC device chip, plug the MiniProg device to the jumper connector (J15). Figure 4-10. ISSP Connector 4.2.8 Joystick (JS1) A joystick is used to create a game. JSV (vertical pot value), JSH (horizontal pot value), and JSW (switch) are accessible through the header on the board. Figure 4-11. Joystick CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Hardware 4.2.9 Reset Button (S3) The reset button is used to reset the CY3214-PSoCEVALUSB kit. Figure 4-12. Reset Button 4.2.10 ICE-Cube Connector (J14) The ICE-Cube (available in the CY3215-DK Kit) provides significant debugging functionality that requires full two-way communication between the ICE and your computer. This software interface allows to run, halt, and single-step the processor and view the content of specific memory locations. It also allows to set complex event points.
Hardware Table 4-4. Pin Description Pin No 1 2 3 4 5 6 7 8 4.2.11 Pin Name OCDHC GND XRES GND OCDCC OCDDO OCDDE VCC Pin Description OCD high-speed clock output Ground Reset signal (required only for Reset programming mode) Ground OCD CPU clock output OCD odd data output OCD even data I/O. Supply voltage USB Connector (P1) The mini USB type B connector is compatible with USB 2.0 connector specifications. The RC filter is used to isolate the VBUS from the on-board voltage domain. Figure 4-14.
Hardware 4.2.13 Buttons (S1 and S2) These are SPST (single pole, single throw) switches. Figure 4-16. Buttons 30 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
5. Code Examples All code examples for the CY3214-PSoCEVALUSB kit are available at the following location: :\Cypress\CY3214-PSoCEVALUSB\\Firmware. 5.1 My First Code Example 5.1.1 Project Objective This example demonstrates how to operate the CapSense buttons and sliders. When you configure CapSense buttons and sliders in the CSD wizard, the corresponding LEDs check the functionality of CapSense buttons provided on the board.
Code Examples 5.1.2 Flowchart 6WDUW ,QLWLDOL]DWLRQ RI 8VHU 0RGXOHV 6FDQ &DS6HQVH EXWWRQV DQG VOLGHUV 1R 8SGDWH %DVHOLQH RI DOO WKH VHQVRUV ,I 6HQVRU YDOXH ! )LQJHU WKUHVKROG
Code Examples 5.1.3 Creating My First PSoC 1 Project 1. Open PSoC Designer. 2. To create a new project, click File > New Project. 3. In the New Project window, select the Chip-level icon. Name the project Example_My_First_PSoC_Project; see Figure 5-1. 4. Click Browse and navigate to the directory in which the project is being created. Figure 5-1. New Project Window 5. Click OK. The Select Project Type window opens. 6. In this window, under Select Target Device, click View Catalog, as shown in Figure 5-2.
Code Examples 8. For this project, click CY8C24894-24LTXI and then click Select. See Figure 5-3. Figure 5-3. Device Catalog Window 9. Under Generate 'Main' File Using:, select C and click OK. 10.By default, the project opens in chip view, as shown in Figure 5-4. 34 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-4. Default View Now, place and configure the modules required for this design. Also, connect the modules together and to the pins of the PSoC. 11. In the User Modules window, expand the Cap Sensors folder. Figure 5-5. User Modules Window CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 12.In the Cap Sensors folder, right-click on CSD to place the module. Figure 5-6. CSD Module 13.The splash screen "CSD Configuration" appears; select CSD with PRS8 as clock source. Figure 5-7. CSD Configuration 14.The CSD module is placed in the analog and digital blocks, as shown in the following figure. 36 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-8. Chip View with CSD Module 15.The default parameter window of CSD_1 is shown in Figure 5-9. Figure 5-9. Default CSD Parameter Window 16.Configure the CSD Module parameter window. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-10. CSD Parameter Window 17.In the Workspace Explorer, select CSD and right-click to select the CSD wizard. Figure 5-11. Select CSD Wizard 18.The default CapSense Wizard window appears. Configure the global settings to select the number of CapSense buttons and lights required for the project. 38 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-12. Default View of CSD Wizard 19.Configure the Global Settings window of CSD Wizard, as shown in the following figure. Figure 5-13. Global Settings Window 20.Similarly, click the slider once and configure the sensor settings, as shown in Figure 5-14. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-14. Sensor Settings Window 21.Select each of the CapSense switches SW0 and SW1; drag it to Table Pin Assignment View to select the ports for CapSense buttons Figure 5-15. Assign CapSense Switch to Port 22.Configure all CapSense sliders to ports, as shown in the following figure. 40 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-16. Assign CapSense Slider to Port 23.The CapSense buttons and sliders appear as follows. Figure 5-17. Assigned CapSense Buttons and Slider View 24.In the User Module Window, select Misc Digital Folder to select the LCD module. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-18. User Module Window 25.Place the module by right-clicking on the LCD and select Place. 42 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-19. Select LCD Module 26.Default LCD_1 parameters window are shown in the following figure. Figure 5-20. Default LCD_1 Parameter Window 27.Rename LCD_1 as LCD and configure the parameters to build the project successfully. Figure 5-21. LCD Parameter Window 28.In the User Module window, go to Misc Digital folder and select LED. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-22. Select LED Module 29.Default LED_1 parameter window appears, as shown in the following figure. Figure 5-23. Default LED_1 Parameter Window 30.Configure LED_1 parameter to successfully build the project. Figure 5-24. LED_1 Parameter Window 44 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 31.Similarly add another LED module and rename it to build the project. Figure 5-25. LED_2 Parameter Window 32.Finally, LCD and LED modules are placed in Chip view window. Figure 5-26. LED and LCD Modules 33.Configure the Global Resources window as shown in the following figure. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-27. Global Resources Window 34.Open the existing main.c file in Workspace Explorer. Replace the existing main.c with the contents of CapSense.c file, which is attached to this document. Figure 5-28. Workspace Explorer 35.Save the project. 36.Click Build > Generate/Build 'Example_My_First_PSoC_Project'. 37.When the project is built successfully, connect the CY3214-PSoCEVALUSB kit to PC through a MiniProg1 Connector (J15) on the board. 46 CY3214-PSoCEVALUSB Kit Guide, Doc No.
Code Examples Figure 5-29. Connect MiniProg1 to Board 38.The board can be programmed either through PSoC Designer IDE itself or by launching PSoC Programmer. 39.To program the board using PSoC Programmer, see PSoC Programmer on page 14. 40.To program the board through PSoC Designer, follow these steps. a. Click on Program > Program Part. Note When programming the board from PSoC Designer, close any open instance of PSoC Programmer. Figure 5-30. Program Part Window b.
Code Examples - Port Selection: select MiniProg1/ with the status Connected - Acquire Mode: Power Cycle - Verification: Off - Power Settings: 5.0 V c. Click on the Program button to start programming the board. d. The programming starts and the status is displayed on the progress bar. Figure 5-31. Programming Status e. When the programming is done successfully, the 'Operation Succeeded!' Message is shown. Figure 5-32. 'Operation Succeeded!' Message 5.1.4 Verify Output 1.
Code Examples Figure 5-33. USB Connection to Board Figure 5-34. Port Selection and Resistor Connection CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 2. When the CapSense slider is touched, the horizontal bar-graph is displayed on the LCD. Figure 5-35. Bar-Graph on LCD 3. LED1 glows when CapSense button P30 is touched. Figure 5-36. LED1 Glows for Button P30 50 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 4. LED2 glows when CapSense button P37 is touched. Figure 5-37. LED2 Glows for Button P37 5. Save and close the project. 5.2 Buttons and Lights Example 5.2.1 Project Description This code example demonstrates the USB function using the CY3214-PSoCEVALUSB Kit. In this project, the Buttons and Lights PC Host GUI is used to control the LEDs on board. The GUI also has four soft buttons and four LEDs.
Code Examples Figure 5-38. Hardware Connection Figure 5-39. Workspace Explorer of Buttons and Lights 52 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.2.3 Firmware Architecture 5.2.3.1 Device Program Firmware Architecture Figure 5-40. Flowchart 67$57 7LPHU /RFDO %XWWRQ 3UHVV" &RQQHFW WR +RVW <(6 6HQG %XWWRQV 5HSRUW <(6 8SGDWH /RFDO /('V 12 /LJKWV 5HSRUW 5HFY" :DLW 12 5HWXUQ 5.2.3.2 Host Program Firmware Architecture Figure 5-41.
Code Examples 5.2.4 Verify Output 1. Load the Example1.hex from :\Cypress\CY3214-PSoCEVALUSB\\Firmware\ButtonsAndLights\PSoC Project\Example1, as explained in Programming Specifications and Connections on page 16. 2. On successful programming, disconnect the MiniProg1 and connect the board to PC. 3. Open the Buttons and Lights GUI (Example1.exe) from :\Cypress\CY3214-PSoCEVALUSB\\Firmware\ButtonsAndLights\PC Software\Example1. 4.
Code Examples 5.3 Temperature Sensing Keyboard 5.3.1 Project Description This project example operates similar to a keyboard, although it does not look like a standard keyboard. The example is a temperature sensor using potentiometer (VR1 and VR2) as surrogates for real temperature sensors. When plugged in using USB, the project enumerates as a keyboard and starts printing out temperature values. The following modules are used in the project: 5.3.
Code Examples Figure 5-44. Hardware Connection Figure 5-45. Device Configuration of Temperature Sensing Keyboard 56 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.3.3 Firmware Architecture Figure 5-46. Flowchart 67$57 ,QLWLDOL]H DOO 8VHU 0RGXOHV :DLW :KLOH ,I 'DWD LV DYDLODEOH <(6 'LVSOD\ WHPSHUDWXUH YDOXHV RQ /&' 12 *HW PRUH VDPSOHV (1' CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.3.4 Verify Output 1. Load the Example2.hex from :\Cypress\CY3214-PSoCEVALUSB\\Firmware\Temperature Sensing Keyboard\PSoC Project\ Example2\, as explained in Programming Specifications and Connections on page 16. 2. Open either a Microsoft Excel 2003 or 2007 application or a Windows Notepad application on the computer and plug in the board using USB. 3.
Code Examples Figure 5-48. Temperature Sensor Output on Excel spreadsheet 5.4 Process Monitoring 5.4.1 Project Description The process monitoring system code demonstrates how to collect the analog data at a rate determined by the host. The host then displays the data in a graph and is able to save and reload the data sets.
Code Examples 5.4.2 Hardware Connection Connect the jumper wire between P0.3 (P03 on J4) and VR1 on J2. Figure 5-49. Hardware Connection Figure 5-50. Device Configuration of Process Monitoring 60 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.4.3 Firmware Architecture Figure 5-51. Flowchart 67$57 &RQQHFW WR +RVW :DLW (QDEOH (3 IRU 287 WUDQVIHU :KLOH 12 ,I GDWD LV DYDLODEOH IURP $'& 12 YES 'LVSOD\ WKH 7HPSHUDWXUH 9DOXHV ,I GDWD LV VXSSOLHG <(6 12 ,I HQWLUH GDWD LV VXSSOLHG <(6 'LVSOD\ WKH 6DPSOHV 9DOXH /RDG DQG HQDEOH (3 IRU ,1 WUDQVIHU CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.4.4 Verify Output 1. Program the board with Example3.hex from :\Cypress\CY3214PSoCEVALUSB\\Firmware\Process Monitoring\PSoC Project\ Example3\, as explained in Programming Specifications and Connections on page 16. 2. On successful programming, disconnect the MiniProg1 and connect the board to the PC. 3. Wait until the HID device is installed (first time only) and run Example3.exe.
Code Examples Figure 5-53. GUI Display 5.5 Async_PingExample 5.5.1 Project Description The project demonstrates asynchronous data transfer by sending a series of large USB write (OUT) and read (IN) requests by using USB functionality, which is available with CY8C24894 device. The following user module is used in the project: ■ 5.5.2 USBFS_1: This module is used to handle the request from the USB host (PC) to communicate with the device.
Code Examples 5.5.3 Driver Installation The driver installation steps are for Windows XP and not Windows 7. Program the CY3214PSoCEVALUSB board with the Async_ping.hex, located at: :\Cypress\CY3214-PSoCEVALUSB\\Firmware\ Async_PingExample\PSoC Project\async_ping and connect the board to the PC using a USB cable. When connecting the board for the first time, follow these steps to install the USB driver for this project. 1.
Code Examples 3. Select Have Disk to select the appropriate INF file. Find the Async_PingExample drivers setup in the following path: :\Cypress\CY3214-PSoCEVALUSB\\Firware\Async_PingExample\Driver_Setup Figure 5-57. Device Driver Path 4. Click on Continue Anyway. Figure 5-58. Installation Page 5. Click Finish to complete the driver installation. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-59. Installation Complete Page 6. After successful driver installation, confirm in the following path: Start > right-click My Computer > Manage > Device Manager > Universal Serial Bus Controller. Figure 5-60. Detect Async_Ping Example in Universal Serial Bus Controller 66 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.5.4 Firmware Architecture Figure 5-61. Flowchart 67$57 &RQQHFW WR +RVW (QDEOH (3 IRU 287 ,QWHUUXSW 7UDQVIHU :KLOH 12 ,I F(S &RXQW <(6 /RDGV DQG (QDEOHV WKH (3 IRU DQ ,1 ,QWHUUXSW WUDQVIHU 5.5.5 Verify Output 1. Program the board with async_ping.hex from :\Cypress\CY3214PSoCEVALUSB\\Firmware\Async_PingExample\PSoC Project\ async_ping, as explained in Programming Specifications and Connections on page 16. 2.
Code Examples Figure 5-62. Output 5.6 Bulk_PingExample 5.6.1 Project Description The project demonstrates bulk data transfer by sending a series of end point-sized USB write (out) and read (in) requests. The host effectively sends blocking writes and reads while the PSoC firmware reads the OUT packets and fills the IN data from it. The following user module is used in the project: ■ 5.6.2 USBFS_1: This module is used to handle the request from the USB host (PC) to communicate with the device.
Code Examples 5.6.3 Driver Installation Program the CY3214-PSoCEVALUSB board with the Bulk_ping.hex located at :\Cypress\CY3214-PSoCEVALUSB\\Firmware\ Bulk_PingExample\PSoC Project\bulk_ping and connect the board to the PC using a USB cable. When connecting the board for the first time, follow steps 1 to 5 in the section Driver Installation on page 64. At step 3, browse and locate BulkPing.
Code Examples 5.6.4 Firmware Architecture Figure 5-65. Flowchart 67$57 &RQQHFW WR +RVW (QDEOH (3 IRU 287 %XON 7UDQVIHU :KLOH <(6 :KLOH F(S &RXQW <(6 12 F(S &RXQW *HW WKH YDOXH RI WKH (3 FRXQW UHJLVWHU 0RYH GDWD IURP (3 5$0 WR 'DWD 5$0 /RDG DQG (QDEOH WKH (3 IRU DQ ,1 %XON WUDQVIHU 70 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.6.5 Verify Output 1. Program the board with bulk_ping.hex from :\Cypress\CY3214PSoCEVALUSB\\Firmware\Bulk_PingExample\PSoC Project\bulk_ping. 2. On successful programming, disconnect the MiniProg1 and connect the board to the PC. 3. Run Bulk_Ping_Host.exe from :\Cypress\CY3214-PSoCEVALUSB\\Firmware\Bulk_PingExample\PC_Host_App. 4.
Code Examples Figure 5-67. Device Configuration of ISoc_Example 5.7.3 Driver Installation Program the CY3214-PSoCEVALUSB board with the Bulk_ping.hex located at :\Cypress\CY3214-PSoCEVALUSB\\Firmware\ ISoc_Example\PSoC Project\isotest and connect the board to the PC using a USB cable. When connecting the board for the first time, follow steps 1 to 5 in the section Driver Installation on page 64. At step 3, browse and locate ISoc.
Code Examples 5.7.4 Firmware Architecture Figure 5-69. Flowchart 67$57 &RQQHFW WR +RVW (QDEOH (3 IRU 287 ,QWHUUXSW 7UDQVIHU :KLOH <(6 F2QFH <(6 F2QFH 0RYH GDWD IURP (3 5$0 WR 'DWD 5$0 12 /RDG DQG (QDEOH (3 IRU DQ ,1 ,QWHUUXSW 7UDQVIHU F2QFH 5.7.5 Verify Output 1. Program the board with isotest.hex from :\Cypress\CY3214-PSoCEVALUSB\\Firmware\ISoc_Example\PSoC Project\isotest. 2.
Code Examples 3. Run Streamer.exe located at :\Cypress\CY3214-PSoCEVALUSB\ \Firmware\ISoc_Example\PC_Host_App. 4. Click on Start. 5. Observe the button window Successful Transfers. Figure 5-70. Output 5.8 USBUART 5.8.1 Project Description The USBUART device uses a USB interface to emulate a COM port.UART like high level functions are available on the PSoC device side.
Code Examples Figure 5-71. Basic USBUART Block Diagram &< & ; 86% 8$57 Figure 5-72. Basic Diagram 3& 3& $SSOLFDWLRQ &20 'ULYHU &'& 'ULYHU 86% 86%8$57 36R& $SSOLFDWLRQ 5.8.2 Hardware Connections No hardware connections are required. CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples Figure 5-73. USBUART Device Configuration 5.8.3 Driver Installation For driver installation, follow steps 1 to 6 in the section Driver Installation on page 64 (sample project: Async_PingExample). At step 3, browse and locate the INF file from :\Cypress\CY3214-PSoCEVALUSB\\Firmware\USBUART\USBUART\USBUART\lib.
Code Examples 5.8.4 Firmware Architecture Figure 5-75. Flowchart 67$57 ,QLWLDOL]DWLRQ RI 8VHU 0RGXOHV :KLOH <(6 12 *HW WKH FRXQW RI WKH 5HFHLYLQJ 'DWD ,I WKH FRXQW RI 5HFHLYHG 'DWD <(6 5HDG DOO WKH GDWD IURP WKH 5HFHLYH EXIIHU 12 :KLOH 7UDQVPLW EXIIHU LV UHDG\ WR VHQG GDWD <(6 ,I 5HFHLYH EXIIHU> @ FDUULDJH UHWXUQ <(6 12 6HQGV D FDUULDJH UHWXUQ [ ' DQG OLQH IHHG [ $ WR WKH 3& :ULWH WKH GDWD SUHVHQW LQ WKH 5HFHLYH EXIIHU CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.8.5 Verify Output 1. Program the board with USBUART.hex from :\Cypress\CY3214PSoCEVALUSB\\Firmware\USBUART\USBUART, as explained in Programming Specifications and Connections on page 16. 2. On successful programming, disconnect the MiniProg1 and connect a USB cable from the board to a free USB port on PC. 3. When connecting for the first time, wait for the device to be installed. 4. Ignore the Digital Signature warning when prompted; click on Continue Anyway. 5.
Code Examples Figure 5-77. ASCII Setup Figure 5-78. Messages Displayed on HyperTerminal CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.9 Joystick 5.9.1 Description This project is used to control the mouse cursor movement using the joystick onboard. The joystick movements are digitized using an ADC and the change in ADC values are used to decipher the direction of movement.The USBFS module is used to enumerate as a mouse device and the mouse is controlled based on the ADC value and direction of movement. The following user modules are used in the project: 5.9.
Code Examples Figure 5-80. Device Configuration of Joystick CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
Code Examples 5.9.3 Firmware Architecture Figure 5-81.
Code Examples 5.9.4 Verify Output 1. Program the board with Joystick.hex from :\Cypress\CY3214PSoCEVALUSB\\Firmware\Joystick. 2. On successful programming, disconnect the MiniProg1 and connect the board to the PC. 3. When the joystick on the kit is moved vertically up, vertically down, horizontally left, horizontally right, and also diagonally in all directions, observe the corresponding movement of the mouse pointer on your monitor screen. Figure 5-82.
Code Examples 84 CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
A. Appendix Schematic 3 4 VR1 JP4 VCC 1 2 2 VCC R9 2.
A.2 Board Layout A.2.1 CY3214 -PSoCEVALUSB Top Copper CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
A.2.2 CY3214-PSoCEVALUSB Top Overlay CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
A.2.3 CY3214 -PSoCEVALUSB Bottom Copper CY3214-PSoCEVALUSB Kit Guide, Doc No. 001-67030 Rev.
A.3 Bill of Materials (BOM) Description Designator Footprint CY3214-PSoC EvalUSB PCB Qty. Value Vender 1 VPN 121R-36800 Capacitor C1 CC2012-0805 1 1.0uF,16V Digikey PCC1849TR-ND Capacitor C2 CC2012-0805 1 0.001uF Digikey 399-1148-2-ND Capacitor C3, C9, C10 CC2012-0805 3 0.1uF Digikey PCC1864TR-ND Capacitor C4, C5, C6 CC2012-0806 3 0.
Description Simple Test point Designator TP1, TP2, TP3, TP4, TP5, TP6, TP7 U1 Footprint Qty. TP64 7 100TQFP 1 Radon OCD Part RS-232 tranceiver (0.47uF Caps) Voltage Regulator U2 SO-16 1 U3 TO-220 1 Capacitor C7 1206 1 Resistor, SMT R10 R2012-0805 SPECIAL JUMPER INSTALLATION: Jumper pins 2 and 3 "VREG" on P3 DO NOT POPULATE: Vender Digikey RADON VPN 5006K-ND Cypress CY8C24094-24AXI Digikey 296-19851-2-ND Digikey 497-3456-5-ND Digikey PCC2292CT-ND 1 ADJ 0.010uF +/10% 5.