background image

CY8CKIT-049-4xxx PSoC® 4 Prototyping Kit Guide, Doc. #: 001-90711 Rev. *J

35

5.

Code Examples

This  section  describes  how  to  use  the  code  example  included  with  the  kit  and  how  to  develop
custom bootloadable code examples for new applications. 

For a list of all code examples available with PSoC Creator, visit the 

PSoC 3/4/5 Code Examples

page

. This page lists all the PSoC Creator based code examples available across PSoC Creator,

Application notes and kits. Most of these examples CANNOT be directly used with the kit. Refer to

Converting a Non-bootloadable Project to a Bootloadable Project on page 40

 for details on how to

port these projects to use with CY8CKIT-049.

For PSoC Creator related training and video tutorials, visit 

PSoC Creator training page

5.1

Bootloader Base Code Example

The  CY8CKIT-049-4xxx  prototyping  board  is  pre-programmed  with  a  simple  blinking  LED  code
example. This code example uses a PWM to slowly blink an LED. Included in the application project
is  the  Bootloader  Base  project.  The  Bootloader  code  is  detailed  in  the  UART_Bootloader  project
available on the kit web page. 

In the bootloader example, the device rapidly blinks an LED when the bootloader is active, provides
UART  communication  support  for  bootloading,  and  reads  the  state  of  the  switch  (SW1).  You  can
observe the state of the board by noticing the rate at which the LED blinks. The bootloader is acti-
vated  when  you  plug  in  the  CY8CKIT-049-4xxx  while  pressing  the  SW1  button.  The  bootloader
reads the state of this button during power-up. If the button is not pressed, the bootloader jumps to
the user's application code. If the button is pressed, then the bootloader waits for a new application
to be transferred. While the bootloader waits for the new application, it rapidly blinks the onboard
blue LED.

Note that the bootloader project is fully customizable, so you can use different methods for entering
the bootloader mode, and different feedback mechanisms. For example, you can change the project
so that it waits at power-up for a specified amount of time for a new application to be loaded rather
than  through  the  use  of  a  button  press.  All  resources  of  the  PSoC  are  available  for  use  by  the
bootloader project.

For details on UART bootloader in PSoC 4, please refer 

AN68272 - PSoC

®

 3, PSoC 4 and PSoC

5LP UART Bootloader

. The landing page of the application note also includes a video providing an

overview of a UART bootloader.

Summary of Contents for verical CYPRESS CY8CKIT-049-42 Series

Page 1: ...the information therein All referenced brands product names service names and trademarks are the property of their respective owners 00000005981LF 000 EOS Power Buy Now We have 45 000 LP502030 PCM NTC LD A02554 EEMB Lithium Battery Rectangular 3 7V 250mAh Rechargeable in stock now Starting at 0 034 This EEMB part is fully warrantied and traceable 1 855 837 4225 Give us a call International 1 555 5...

Page 2: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 www cypress com ...

Page 3: ... MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE To the extent permitted by applicable law Cypress reserves the right to make changes to this document without further notice Cypress does not assume any liability arising out of the application or use of any prod uct or circuit described in this document Any information provided in this document including any sample design information or progra...

Page 4: ...9 41xx CY8CKIT 049 42xx Software 13 2 3 Install Software 14 2 4 Install Hardware 14 2 5 Uninstall Software 14 2 6 Open the PSoC 4 Code Code Example in PSoC Creator 15 3 Kit Operation 16 3 1 Connecting the PSoC 4 Prototyping Kit to a Computer 16 3 2 CY8CKIT 049 4xxx USB COM Port 17 3 3 Programming a CY8CKIT 049 4xxx Project Using the Bootloader 18 3 4 USB UART Default Settings 25 4 Hardware 26 4 1 ...

Page 5: ...xample 41 5 4 2 Entering Bootloader Mode from the Bootloadable Application 49 6 USB Serial Configuration 53 6 1 USB Serial Resources 53 6 2 USB Serial Configuration Utility 54 6 2 1 Connecting to a USB Serial Device 55 6 2 2 Configuring a Serial Port 56 6 2 3 Configuring GPIOs 59 6 2 4 Additional Features of the USB Serial Device 61 A Appendix 62 A 1 CY8CKIT 049 4xxx Schematics 62 A 2 Programming ...

Page 6: ...efault may 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 049 4xxx Prototyping Kit as shipped from the factory has been verified to meet with requirements of CE as a Class A product The CY8CKIT 049 4xxx contains electrostatic discharge ESD sensitive devices Electr...

Page 7: ...n 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 Handling Boards CY8CKIT 049 4xxx 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 p...

Page 8: ...Y8CKIT 049 42xx PSoC 4 Prototyping kit has CY8C4245AXI 483 device on board The CY8CKIT 049 4xxx development kit also supports the Cypress USB Serial CY7C65211 Full Speed USB controller that enables PC connectivity and serial interfaces such as USB UART USB I2C USB SPI and USB GPIO The development kit includes a Cypress USB Serial controller used to bootload the target PSoC 4 device The PSoC 4 prot...

Page 9: ...families CapSense Design Guide Learn how to design capacitive touch sensing applications with the PSoC 4 family of devices Application Notes and Code Examples Cover a broad range of topics from basic to advanced level Many of the application notes include code examples Visit the PSoC 3 4 5 Code Examples webpage for a list of all available PSoC Creator code examples For accessing code examples from...

Page 10: ...SoC 4 and PSoC 5LP See Figure 1 2 with PSoC Creator you can 1 Drag and drop Components to build your hardware system design in the main design workspace 2 Codesign your application firmware with the PSoC hardware 3 Configure Components using configuration tools 4 Explore the library of 100 Components 5 Review Component datasheets Figure 1 2 PSoC Creator Features Visit PSoC Creator training page fo...

Page 11: ... shows In the Find Example Project dialog shown in Figure 1 4 on page 11 you have several options Filter for examples based on architecture or device family i e PSoC 3 PSoC 4 or PSoC 5LP category or keyword Select from the menu of examples offered based on the Filter Options Review the datasheet for the selection on the Documentation tab Review the code example for the selection You can copy and p...

Page 12: ...example projects demonstrate how to configure and use PSoC Creator Components Starter designs Choose File New Project PSoC 4 Starter Designs These starter designs demonstrate the unique features of PSoC 4 System Reference Guide Choose Help System Reference System Reference Guide This guide lists and describes the system functions provided by PSoC Creator Component datasheets Right click a Componen...

Page 13: ...stance Self help Local Sales Office Locations 1 4 Document 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 reference documentation Read about the sourcefile hex file in the PSoC Creator User Guide Bracketed Bold Displays keyboard commands in procedures Enter or Ctrl...

Page 14: ...le package in the PC Table 2 1 Kit Software Formats Install Package File Format Usage CY8CKIT 049 41xx_Kit ISO CY8CKIT 049 42xx_Kit ISO ISO This package can be used if the PC does not have any Cypress or non Cypress prerequisite software installed It first installs the prerequisites and then the kit content firmware hardware and documentation files in the specified location CY8CKIT 049 41xx_Kit Se...

Page 15: ...duct Installation Overview window The drop down menu contains three options Typical installs all the required features Custom lets you choose the features to be installed and Complete installs all the contents Click Next after you select the installation type Note It is recommended that you choose the Complete installation type 6 Read and Accept the End User License Agreement and click Next to pro...

Page 16: ... from the default install location to any other location on your PC and use the files 1 Launch the PSoC Creator software from the Start menu Figure 2 1 PSoC Creator Start Page 2 Open the SCB_Bootloader cywrk workspace by choosing File Open Project Workspace and navigating to the directory in which your project is present Figure 2 2 Open Project Workspace The workspace includes two sample projects ...

Page 17: ...C 4 Prototyping Kit to a Computer To use the PSoC 4 Prototyping Kit you need to connect the kit to a target PC The kit is designed to be connected to the computer through USB The USB connector will provide power to the target boards and enable serial communication CY8CKIT 049 4xxx implements a PCB based USB connector that makes connections to the USB port when plugged in The amber LED turns on whe...

Page 18: ... window on the Windows OS Often the COM port number will be higher than any existing COM port value For example in the following image the CY8CKIT 049 4xxx enumerates as COM37 Figure 3 4 CY8CKIT 049 4xxx USB COM Port in Device Manager When connecting your CY8CKIT 049 4xxx to a computer for the first time or to any new USB port it may take a moment to enumerate because the computer will complete an...

Page 19: ...ill see the device as a normal serial port and you will be able to set the baud rate However these settings may be ignored 3 3 Programming a CY8CKIT 049 4xxx Project Using the Bootloader The following example shows how to bootload program a project into the PSoC 4 with the USB Serial device using the Bootloader Host To use this method the PSoC 4 device must contain the bootloader and the project m...

Page 20: ..._Bootloader cywrk workspace from Examples and Kits Kits Select CY8CKIT 049 41xx folder for CY8CKIT 049 41xx PSoC 4 Prototyping Kit and CY8CKIT 049 42xx folder for CY8CKIT 049 42xx PSoC 4 Prototyping Kit 3 Select the folder where you want to save the project and click OK Figure 3 7 Open the Project ...

Page 21: ... Bootloadable Blinking LED project and select Set As Active Project Figure 3 8 Set the Code Example as Active Project The bootloadable project must be associated with the bootloader project s HEX and ELF files This will ensure that the firmware code mapping aligns with the code on the target device 6 Under the Bootloadable Blinking LED code example double click the TopDesign cysch file to open the...

Page 22: ...T 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 21 Kit Operation 7 In the schematic view right click the Bootloadable component and select Configure Figure 3 10 Configure the Bootloader Component ...

Page 23: ...nder project directory click OK The file paths assuming the CY8CKIT 040 42xx will appear as follows Project_Directory SCB_Bootloader UART_Bootloader cydsn CortexM0 ARM_GCC_484 Debug UART_Bootloader hex Project_Directory SCB_Bootloader UART_Bootloader cydsn CortexM0 ARM_GCC_484 Debug UART_Bootloader elf Figure 3 11 Configure Dependencies for Bootloader Component 9 Select Build Build Bootloadable Bl...

Page 24: ...as it is plugged in You will notice that the blue LED begins to blink rapidly this indicates that the PSoC 4 is in Boot loader Mode and is ready to be loaded with the latest firmware This must be done each time you bootload the PSoC 4 11 Select Tools Bootloader Host to open the Bootloader Host tool Figure 3 13 Launch Bootloader Host Tool The Bootloader Host tool opens Figure 3 14 Bootloader Host T...

Page 25: ...Baud Rate Data Bits Stop Bits and Parity for the USB UART configuration on the USB Serial device The values for the UART are 115200 baud rate 8 data bits 1 stop bit and no parity 14 Click File Open and navigate to the Bootloadable_Blinking_LED cyacd file generated in the CortexM0 folder in your project directory and click Open Figure 3 16 Opening the Generated File 15 Click the Program button to f...

Page 26: ...OM port Note that if the USB Serial device board is separated from the PSoC 4 board you will still be able to use the USB Serial device to communicate with any UART device using the 4 pin header The USB Serial device is by default configured as a USB UART device with the following specifications The USB UART settings can also be configured from the Cypress USB Serial Configuration Utility The defa...

Page 27: ...SoC 4 header ports J1 and J2 USB Serial device USB Serial header ports J5 and J6 GPIO UART connection J3 and J4 SCB and GPIO PCB USB connector One amber LED Power One blue LED User Push button External reference capacitor ADC Bypass CapSense and shield capacitors CMOD and CTANK Programming connector Perforated snappable board design Figure 4 1 CY8CKIT 049 4xxx Pin Details ...

Page 28: ...e PSoC 4 pins are brought out onto headers J1 to J2 on the kit and support 100 mil breadboard spacing The PSoC 4 Prototyping Kit can be powered from USB or an external power supply The input volt age is either 5 V from USB or a variable supply from an external source Figure 4 2 CY8CKIT 049 4xxx Functional Block Diagram 4 3 Functional Description 4 3 1 Power Supply System The power supply system on...

Page 29: ... be used either with USB power or with power supplied to one of the VDD pins 4 3 2 Board Separation Snapping CY8CKIT 049 4xxx supports both the PSoC 4 and USB Serial boards To separate the two boards for testing or development break the two boards apart at the built in perforated edge The easiest method of separating the two boards is to place the kit on the edge of a table where the edge of the t...

Page 30: ...eaders support 100 mil spacing so you can solder the male connectors to connect the CY8CKIT 049 4xxx to any development breadboard Figure 4 4 J1 and J2 Headers Table 4 1 J1 Header Pin Details PSoC 4 GPIO Header J1 Pin Signal Description J1_01 P4 0 GPIO J1_02 P4 1 GPIO J1_03 P4 2 GPIO CMOD J1_04 P4 3 GPIO CTANK J1_05 P0 0 GPIO J1_06 P0 1 GPIO J1_07 P0 2 GPIO J1_08 P0 3 GPIO J1_09 P0 4 GPIO J1_10 P0...

Page 31: ...etween the two devices When the boards are separated this physical connection is broken Figure 4 5 J3 and J5 Headers Table 4 2 J2 Header Pin Details PSoC 4 GPIO Header J2 Pin Signal Description J2_01 VDD Power J2_02 GND Ground J2_03 RESET Reset J2_04 P3 3 GPIO SWDCLK J2_05 P3 2 GPIO SWDIO J2_06 P3 7 GPIO J2_07 P3 6 GPIO J2_08 P3 5 GPIO J2_09 P3 4 GPIO J2_10 P3 3 GPIO SWDCLK J2_11 P3 2 GPIO SWDIO J...

Page 32: ...VDD and connections to passive elements and user input devices The J6 and J7 headers support 100 mil spacing so you can solder the male connectors to connect the USB Serial board to any development breadboard Figure 4 7 J6 and J7 Connectors Table 4 3 Pin Details of J3 Header PSoC 4 to USB Serial Header J3 Pin Signal Description J3_01 VDD Power J3_02 GND Ground J3_03 P4 0 UART RX J3_04 P4 1 UART TX...

Page 33: ...ootloader for pro gramming Figure 4 8 Push Button on the Board Table 4 5 Pin Details of J6 USB Serial Comm GPIO Header J6 Pin Signal Description J6_01 VDD Power J6_02 GND Ground J6_03 S SEL Mode 0 6 J6_04 MISO SCL Mode 0 6 J6_05 MOSI SDA Mode 0 6 J6_06 SCLK Mode 0 6 J6_07 SCB 5 GPIO_7 Mode 0 6 Table 4 6 Pin Details of J7 USB Serial GPIO Header J7 Pin Signal Description J7_01 GND Power J7_02 GPIO 0...

Page 34: ...es 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 The power LED is on the USB Serial board if the boards are separated the PSoC 4 section does not consume current through the power LED Figure 4 10 Power LED Figure 4 11 User LED Figure 4 12 Power LED Connec...

Page 35: ...apacitors on the CY8CKIT 049 4xxx prototyping kit enable proper development of ADC and CapSense code examples These capacitors are the following A SAR ADC bypass capacitor Required for proper sampling at high frequencies Two CapSense capacitors CMOD and CTANK Required for proper CapSense functionality Figure 4 14 System Capacitors Circuit Diagram ...

Page 36: ...ootloader example the device rapidly blinks an LED when the bootloader is active provides UART communication support for bootloading and reads the state of the switch SW1 You can observe the state of the board by noticing the rate at which the LED blinks The bootloader is acti vated when you plug in the CY8CKIT 049 4xxx while pressing the SW1 button The bootloader reads the state of this button du...

Page 37: ...CKIT 049 4xxx Project Using the Bootloader on page 18 showed how to bootload the application code for a blinking LED project into the device using the USB Serial controller In the bootloadable code example the following components are used Bootloadable PWM Clock Digital Output Pin Digital Constants logic HIGH LOW Off Chip Components external resistor LED and Vss In this code example the PWM compon...

Page 38: ...SoC Creator click Create New Project 2 On the New Project window select an PSoC 4100 PSoC 4200 Design 3 Enter a name for the project and select a workspace You can either add the new project to an existing workspace or create a new one 4 Set the device to the PSoC 4 device on your CY8CKIT 049 4xxx For example the CY8CKIT 049 42XX kit requires the CY8C4245AXI 483 device 5 Click the button next to A...

Page 39: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 38 Code Examples 6 Click OK Figure 5 3 Creating a New Bootloadable Project PSoC Creator generates a new project ...

Page 40: ...f 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 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 code example Refer to Programming a CY8CKIT 049 4xxx Project Using the Bootloader on...

Page 41: ...using the Bootloader Host application This example does not have any source code but is a base code example Follow the steps in the next examples to add functionality to this base project 5 4 Converting a Non bootloadable Project to a Bootloadable Project As part of PSoC Creator application notes and kits available at www cypress com Cypress provides many code examples that you can work with Most ...

Page 42: ...d target the CY8CKIT 049 4xxx development kits 1 In PSoC Creator click Find Example Project under Start Page Examples and Kits Figure 5 7 Opening Find Example Project Window 2 Set the Device Family option to the kit family select PSoC 4200 for the CY8CKIT 049 42xx kit and PSoC 4100 for the CY8CKIT 049 41xx kit The PSoC 4200 device family and CY8CKIT 049 42xx are used in this example Figure 5 8 Sel...

Page 43: ...ect the PWMExample project from the list dis played and click Create New Workspace Figure 5 9 PWMExample Project Lookup 4 In the dialog box that appears navigate to the folder location where you want to create the proj ect 5 After the workspace is created PSoC Creator opens the help document detailing the project fea tures and content You can close this document and open it from the Workspace Expl...

Page 44: ...Workspace Explorer window right click on the project and select Build Settings Figure 5 10 Accessing Build Settings 7 Because this project was originally set as a Normal Application Type we need to change it to Bootloadable In the Application Type drop down menu select Bootloadable Click Apply and then OK Figure 5 11 Project Build Settings ...

Page 45: ...e click the TopDesign cysch file from the Workspace Explorer to open the schematic view Figure 5 12 Opening TopDesign cysch 9 Drag and drop the Bootloadable component into the schematic window from the Component Catalog under System Figure 5 13 Bootloadable Component in the Component Catalog ...

Page 46: ...arameters 11 Click the Dependencies tab to select the hex and elf files from the UART Bootloader project included with the kit Install_Directory CY8CKIT 049 42xx version Firm ware SCB_Bootloader UART_Bootloader cydsn CortexM0 ARM_GCC_484 Debug This is done to point the bootloadable project to the bootloader running in the kit Click Apply and then OK Figure 5 15 Dependencies Tab Parameters ...

Page 47: ... do this open PWMExample cydwr from the Workspace Explorer Figure 5 16 Opening cydwr File 13 Select the LED_GREEN pin to P1 6 in the CY8CKIT 049 kit Figure 5 17 cydwr Pin Settings 14 Select Build Build PWMExample Figure 5 18 Building the Project 15 Connect the CY8CKIT 049 4xxx kit to the PC while pressing the SW1 button this will put the device into Bootloader mode Entry into Bootloader mode is sh...

Page 48: ...Bootloader Host utility by selecting Tools Bootloader Host from the PSoC Creator menu Connect to the COM port and make your port configurations Figure 5 19 Bootloader Host Tool 17 Click Filters configure it as shown in Figure 14 and then click OK Figure 5 20 Bootloader Host Ports Filters Settings ...

Page 49: ... project s cyacd file available at the following path Project Directory PWMExample01 PWMExample01 cydsn CortexM0 ARM_GCC_484 Debug Figure 5 21 Bootloader Host cyacd File Load Setting 19 Select the USB Serial Port COMxx corresponding to your kit and configure the settings as shown in Figure 5 22 Figure 5 22 USB Serial Port Selection ...

Page 50: ...ootloader can be time consuming and you may not prefer removing the board from the PC each time you want to program it You can also enter the bootloader mode using the Bootloadable component present in the appli cation project When you want to enter bootloader mode say when a button is pressed for a pre defined duration or a command is sent via UART all you need to do is detect the condition to en...

Page 51: ...de Examples 2 Double click the placed component and configure the parameters as shown in Figure 5 25 and click OK Figure 5 25 Digital Input Pin Parameter Configuration 3 In the PWMExample01 cydwr file select P0 7 as the pin connection for SW1 Figure 5 26 cydwr Pin Settings ...

Page 52: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 51 Code Examples 4 Open main c file from the Workspace Explorer Figure 5 27 Opening main c ...

Page 53: ... Check if the software counter has passed 2 s 200 10 ms Since the software counter is incremented only when SW1 is pressed SW1 is pressed for more than 2 seconds Enter bootloader mode if swCounter 200 Bootloadable_Load 6 Build the project using Build Build PWMExample01 7 Program the PSoC 4 device as described from Step 15 in PWMExample on page 41 8 When the new application is loaded the output of ...

Page 54: ...ations such as portable medical devices such as blood glucose meters point of sales terminals serial cables including USB to UART and RS 232 cables and other applications requiring USB connectivity CY8CKIT 049 4xxx development kits use the USB Serial device to provide connectivity to a PC and to perform USB UART bootload programming The following sections provide instructions on how to use and con...

Page 55: ...al capabilities of USB Serial device such as USB UART configurations USB GPIO controls and custom development using the USB I2C and USB SPI protocols After you install the USB Serial SDK click Start All Programs Cypress Cypress USB Serial Cypress USB Serial Configuration Utility to launch the USB Serial Configuration Utility Note For Windows 8 or higher OS launch Cypress USB Serial Configuration U...

Page 56: ...49 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 ...

Page 57: ...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 1 After connecting to the USB Serial device click the CY7C65211 24LTXI tab 2 Select the SCB tab under the CY7C65211 24LTXI tab to see the default UART ...

Page 58: ...new values from the respective drop down lists and click OK 5 Click the Program Device button from the menu options at the top of the Configuration Utility to program the device with the new settings Figure 6 6 Programming the Device With UART Settings When the configuration has been programmed to the target device a popup window will be shown letting you know that programming was successful Note ...

Page 59: ...the device from the Configuration Utility navigate to the Device menu and select Reset Device This initiates a reset to the device 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 ...

Page 60: ...he 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 The Configuration Utility will only display the available GPIOs based on your serial configuration For more information on the serial configuration and the respective...

Page 61: ...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 Click the Select Drive Mode drop down menu for the GPIO 08 pin Figure 6 12 Configuring GPIO Drive Mode 5 Select Drive 1 from the available options and click OK This example makes the pin HIGH 6 Program the new configuration into the device and cycle the port to see the new configurat...

Page 62: ... up to eight buttons Battery Charging Detect BCD For more information on these features refer to the device datasheet and the USB Serial Configura tion Utility user guide Select Help Help Topics Note USB UART works in the USB Communication Device Class CDC while all other configura tion controls such as GPIO SPI and I2C use the Cypress vendor driver on the PC Therefore COM port tools such as PuTTY...

Page 63: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 62 A Appendix A 1 CY8CKIT 049 4xxx Schematics ...

Page 64: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 63 Appendix Figure A 1 CY8C4245AXI 483 CY8CKIT 049 42XX only ...

Page 65: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 64 Appendix Figure A 2 CY8C4125AXI 483 CY8CKIT 049 41XX only ...

Page 66: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 65 Appendix ...

Page 67: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 66 Appendix ...

Page 68: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 67 Appendix ...

Page 69: ...CY8CKIT 049 4xxx PSoC 4 Prototyping Kit Guide Doc 001 90711 Rev J 68 Appendix ...

Page 70: ...d on the silkscreen and is labeled PROG The suggested part numbers are Molex 22 05 3051 right angled male header and Molex 22 23 2051 straight header The suggested part numbers for 5 pin headers are 5 pin Molex KK right angle male header Part number 22 05 3051 or 5 pin Molex KK vertical male header Part number 22 23 3051 Please see images below for orientation of the header The CY8CKIT 049 support...

Page 71: ...Y8CKIT 049 4xxx to MiniProg3 using straight header Note CY8CKIT 002 MiniProg3 is not part of the PSoC 4 Prototyping Kit contents and can be purchased from the Cypress Online Store The following images show the pinout for MiniProg3 and the connections on CY8CKIT 049 4xxx Figure A 5 Pinout for MiniProg3 ...

Page 72: ...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 Note that the kit is pre programmed with a project containing a bootloader so this step is not necessary to change the application firmware 1 Launch PSoC Creator from the Start menu Figure A 7 ...

Page 73: ...Opening the Project in PSoC Creator The workspace includes two sample projects linked in the Workspace Explorer a bootloader project and a bootloadable project 3 Right click the UART_Bootloader project and select Set As Active Project Figure A 9 Setting Code Example as Active Project in Workspace Explorer 4 Select Build Build UART_Bootloader Figure A 10 Building the Project 5 Connect MiniProg3 to ...

Page 74: ... Target Window 7 Click Port Settings set the connector to 5 pin and then click OK 8 Click Port Acquire to detect the target device click Connect and then click OK PSoC Creator programs the target When programming is complete the PSoC 4 will contain the bootloader but not any application code To bootload any application code refer Programming a CY8CKIT 049 4xxx Project Using the Bootloader on page ...

Page 75: ...LED BLUE CLEAR 0805 SMD Lite On Inc LTST C170TBKT 8 1 LED2 Power LED Amber LED AMBER 591NM DIFF LENS 2012 Sharp Microelec tronics LT1ZV40A 9 4 R1 R2 R4 R6 ZERO RES 0 0 OHM 1 8W 0805 SMD Panasonic ERJ 6GEY0R00V 10 2 R3 R5 560 RES 560 OHM 1 8W 5 0805 SMD Panasonic ERJ 6GEYJ561V 11 2 R8 R9 ZERO RES 0 0 OHM 1 10W 0603 SMD Panasonic ECG ERJ 3GEY0R00V 12 1 SW1 Switch SWITCH TACTILE SPST NO 0 05 A 32 V C...

Page 76: ...Project Using the Bootloader in heading Updated description Removed Programming a CY8CKIT 049 4xxx Project Using MiniProg3 Removed sub heading Programming a CY8CKIT 049 4xxx Project Using the Bootloader only as contents are coming under main heading Updated Appendix chapter on page 62 Added Programming a CY8CKIT 049 4xxx Project Using MiniProg3 on page 69 B 4416482 06 23 2014 RKAD Updated Title in...

Page 77: ...ader on page 18 Updated description Updated Figure 3 7 Updated Figure 3 11 Updated Appendix chapter on page 62 Updated Programming a CY8CKIT 049 4xxx Project Using MiniProg3 on page 69 Updated description D 4652397 02 05 2015 SASH Updated Introduction chapter on page 7 Updated Additional Learning Resources on page 8 Updated description Added PSoC Creator on page 9 Added PSoC Creator Code Examples ...

Page 78: ...53 Updated USB Serial Resources on page 53 Updated description Updated USB Serial Configuration Utility on page 54 Updated Figure 6 1 Updated Appendix chapter on page 62 Updated Programming a CY8CKIT 049 4xxx Project Using MiniProg3 on page 69 Updated description Updated Figure A 3 Added Figure A 4 E 4675832 03 02 2015 SASH Updated Hardware chapter on page 26 Updated Functional Description on page...

Page 79: ...ated description Updated Bootloadable Code Example on page 36 Updated description Updated USB Serial Configuration chapter on page 53 Updated USB Serial Configuration Utility on page 54 Updated description G 4716987 04 08 2015 MSUR Updated Introduction chapter on page 7 Updated Additional Learning Resources on page 8 Updated description Updated Code Examples chapter on page 35 Updated description ...

Reviews:

Related manuals for verical CYPRESS CY8CKIT-049-42 Series