Cypress CY8CKIT-145-40XX Manual

Psoc 4000s prototyping kit

Advertisement

Quick Links

CY8CKIT-145-40XX
®
PSoC
4000S Prototyping Kit Guide
Doc. # 002-11504 Rev. *A
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
www.cypress.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CY8CKIT-145-40XX and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress CY8CKIT-145-40XX

  • Page 1 CY8CKIT-145-40XX ® PSoC 4000S Prototyping Kit Guide Doc. # 002-11504 Rev. *A Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 www.cypress.com...
  • Page 2 Cypress is not liable, in whole or in part, and you shall and hereby do release Cypress from any claim, damage, or other liability arising from or related to all Unintended Uses of Cypress products.
  • Page 3: Table Of Contents

    Contents Safety Information 1. Introduction Kit Contents .........................6 Board Details .......................7 PSoC Creator ......................9 Getting Started......................12 Additional Learning Resources..................12 Technical Support......................13 Documentation Conventions..................13 Acronyms........................14 2. Software Installation Before You Begin.......................15 Install Software ......................15 Uninstall Software......................18 3. Kit Operation Theory of Operation....................19 KitProg2 ........................22 4.
  • Page 4: 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 an ESD workstation is not available, use appropriate ESD protection by wearing an antistatic wrist strap attached to a grounded metal object.
  • Page 5: Introduction

    Prototyping kit is designed to snap away the KitProg2 board from the PSoC 4000S target board. You will use PSoC Creator™ to develop and debug your PSoC 4000S device projects. PSoC Creator is Cypress’s standard integrated design environment (IDE). If you are new to PSoC Creator, see the documentation on the PSoC Creator home page.
  • Page 6: Kit Contents

    Introduction Kit Contents The PSoC 4000S Prototyping Kit contains PSoC 4000S Prototyping board and Quick Start Guide. The PSoC 4000S Prototyping board is as shown in Figure 1-1. Figure 1-1. PSoC 4000S Prototyping Board PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 7: Board Details

    Introduction Board Details The PSoC 4000S Prototyping board consists of the blocks as shown in Figure 1-2. Also, Figure 1-3 shows the pin mapping for kit headers. Figure 1-2. PSoC 4000S Prototyping Board Block Diagram PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 8 Introduction Figure 1-3. PSoC 4000S Prototyping Board Pin Details PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 9: Psoc Creator

    Figure 1-4. PSoC Creator Features PSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chains and production programmers for PSoC devices. For more information, visit www.cypress.com/psoccreator. PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 10 Introduction 1.3.1 PSoC Creator Code Examples PSoC Creator includes a large number of code examples. These examples are accessible from the PSoC Creator Start Page, as shown in Figure 1-5. Code examples can speed up your design process by starting you off with a complete design, instead of a blank page.
  • Page 11 Introduction Figure 1-6. Code Example Projects with Sample Code 1.3.2 Kit Code Examples You can access the installed kit code examples from the PSoC Creator Start Page. To access these examples, expand the Kits under the section Examples and Kits; then, expand the specific kit to see the code examples.
  • Page 12: Getting Started

    Introduction Getting Started This guide will help you be acquainted with the CY8CKIT-145-40XX PSoC 4000S Prototyping Kit: Software Installation chapter on page 15 chapter describes the installation of the kit ■ software. This includes the PSoC Creator IDE to develop and debug the applications, and PSoC Programmer to program the .hex files on to the device.
  • Page 13: Technical Support

    Introduction Technical Support For assistance, visit Cypress Support or contact customer support at +1(800) 541-4736 Ext. 2 (in the USA) or +1 (408) 943-2600 Ext. 2 (International). You can also use the following support resources if you need quick assistance: ■...
  • Page 14: Acronyms

    Introduction Acronyms Table 1-2. Acronyms Used in this Document Acronym Description Analog-to-Digital Converter Bluetooth Low Energy Bill of Materials CMOD Modulator Capacitor Comparator CTANK Shield tank capacitor Digital to Analog Convertor DPDT Double-Pole, Double-Throw Electrostatic Discharge GPIO General Purpose Input/Output Inter-Integrated Circuit IDAC Current DAC...
  • Page 15: Software Installation

    Before You Begin To install Cypress software, you will require administrator privileges. However, they are not required to run software that is already installed. Before you install the kit software, close any other Cypress software that is currently running. Install Software Follow these steps to install the PSoC 4000S Prototyping Kit software: 1.
  • Page 16 Software Installation 3. Click Install CY8CKIT-145-40XX to start the kit installation. 4. Select the folder in which you want to install the PSoC 4000S Prototyping kit-related files as shown in Figure 2-1. Choose the directory and click Next. Figure 2-1. Kit Installer Screen 5.
  • Page 17 9. Enter your contact information or select the check box Continue Without Contact Information. Click Finish to complete the CY8CKIT-145-40XX PSoC 4000S Prototyping kit software installa- tion. 10. After the installation is complete, the kit contents are available at the following location: <Install_Directory>\CY8CKIT-145-40XX PSoC 4000S Prototyping Kit...
  • Page 18: Uninstall Software

    Uninstall Software The software can be uninstalled using one of the following methods: Go to Start > All Programs > Cypress > Cypress Update Manager > Cypress Update Manager and select the Uninstall button that corresponds to the kit software.
  • Page 19: Kit Operation

    Kit Operation This chapter introduces you to the various features of the PSoC 4000S Prototyping Kit. It primarily includes the theory of Operation, programming and debugging functionality, KitProg2 USB-UART and USB-I2C bridges. Theory of Operation The PSoC 4000S Prototyping Kit is built around the PSoC 4000S device. Figure 3-1 shows the block diagram of the PSoC 4000S device.
  • Page 20 Kit Operation Figure 3-2 shows the block diagram for the PSoC 4000S Prototyping Kit. Figure 3-2. Block Diagram of PSoC 4000S Prototyping Kit sh^ 'W/K >  > < 'W/K W^  W^   > > sh^ sd Z'  > /  W /  W...
  • Page 21 PSoC 4000S/EZ-BLE devices using an external programmer such as MiniProg3. This header is not populated by default. 8. EZ-BLE PRoC Module and LED: The kit includes Cypress EZ-BLE PRoC Module for BLE connectivity and Blue LED (LED12) connected to P1_6 of its GPIO.
  • Page 22: Kitprog2

    USB-UART bridge. The PSoC 4000S Prototyping Kit also supports Mass Storage Programming using KitProg2. A Cypress PSoC 5LP device is used to implement the KitProg2 functionality. The KitProg2 is integrated in most PSoC development kits. For more details on the KitProg2 functionality,...
  • Page 23 Kit Operation 3. Select the option Build > Build <Project_Name>, or press Shift + F6 to build the project as shown in Figure 3-4. Figure 3-4. Build the Code Example 4. If there are no errors during build, program the firmware into the kit by choosing Debug > Program or by pressing Ctrl + F5 as shown in Figure 3-5.
  • Page 24 Kit Operation 3.2.2 Programming Using PSoC Programmer PSoC Programmer (3.24.2 or later) can be used to program existing .hex files into the PSoC 4000S Prototyping board. Refer to the Programming Using PSoC Programmer section in the KitProg2 User Guide for a detailed explanation on how to program using PSoC Programmer. The KitProg2 firmware normally does not require any update.
  • Page 25: Code Examples

    1. Launch PSoC Creator from Start > All Programs > Cypress > PSoC Creator <version> > PSoC Creator <version>. 2. On the Start page, click CY8CKIT-145-40XX under Examples and Kits > Kits. A list of example projects appears, as shown in Figure 4-1.
  • Page 26 Code Examples 4. Build the code example by choosing Build > Build <Project Name>. A .hex file is generated after the build process. 5. Connect the PSoC 4000S Prototyping board to the PC using the onboard PCB USB connector J8 as shown in Figure 3-3.
  • Page 27 Code Examples 8. After the device is acquired, it is shown in a tree structure below the KitProg2/<serial number>. Click the Connect button and then click OK to exit the window and start programming, as shown Figure 4-3. Figure 4-3. Connect Device from PSoC Creator and Program 4.1.1 CE210709 CapSense Linear Slider and Buttons This code example demonstrates the operation of a CapSense linear slider with five segments and...
  • Page 28: Appendix

    Appendix Hardware Functional Description A.1.1 Board Details The PSoC 4000S Prototyping board consists of the following: PSoC 4000S device U2 (CY8C4045AZI-S413) ■ PSoC 4000S I/O headers J1 and J2 ■ 10-pin program/debug header J11 (footprint only) ■ KitProg2 (PSoC 5LP) device U1 (CY8C5868LTI-LP039) ■...
  • Page 29 Figure A-1. PSoC 4000S Prototyping Board Pin Details PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 30 A.1.2 Hardware Details A.1.2.1 Target Board The target board uses the PSoC 4000S device. PSoC 4000S is a scalable and reconfigurable platform architecture for a family of programmable embedded system controllers with an ARM Cortex-M0+ CPU. It combines programmable and reconfigurable analog and digital blocks with flexible automatic routing.
  • Page 31 A.1.2.2 KitProg2 Board PSoC 5LP on the KitProg2 board is used to program and debug the target PSoC 4000S device/ EZ-BLE PRoC Module. KitProg2 PSoC 5LP connects to the USB port of the computer through the PCB USB connector and to the SWD interface of the target PSoC 4000S device/EZ-BLE PRoC Module.
  • Page 32 A.1.2.3 Power Supply System The power supply system on this board is dependent on the power source. For most applications, you can use the 5 V supply from the USB connection to power the system. You can also connect an external power supply to the board for low-voltage applications.
  • Page 33 Follow a similar approach to snap the sensor boards from PSoC 4000S board. Figure A-4. PSoC 4000S Prototyping Board separated into Four Parts A.1.2.6 Header Connections The PSoC 4000S Prototyping board supports a number of unpopulated headers on both the KitProg2 and the target PSoC 4 boards.
  • Page 34 Table A-1. J1 Header Pin Details PSoC 4000S Prototyping board GPIO (J1) Signal Description J1_01 VDDD Power J1_02 Ground J1_03 XRES XRES J1_04 P1_0/I2C_SCL GPIO/I2C Clock J1_05 P1_1/I2C_SDA GPIO/I2C Data J1_06 P1_2 GPIO J1_07 P1_3/BTN TX GPIO/Button Tx J1_08 P1_4/BTN0 GPIO/Button 0 Rx J1_09 P1_5/BTN1...
  • Page 35 Table A-2. J2 Header Pin details PSoC 4000S Prototyping board GPIO (J2) Signal Description J2_01 VDDA Power J2_02 Ground J2_03 P0_0/SLD0 GPIO/Slider 0 Rx J2_04 P0_1/SLD1 GPIO/Slider 1 Rx J2_05 P0_2/SLD2 GPIO/Slider 2 Rx J2_06 P0_3/SLD3 GPIO/Slider 3 Rx J2_07 P0_4/UART_RX GPIO/UART Receive J2_08...
  • Page 36 Table A-3. Pin Details of J4 Header PSoC 5LP KitProg2 Header (J4) Signal Description J4_01 VTARG Power J4_02 Ground J4_03 KP_P12_4/RESET KitProg2 GPIO/Target XRES J4_04 KP_P12_3/SWDCLK KitProg2 GPIO/Target SWD Clock J4_05 KP_P12_2/SWDIO KitProg2 GPIO/Target SWD Data Table A-4. Pin Details of J5 Header PSoC 5LP KitProg2 Header (J5) Signal Description...
  • Page 37 Table A-5. Pin Details of J6 Header PSoC 5LP KitProg2 Header (J6) Signal Description J6_01 VBUS Power J6_02 Ground J6_03 KP_P12_5 GPIO J6_04 KP_P12_0 I2C_SCL J6_05 KP_P12_1 I2C_SDA J6_06 KP_P12_7 UART_RX J6_07 KP_P12_6 UART_TX Table A-6. Pin Details of J7 Header PSoC 5LP KitProg2 Header (J7) Signal Description...
  • Page 38 A.1.2.8 User and Passive Inputs User Button The target PSoC 4000S Prototyping board contains a single push button (SW2) connected to the P0[7] pin on the PSoC 4000S device. It is also connected to P4[1] pin on the EZ-BLE PRoC module. This button can be used for general user inputs or to control different states in an application including waking up the device from sleep or deep sleep.
  • Page 39 PSoC 5LP Mode Switch Button The kit contains a push button (SW3) connected to P1[2] of the PSoC 5LP device. This can be used to switch between different modes of KitProg2 such as Programmer/Debugger, Mass storage pro- grammer, Bootloader and Custom application. Refer to the KitProg2 User Guide for more details.
  • Page 40 Capsense Buttons Three CapSense buttons (BTN0, BTN1 and BTN2) are provided on a breakout board to demonstrate the CapSense button functionality of PSoC 4000S device. All the I/Os used for implementing the CapSense Buttons are exposed though the headers J1 and J10. Figure A-12.
  • Page 41 CapSense Linear Slider A 5-segment linear slider (SLD0, SLD1, SLD2, SLD3, and SLD4) is provided on a breakout board to demonstrate the CapSense slider functionality of PSoC 4000S device. All the I/Os used for imple- menting the CapSense Slider are exposed though the headers J2 and J9. Figure A-13.
  • Page 42 Figure A-14. Power LED Figure A-15. Status LED Figure A-16. User LED PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 43 Figure A-17. EZ-BLE LED Figure A-18. Slider LEDs PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 44 Figure A-19. Button LEDs PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...
  • Page 45 The board includes an EZ-BLE PRoC Module, which is loaded by default. The EZ-BLE PRoC Mod- ule is a fully integrated, 10 × 10 × 1.8 mm, fully certified, programmable module designed for ease- of-use and reduced time-to-market. It contains Cypress's PRoC BLE chip, two crystals, chip antenna, shield, and passive components. Refer to...
  • Page 46 Figure A-21. EZ-BLE Connections P1_0 ZERO I2C_SCL BLE_SCL ZERO P1_1 ZERO I2C_SDA BLE_SDA ZERO /XRES ZERO RESET BLE_XRES ZERO The EZ-BLE PRoC Module includes the following connections to PSoC 4000S and KitProg2: UART connections to PSoC 4000S through zero-ohm resistors R28 and R27 (see Figure A-21 ■...
  • Page 47: Schematics

    Figure A-22. DPDT switch SW4 to select between PSoC 4000S and EZ-BLE Schematics Refer to the schematic files in the following paths in the installed kit software: <Install_Directory>\CY8CKIT-145-40XX PSoC 4000S Prototyping Kit\ <version>\Hardware\CY8CKIT-145-40XX Schematic.pdf Bill of Materials Refer to the BOM files in the following paths in the kit software installed: <Install_Directory>\CY8CKIT-145-40XX PSoC 4000S Prototyping Kit\...
  • Page 48: Programming The Psoc 4000S Prototyping Kit Using Miniprog3/Kitprog2

    5-pin 100-mil spaced header to J5 or a 10-pin JTAG header to J11 on the target board. The PSoC 4000S Prototyping Kit supports both power cycle and reset programming modes. Figure A-23. Connecting CY8CKIT-145-40XX to MiniProg3 Note:...
  • Page 49: Revision History

    Revision History Document Revision History Document Title: CY8CKIT-145-40XX PSoC® 4000S Prototyping Kit Guide Document Number: 002-11504 Origin of Revision ECN# Issue Date Description of Change Change 5423470 09/01/2016 SSHH New Kit Guide. 5713267 04/26/2017 SHEA Updated logo and copyright PSoC® 4000S Prototyping Kit Guide, Doc. # 002-11504 Rev. *A...

Table of Contents