Page 2
Cypress against all charges. Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty provisions.
Contents Safety Information 1. Introduction Kit Contents .........................7 Getting Started......................8 Additional Learning Resources..................8 Technical Support......................8 Document Conventions ....................8 2. Software Installation Kit Software .........................9 Install Hardware......................10 Uninstall Software......................10 Open the PSoC 4 Code Example Project in PSoC Creator........11 3. Kit Operation Connecting the PSoC 4 Prototyping Kit to a Computer ..........13 CY8CKIT-049-4xxx USB COM Port ................14 3.2.1 Configuring the COM Port................15...
Page 4
Contents 6. USB-Serial Configuration USB-Serial Resources....................51 USB-Serial Configuration Utility................. 51 6.2.1 Connecting to a USB-Serial Device ............... 52 6.2.2 Configuring a Serial Port................53 6.2.3 Configuring GPIOs..................56 6.2.4 Additional Features of the USB-Serial Device ..........57 A. Appendix CY8CKIT-049-4xxx Schematics ................
Safety Information Regulatory Compliance The CY8CKIT-049-4xxx Prototyping Kit 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.
Page 6
Safety Information General Safety Instructions ESD Protection ESD can damage boards and associated components. Cypress recommends that you perform procedures only at an ESD workstation. If such a workstation is not available, use appropriate ESD protection by wearing an antistatic wrist strap attached to the chassis ground (any unpainted metal surface) on your board when handling parts.
Introduction ® Thank you for your interest in the PSoC 4 CY8CKIT-049-4xxx family of prototyping kits. The proto- typing kit is designed as an easy-to-use and inexpensive prototyping platform for users wishing to rapidly develop products using the PSoC 4 families and use the unique flexibility of the PSoC 4 architecture.
Introduction Getting Started This user guide helps you to get acquainted with the PSoC 4 Prototyping Kit. The Software Installation chapter on page 9 describes the installation of the PSoC Creator software. The Operation chapter on page 13 explains how to program the kit using a bootloader or a MiniProg3. Hardware chapter on page 28 details the hardware operation of the kit.
Software Installation Kit Software The PSoC 4 Prototyping Kit does not require installation, but it is recommended that you install the following content: PSoC Creator™ ■ ■ EZ-USB Software Development Kit (SDK) To install PSoC Creator, download the installer from the download table on the PSoC Creator web page and install it.
Software Installation 5. Run the installer and select the folder to install the USB-Serial SDK files. Choose the directory and click Next. Figure 2-2. Select Installation Folder for PSoC Creator 6. Accept the Software License Agreement by selecting I Agree and then click Next. After the installation is complete, the following software tools are installed on your computer: USB-Serial Configuration Utility ■...
Software Installation Open the PSoC 4 Code Example Project in PSoC Creator 1. Launch the PSoC Creator software from the Start menu. Figure 2-3. PSoC Creator Start Page 2. Open the example project from the Start Page. Click File > Open > Project/Workspace, and open the example project downloaded from the kit page.
Kit Operation The PSoC 4 Prototyping Kit is simplistic in design and focuses on providing you with complete access to develop applications using the PSoC 4 device family. The development kit supports a number of onboard functions such as an LED, push button, through-hole connections, USB-Serial connectivity to the PC, and a breakable board design to separate the two target boards.
Kit Operation Figure 3-3. PSoC 4 Prototyping Kit Connected to the Computer CY8CKIT-049-4xxx USB COM Port When you connect CY8CKIT-049-4xxx to the PC over a USB interface, it enumerates as a COM port device under the Device Manager window in Windows OS. Often, the COM port number will be higher than any existing COM port value.
Kit Operation Figure 3-6. Driver Software Installation Complete 3.2.1 Configuring the COM Port Different USB COM devices are connected to different USB ports and the PC assigns COM port val- ues to those devices. As more devices are connected, the COM port values will continue to increase.
Page 16
Kit Operation Figure 3-8. Configuring COM Port for CY8CKIT-049-4xxx 3. Select the Port Settings tab and click the Advanced… button. Figure 3-9. Configuring COM Port Settings for CY8CKIT-049-4xxx CY8CKIT-049-4xxx PSoC 4 Prototyping Kit Guide, Doc. #: 001-90711 Rev. **...
Kit Operation 4. Click the COM Port Number drop-down menu and select an available COM port; click OK. Some COM ports will have the indicator (in use). Select a port that does not have this identifier. Figure 3-10. Configuring COM Port Settings for CY8CKIT-049-4xxx The Device Manager window will then display the new COM port value.
Kit Operation 3.3.1 Programming a CY8CKIT-049-4xxx Project Using MiniProg3 To use MiniProg3 for programming, connect wires or a 5-pin 100-mil spaced header to the program- ming header on the CY8CKIT-049-4xxx board. The programming header is a 5-pin header indicated on the silkscreen and is labeled ‘PROG’. This connector is oriented to mate directly with MiniProg3's 5-pin header.
Page 19
Kit Operation Figure 3-14. CY8CKIT-049-4xxx Connections for MiniProg3 The code examples described in this section show how to bootload new projects into PSoC 4 and create bootloader and bootloadable projects. To access the kit examples, download the examples from the kit web page. The initial example shows how to program the kit with just a bootloader using MiniProg3.
Page 20
Kit Operation Figure 3-16. Opening the Project in PSoC Creator The example opens and displays the project files in the Workspace Explorer. The workspace includes two sample projects linked in the Workspace Explorer - a bootloader project and a boot- loadable project.
Kit Operation Figure 3-19. Programming the CY8CKIT-049-4xxx The Select Debug Target window opens. Figure 3-20. Debug Target Window 8. Click Port Settings, set the connector to 5 pin, and then click OK. 9. Click Port Acquire to detect the target device, click Connect, and then click OK. PSoC Creator programs the target.
Page 22
Kit Operation the project must be configured as bootloadable. This is the default programming method for new users. The following steps use the example project downloaded from the kit web page. 1. Launch PSoC Creator from the Start menu. 2. From the Start Page, select File > Open > Project/Workspace. 3.
Page 23
Kit Operation Figure 3-23. Open Schematic View 6. In the schematic view, right-click the Bootloadable component and select Configure. Figure 3-24. Configure the Bootloader Component 7. In the configuration window, select the Dependencies tab and click the Browse button to point to the HEX and ELF files generated when the bootloader project was built in Programming a CY8CKIT-049-4xxx Project Using MiniProg3 on page...
Page 24
Kit Operation Figure 3-25. Configure Dependencies for Bootloader Component 8. Select Build > Build Bootloadable Blinking LED. Figure 3-26. Build the Project 9. Connect the CY8CKIT-049-4xxx prototyping board to the PC. When connecting the kit to the port, depress the SW1 button as it is plugged in. You will notice that the LED begins to blink rapidly;...
Page 25
Kit Operation Figure 3-27. Launch Bootloader Host Tool The Bootloader Host tool opens. Figure 3-28. Bootloader Host Tool 11. Click Filters and select the Show UART Devices option from the Port Filters window and click OK. This lists all COM devices connected to the computer. CY8CKIT-049-4xxx PSoC 4 Prototyping Kit Guide, Doc.
Page 26
Kit Operation Figure 3-29. Port Filters The Bootloader Host tool will now display all of the available UART based COM ports. 12.Click the COM port from the list of available ports and enter the UART configuration such as Baud Rate, Data Bits, Stop Bits, and Parity for the USB-UART configuration on the USB-Serial device.
Kit Operation USB-UART Default Settings The default configuration of the USB-Serial device on the CY8CKIT-049-4xxx prototyping kit is the USB-UART mode. The CY8CKIT-049-4xxx also enables a default UART connection between the USB-Serial device and the PSoC 4. This connection is indicated by two parallel 4-pin headers in the middle of the board.
Hardware Theory of Operation PSoC 4 is a new generation of programmable system-on-chip device from Cypress for embedded applications. It combines programmable analog, programmable digital logic, programmable I/O, and a high-performance ARM Cortex-M0 core. With PSoC 4, you can create the combination of peripher- als required to meet your application's specifications.
Hardware 4.3.1.1 Measure PSoC 4 Current Consumption You can measure the current consumption of the PSoC 4 device by using one of these methods: Method 1: 1. Separate the USB-Serial board by 'snapping' the perforated edge between the two boards. 2.
Hardware Table 4-5. Pin Details of J6 USB-Serial Comm/GPIO Header (J6) Signal Description Signal Description J5_01 Power J5_02 Ground J5_03 S SEL Mode 0-6 J5_04 MISO/SCL Mode 0-6 J5_05 MOSI/SDA Mode 0-6 J5_06 SCLK Mode 0-6 J5_07 SCB.5/GPIO_7 Mode 0-6 Table 4-6.
Page 35
Hardware Figure 4-9. Push Button Schematic 4.3.4.2 CY8CKIT-049-4xxx LEDs CY8CKIT-049-4xxx contains two LEDs: the amber LED, which indicates the board is power applied and the blue LED that is directly connected to the PSoC 4 device through the pin P1.6. The blue LED is also used to indicate the bootloader mode by rapidly blinking.
Page 36
Hardware Figure 4-13. User LED Connection 4.3.4.3 System Capacitors The three capacitors on the CY8CKIT-049-4xxx prototyping kit enable proper development of ADC and CapSense example projects. These capacitors are the following: A SAR ADC bypass capacitor: Required for proper sampling at high frequencies, ■...
Example Projects This section describes how to use the example project included with the kit and how to develop cus- tom bootloadable example projects for new applications. Bootloader Base Example Project The CY8CKIT-049-4xxx prototyping board is pre-programmed with a simple blinking LED example project.
Example Projects Figure 5-1. UART Bootloader The Bootloader Base Project includes the source code in the main.c and the UART_Btld.c files, which support bootloading the PSoC 4 device. The source code is available for reference, but is not necessary to create bootloadable applications. Bootloadable Example Project The example in Programming a CY8CKIT-049-4xxx Project Using the Bootloader on page 21...
Example Projects Figure 5-2. Bootloadable Blinking LED Project Creating a New Bootloadable Project To create a new bootloadable project, do the following: 1. On the Start Page of PSoC Creator, click Create New Project. 2. On the New Project window, select an Empty PSoC 4 Design. 3.
Page 40
Example Projects Figure 5-3. Creating a New Bootloadable Project PSoC Creator generates a new project. 7. Navigate to the schematic view to place your components (double-click on the .cysch file from the project in Workspace Explorer). Select the Page 1 tab in the schematic if it is not already selected. The key component that must be added is the Bootloadable component, which is used to generate the bootloadable application code.
Page 41
Example Projects Figure 5-4. Bootloadable Project Schematic 8. Double-click the Bootloadable component to configure the selections. The selections must be the same as those in the example project. Refer to Programming a CY8CKIT-049-4xxx Project Using the Bootloader on page Figure 5-5. Configure Bootloadable Component 9.
Example Projects Figure 5-6. Specifying the References 11. After the project builds without errors, follow the steps shown in Programming a CY8CKIT-049- 4xxx Project Using the Bootloader on page 21 to bootload the new code into the target using the Bootloader Host application.
Page 43
Example Projects Figure 5-7. Open Existing Project From PSoC Creator 3. On the Workspace Explorer window, right-click the project and select Build Settings. Figure 5-8. Specifying the Build Settings for the Project 4. Under Code Generation, change the Application Type to Bootloadable from the drop-down list. 5.
Page 44
Example Projects Figure 5-9. Build Settings for the Project 6. Open the schematic view by double-clicking the .cysch file from the Workspace Explorer window. Select the Page 1 tab in the schematic if it is not already selected. Figure 5-10. Opening the Schematic View 7.
Page 45
Example Projects Figure 5-11. Schematic View 8. Double-click the Bootloadable component to configure the selections. Figure 5-12. Configuring the Bootloadable Component 9. Click the Dependencies tab to select the .hex and .elf file from the UART_Bootloader project included with the kit. You must always point your bootloadable project to a base bootloader project.
Page 46
Example Projects Figure 5-13. Configuring the Bootloadable Component Dependencies 11. Select Build > Build {Project Name} to build the project. Figure 5-14. Building the Project 12.Connect the CY8CKIT-049-4xxx kit to the PC while pressing the SW1 button. This puts the device into the bootloader mode. 13.From the PSoC Creator menu, select Tools >...
Example Projects Figure 5-15. Bootloader Host Configuration 15.Click the Open File button and navigate to the bootloadable project's .cyacd file. Typically, the file path is [Project Path]\Lab 1 Blink.cydsn\CortexM0\ARM_GCC_473\Debug. 16.Click Program. When the firmware is programmed, observe that the LED flashing rate has changed. You can go back into your example project and modify the value in the CyDelay function to change the fre- quency of the LED flashing.
Page 48
Example Projects 9. Click the Dependencies tab to select the .hex and .elf file from the UART_Bootloader project included with the kit. You must always point your bootloadable project to a base bootloader project. The bootloader project can be in the same workspace as your bootloadable project, but this is not necessary. This project uses the default application shipped with CY8CKIT-049-4xxx.
Page 49
Example Projects 14. Change the UART pin selection to P4[0] for RX and P4[1] for TX to align with the default pin con- nections on CY8CKIT-049-4xxx. Figure 5-18. Changing Pin Selections 15.Click Build > Build {Project Name}. 16.Connect the CY8CKIT-049-4xxx kit to the PC while pressing the SW1 button. This puts the device into the bootloader mode.
Page 50
Example Projects Figure 5-20. PuTTY Terminal Configuration The COM terminal software displays both the typed data and the echoed data from PSoC 4. Note that in Figure 5-20, local echo is enabled (forced on). This causes the typed value to be displayed along with the returned value so that each key pressed will show up twice in the terminal window.
USB-Serial Configuration The CY8CKIT-049-4xxx Prototyping Kits support the CY7C6521x family of USB controller products. The CY7C6521x devices are a family of full-speed USB-Serial bridge controllers. These bridge con- trollers offer configurable serial channels for UART, I2C, SPI, or GPIO interfaces, with the industry's lowest power consumption in the stand-by mode (5 µA).
USB-Serial Configuration Figure 6-1. USB-Serial Configuration Utility 6.2.1 Connecting to a USB-Serial Device 1. Connect the CY8CKIT-049-4xxx prototyping kit to the PC. 2. Open the USB-Serial Configuration Utility. 3. Select the Select Target tab. Figure 6-2. Selecting the Target in USB-Serial Configuration Utility The USB-Serial Configuration Utility will automatically detect that the USB-Serial Device has been connected to the PC and will display the device in the Select Device drop-down menu.
USB-Serial Configuration After connecting to the device, a new tab opens that displays the device marketing part number. Figure 6-3. Selecting the Connected Device 5. Select the new tab and begin configuring the device. 6.2.2 Configuring a Serial Port The USB-Serial device acts as a USB-UART bridge for the CY8CKIT-049-4xxx development kit. You can use the Configuration Utility to read the default settings and configure new UART settings.
Page 54
USB-Serial Configuration The Configure UART Settings window appears, which displays the default settings for your UART-Serial device. Figure 6-5. Configuring UART Settings 4. Change the UART settings such as Baud Rate or Type by selecting the new values from the respective drop-down lists, and click OK.
Page 55
USB-Serial Configuration Figure 6-8. Resetting the Device The utility will immediately detect that the device has been reconnected and display the Select Target tab. Figure 6-9. Device After Reconnection 7. Connect to the device and navigate to the UART configuration window to see that the new config- uration has been set.
USB-Serial Configuration Figure 6-10. Device UART Parameters Changed 6.2.3 Configuring GPIOs The USB-Serial device included in the CY8CKIT-049-4xxx Prototyping Kit also supports GPIO con- trols through the J6 header. Each of the serial protocols requires a different number of GPIO pins. Based on your serial configuration, the number of available GPIOs will change.
USB-Serial Configuration 3. Click Configure on the Unused GPIOs drive mode. This launches the GPIO configuration win- dow. This example shows how to change the output mode of the GPIO 08 pin to drive an output. You can connect the pin to the PSoC 4, an LED, or any external circuitry. 4.
Bill of Materials Table A-1. Bill of Materials Item Reference Value Description Mfr Name Mfr Part Number PCB, 92.13mm x 24.13mm, High Tg, Cypress Semi- ENIG finish, 2 layer, Color = RED, Silk = 600-60178-01 conductors WHITE C1,C3,C5,C7,C8, CAP CERAMIC 1.0UF 25V X5R 0603 1.0 uF Taiyo Yuden TMK107BJ105KA-T...
Page 66
Revision History CY8CKIT-049-4xxx PSoC 4 Prototyping Kit Guide Revision History Document Title: CY8CKIT-049-4xxx PSoC 4 Prototyping Kit Guide Document Number: 001-90711 Origin of Revision Issue Date Description of Change Change 02/03/2014 RKAD New kit guide CY8CKIT-049-4xxx PSoC 4 Prototyping Kit Guide, Doc. #: 001-90711 Rev. **...
Need help?
Do you have a question about the CY8CKIT-049-4 Series and is the answer not in the manual?
Questions and answers