background image

CY8CKIT-147

PSoC

®

 4100PS Prototyping Kit Guide

Doc. #: 002-18734 Rev. *D

Cypress Semiconductor

198 Champion Court

San Jose, CA 95134-1709

www.cypress.com

Summary of Contents for CY8CKIT-147

Page 1: ...CY8CKIT 147 PSoC 4100PS Prototyping Kit Guide Doc 002 18734 Rev D Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 www cypress com ...

Page 2: ... 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 Cypr...

Page 3: ...are Installation 15 2 1 Before You Begin 15 2 2 Install Software 15 2 3 Installing PSoC 4100PS Device in PSoC Creator 18 2 4 Uninstall Software 18 3 Kit Operation 19 3 1 Theory of Operation 19 3 2 Programming and Debugging the PSoC 4100PS Target Device 21 3 2 1 Programming Using PSoC Creator 21 3 2 2 Debugging Using PSoC Creator 23 3 2 3 Programming Using PSoC Programmer 23 3 2 4 Mass Storage Prog...

Page 4: ... Hardware Details 32 Target Board 32 KitProg2 Board 33 Power Supply System 34 Board Separation Snapping 34 Header Connections 35 User and Passive Inputs 39 PSoC 4100PS Prototyping kit Schematics 42 Bill of Materials 42 Programming PSoC 4100PS Prototyping kit Using MiniProg3 KitProg2 42 Revision History 43 ...

Page 5: ...ttings 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 PSoC 4100PS Prototyping Kit as shipped from the factory has been verified to meet with requirements of CE as a Class A product The PSoC 4100PS Prototyping Kit contains electrostatic discharge ESD sensitive devices ...

Page 6: ...f 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 PSoC 4100PS Prototyping 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 fo...

Page 7: ... 4100PS Prototyping Kit offers an open footprint breakout board to maximize the end utility of the PSoC 4100PS device This kit provides a low cost alternative to device samples while providing a platform to easily develop and integrate the PSoC 4100PS device into your end system In addition the board includes the following features An LED to provide feedback A push button to provide a simple user ...

Page 8: ...your hardware system design in the main design workspace 2 Co design 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 PSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chains and production programming prog...

Page 9: ... shown in Figure 1 4 on page 10 In the Find Code Example dialog shown in Figure 1 4 you have several options Filter for examples based on architecture or device family that is PSoC 3 PSoC 4 or PSoC 5LP project name or keyword Select from the list of examples offered based on the Filter Options Review the code example s description on the Documentation tab Review the code from the Sample Code tab Y...

Page 10: ...SoC Creator Help Launch PSoC Creator and navigate to the following items Quick Start Guide Choose Help Documentation Quick Start Guide This guide gives you the basics for developing PSoC Creator projects Simple Component Code Examples Choose File Code Example These examples demon strate how to configure and use PSoC Creator Components To access examples related to a specific Component right click ...

Page 11: ...tor IDE for development and debugging the applications and PSoC Programmer for programming hex files The Kit Operation chapter on page 19 describes the major features of the PSoC 4100PS Proto typing Kit and functionalities such as programming debugging and the USB UART and USB I2C bridges The Code Examples chapter on page 25 describes multiple code examples that will help you understand how to cre...

Page 12: ...reator Code Examples on page 9 Technical Reference Manuals TRM Provide detailed descriptions of the architecture and registers in each PSoC 4 device family Development Kits CY8CKIT 041 CY8CKIT 046 CY8CKIT 044 CY8CKIT 042 and CY8CKIT 040 are easy to use and inexpensive development platforms These kits include connectors for Arduino compatible shields and Digilent Pmod Peripheral Modules CY8CKIT 043...

Page 13: ...lays 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 C 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...

Page 14: ...ital to Analog Convertor DPDT Double Pole Double Throw ESD Electrostatic Discharge GPIO General Purpose Input Output I2C Inter Integrated Circuit IDAC Current DAC IDE Integrated Design Environment KBA Knowledge Based Article LED Light Emitting Diode PSoC Programmable Systems on Chip SAR Successive Approximation Register SCB Serial Communication Block SRAM Static Random Access Memory SWD Serial Wir...

Page 15: ...s listed in step 5 are installed on your PC b CY8CKIT 147 Kit Setup This installation package contains the files related to the kit including PSoC Creator and PSoC Programmer However it does not include the Windows Installer or Microsoft NET framework packages If these packages are not on your computer the installer directs you to download and install them from the Internet c CY8CKIT 147 DVD ISO T...

Page 16: ...rototyping kit related files Choose the directory and click Next 5 When you click Next the PSoC 4100PS Prototyping kit installer automatically installs the required software if it is not present on your computer The following is the required software a PSoC Creator 4 2 or later This software is also available separate from the kit at www cypress com psoccreator b PSoC Programmer 3 27 1 or later Th...

Page 17: ... the installation page A green check mark appears next to each package after successful installation 9 Enter your contact information or select the check box Continue Without Contact Information Click Finish to complete the PSoC 4100PS Prototyping kit installation 10 After the installation is complete the kit contents are available at the following location Install_Directory CY8CKIT 147 PSoC 4100P...

Page 18: ...nstaller 3 Click on the Install Button 4 Restart PSoC Creator Note that this is an important step The devices will only be available after PSoC Creator is restarted The devices should now be available in the device selector when you create a new project 2 4 Uninstall Software The software can be uninstalled using one of the following methods 1 Go to Start All Programs Cypress Cypress Update Manage...

Page 19: ...it supports the following features PSoC 4100PS I O Headers The PSoC 4100PS Prototyping board brings all GPIOs of the target PSoC 4100PS device to the two expansion headers enabling the user to have maximum access to the capabilities of the PSoC 4100PS device User LED The on board LED can be used to display outputs from the PSoC 4100PS device This includes modulating the brightness of the LED to no...

Page 20: ... you can connect the kit to a PC directly through a USB port KitProg2 An on board programmer debugger utilizing a PSoC 5LP CY8C5868LTI LP039 which enables you to program and debug the target PSoC 4100PS device It can also act as a USB UART and UART I2C bridge When used as a standalone module it can be used to program devices of the PSoC 3 PSoC 4 or PSoC 5LP families through the SWD interface For m...

Page 21: ...umerates as a composite device If you are plugging in the PSoC 4100PS Prototyping Kit to your PC for the first time the kit drivers will get installed automatically Successful enumeration is indicated by Amber Status LED LED3 ON If the Amber Status LED LED3 is not ON refer to the KitProg2 User Guide for details on the KitProg2 status and troubleshooting instructions Figure 3 2 Connecting the PSoC ...

Page 22: ...e project as shown in Figure 3 3 Figure 3 3 Build an Code Example 4 If there are no errors during build program the firmware into the kit by choosing Debug Program or press Ctrl F5 as shown in Figure 3 4 This programs the target PSoC 4100PS device on the PSoC 4100PS Prototyping kit and the kit is ready to use Figure 3 4 Programming Device From PSoC Creator ...

Page 23: ...oC Programmer section in the KitProg2 User Guide for a detailed explanation on how to program using PSoC Programmer 3 2 4 Mass Storage Programming The KitProg2 in the PSoC 4100PS Prototyping board supports programming through a USB Mass Storage interface This interface allows you to program the PSoC 4100PS device by copying hex files into an emulated USB Mass Storage device For more details on usi...

Page 24: ... The USB I2C supports I2C speeds of 50 kHz 100 kHz 400 kHz and 1 MHz For more details on the KitProg2 USB I2C functionality refer to USB I2C Bridge section in KitProg2 User Guide Figure 3 6 I2C Connection between KitProg2 and PSoC 4100PS 3 5 Updating the KitProg2 Firmware The KitProg2 firmware normally does not require any update You can use the PSoC Programmer software to update the KitProg2 firm...

Page 25: ...llow these steps to open and use the example projects 1 Launch PSoC Creator from the Windows Start menu Start All Programs Cypress PSoC Creator version PSoC Creator version 2 On the Start page click on CY8CKIT 147 under Start Kits A list of code examples appears as shown in Figure 4 1 3 Click on the desired code example and save it at a desired location For the remaining steps CE218651_Breathing_L...

Page 26: ...hould wait for driver installation to complete before proceeding with the next step 6 Choose Debug Program in PSoC Creator as shown in Figure 4 3 Figure 4 3 Program Device in PSoC Creator 7 If the device is already acquired programming will complete automatically and the result will appear in the PSoC Creator status bar at the bottom left side of the screen If the device is yet to be acquired the ...

Page 27: ... the KitProg2 serial number Click the OK Connect button to exit the window and start programming as shown in Figure 4 5 Figure 4 5 Connect Device From PSoC Creator and Program 9 From the workspace explorer in PSoC Creator open the CE218651_Breathing_LED_SmartIO pdf as shown in Figure 4 6 Figure 4 6 Project Datasheet CE218651_Breathing_LED_SmartIO pdf ...

Page 28: ... On the Start Page click Find Code Example under Start or use the menu item File Code Example as shown in Figure 4 7 Figure 4 7 PSoC Creator Find Code Example 3 In the Find Code Example window set the Device family to PSoC 4100PS as shown in Figure 4 8 Figure 4 8 Selecting PSoC 4100PS Device Family in Find Code Example Window 4 You can use any project that appears in the list with the kit As an ex...

Page 29: ...reate Project button as shown in Figure 4 9 button Save the workspace to a desired location Figure 4 9 CE218651_Breathing_LED_SmartIO Code Example 6 Open CE218651_Breathing_LED_SmartIO pdf from the Workspace Explorer to learn more about the code example and its configuration See Figure 4 10 Figure 4 10 Project Datasheet CE218651_Breathing_LED_SmartIO ...

Page 30: ...Program Debug header J9 foot print only KitProg2 PSoC 5LP device CY8C5868LTI LP039 KitProg2 I O headers J6 and J7 SWD connection headers J4 and J5 PCB USB finger connector J8 One amber LED LED2 Power One amber LED LED3 KitProg2 Status One blue LED LED1 User One Push Button SW1 User One Push Button SW2 Reset One Push Button SW3 KitProg2 Mode Current Measurement Jumper J3 foot print only shorted by ...

Page 31: ...CY8CKIT 147 PSoC 4100PS Prototyping Kit Guide Doc 002 18734 Rev D 31 Figure A 1 PSoC 4100PS Prototyping kit Pin Details ...

Page 32: ...lexible automatic routing The PSoC 4100PS device family based on this platform architecture is a combination of a microcontroller with digital programmable logic programmable interconnect and standard communication and timing peripherals The PSoC 4100PS products will be fully compatible with members of the PSoC 4 platform for new applications and design needs The digital subsystems allow flexibili...

Page 33: ...oard A PSoC 5LP on the KitProg2 board is used to program and debug the target PSoC 4100PS device The KitProg2 PSoC 5LP connects to the USB port of the PC through the USB finger connector and to the SWD interface of the target PSoC 4100PS device Figure A 3 Schematic of PSoC 5LP KitProg2 ...

Page 34: ...ent consumption of the PSoC 4100PS device by following the steps below 1 Remove the resistors R31 R3 and install a 2 pin jumper in the supplied holes of J3 2 Connect an ammeter across the 2 pin jumper to measure the current to the PSoC 4100PS device After measuring the current consumption populate resistors R31 and R3 or place a shorting jumper across the two jumper pins for normal operation of th...

Page 35: ...arget Board The target PSoC 4100PS board contains two single inline headers J1 and J2 These headers are both 1 23 pin headers and include all of the I Os available on the PSoC 4100PS device These headers support all of the available ports GND VDDD VDDA and connections to passive elements and user input devices The J1 and J2 headers support 100 mil spacing so you can solder connectors to connect th...

Page 36: ... J1_16 P3 4 GPIO J1_17 P3 5 GPIO J1_18 P3 6 GPIO SCL J1_19 P3 7 GPIO SDA J1_20 P5 0 GPIO CMOD J1_21 P5 1 GPIO J1_22 P5 2 GPIO CINTA J1_23 GND Ground PSoC 4100PS Prototyping kit GPIO Header J2 Pin Signal Description J2_01 VDDA Power J2_02 GND Ground J2_03 P0 0 GPIO SWDIO J2_04 P0 1 GPIO SWDCLK J2_05 P0 2 GPIO User LED J2_06 P0 3 GPIO User Switch J2_07 P0 4 GPIO UART_RX J2_08 P0 5 GPIO UART_TX J2_09...

Page 37: ...debug the target PSoC 4100PS device power ground and reset Figure A 6 J4 and J5 Headers When the boards are separated the KitProg2 board can be used to program any other PSoC 3 PSoC 4 PSoC 5LP family of devices via J4 Table A 3 Pin Details of J4 Header Table A 4 Pin Details of J5 Header PSoC 5LP J4 Pin Signal Description J4_01 VTARG Power J4_02 GND Ground J4_03 P12 4 Reset J4_04 P12 3 SWD_CLK J4_0...

Page 38: ...ed when the two boards are separated The J6 and J7 headers support 100 mil spacing so you can solder connectors to connect the KitProg2 board to a development breadboard Figure A 7 J6 and J7 Headers Table A 5 Pin Details of J6 Table A 6 Pin Details of J7 PSoC 5LP KitProg2 Header J6 Pin Signal Description J6_01 VBUS Power J6_02 GND Ground J6_03 P12 5 GPIO J6_04 P12 0 GPIO I2C_SCL J6_05 P12 1 GPIO I...

Page 39: ...e user to connect the kit directly to a PC using a USB port Figure A 8 USB Type A connector J8 A 2 6 User and Passive Inputs A 2 6 1 User Switch The target PSoC 4100PS board contains a switch connected to the P0 3 pin on the PSoC 4100PS device This button can be used for general user inputs or to control different states in an application Figure A 9 User Switch on the Board ...

Page 40: ...tains three LEDs The amber Power LED LED2 Indicates that the board is powered from the PCB USB finger connector This LED will not glow when the board is powered from VDDD or VTARG directly The amber Status LED LED3 Indicates the KitProg2 status connected to P1 4 of the KitProg2 PSoC 5LP device See Table A 7 below for a summary of the status LED states For more details on the KitProg2 status LED re...

Page 41: ...4 User LED A 2 6 5 10 pin Programming Header PSoC 4100PS can be programmed alternatively through the 10 pin programming header using a MiniProg3 programmer This can be done by connecting the 10 pin programming header from a MiniProg3 to the 10 pin programming header J9 on the CY8CKIT 147 Figure A 15 10 pin Programming Header ...

Page 42: ...m A 5 Programming PSoC 4100PS Prototyping kit Using MiniProg3 KitProg2 The target board provides a provision to program the PSoC 4100PS device using MiniProg3 or an external KitProg2 via the 10 pin JTAG header or the 5 pin SWD header To do this connect wires or a 5 pin 100 mil spaced header to J5 or a 10 pin JTAG header to J9 on the target board The PSoC 4100PS Prototyping kit supports both power ...

Page 43: ...nstall Software on page 15 Updated description Updated Kit Operation chapter on page 19 Updated Theory of Operation on page 19 Updated Table 3 1 Updated Programming and Debugging the PSoC 4100PS Target Device on page 21 Updated Programming Using PSoC Programmer on page 23 Updated description Updated Appendix chapter on page 30 Updated Hardware Details on page 32 Updated Power Supply System on page...

Page 44: ...page 34 Updated description Completing Sunset Review C 6088053 03 08 2018 NMIT Replaced CMIS DAP with CMSIS DAP in all instances across the document Updated hyperlinks across the document Updated Introduction chapter on page 7 Updated Kit Contents on page 7 Updated Figure 1 1 Updated Additional Learning Resources on page 12 Updated description Updated Software Installation chapter on page 15 Updat...

Page 45: ... Power Supply System on page 34 Updated Measure PSoC 4100PS Current Consumption on page 34 Updated description Updated Header Connections on page 35 Updated Functionality of J4 and J5 Headers PSoC 4100PS to KitProg2 on page 37 Updated Table A 3 Updated Table A 4 Updated Functionality of J6 and J7 Headers KitProg2 on page 38 Updated Table A 6 Updated User and Passive Inputs on page 39 Updated LEDs ...

Reviews: