background image

CY3215-DK

 

PSoC

® 

1 In-Circuit Emulator Development

Kit Guide

Doc. # 001-66514 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.com

Содержание CY3215-DK

Страница 1: ...DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypres...

Страница 2: ...hout the express written permission of Cypress Disclaimer CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED WITH REGARD TO THIS MATE RIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF...

Страница 3: ...ector 14 3 1 Introduction 14 3 1 1 Software Installation 14 3 2 Connecting the ICE Cube 16 3 2 1 Connect using a USB Port 16 3 2 2 Connect using a Flex Cable 16 3 2 3 Connect using a Backward Compatib...

Страница 4: ...4 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Contents...

Страница 5: ...n System Serial Programming ISSP cable and enables programming of PSoC 1 devices The MiniEval also includes LEDs and a potentiometer for simple evaluation and demonstration The CY3215 DK Kit supports...

Страница 6: ...dditional learning resources in the form of data sheets technical reference manual and application notes For more information regarding PSoC Designer functionality and releases http www cypress com go...

Страница 7: ...up ports in the Introduction chapter Updated Figure 2 2 Table 1 2 Document Conventions for Guides Convention Usage Courier New Displays file locations user entered text and source code C cd icc Italic...

Страница 8: ...7 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Introduction...

Страница 9: ...go CY3215 DK Three different types of installers are available for download a CY3215 DK_ISO This file ISO image is an archive file of the optical disc provided with the kit You can use this to create...

Страница 10: ...Root Directory 3 In the InstallShield Wizard choose the folder location to install the setup files You can change the location of the folder for the setup files using Change as shown in Figure 2 3 4 C...

Страница 11: ...llation Type Options 7 When the installation begins a list of packages appears on the Installation Page A green check mark appears adjacent to every package that is downloaded and installed as shown i...

Страница 12: ...you have con nected this board to this PC initial drivers are installed Follow the instructions to complete the instal lation process 2 2 PSoC Designer PSoC Designer is the revolutionary integrated d...

Страница 13: ...t with the code examples go to Code Examplesn page 28 Note For more details on PSoC Designer see the PSoC Designer IDE Guide located at Install_directory PSoC Designer version Documentation See Additi...

Страница 14: ...ollow these steps 1 Select the ICE Cube connectivity in Port Selection as shown in Figure 2 8 Figure 2 8 PSoC Programmer Window 2 Click the File Load button to load the hex file 3 Select the device an...

Страница 15: ...on and debugging between PSoC Designer and the pod To connect the ICE from within PSoC Designer perform the following steps 1 Confirm that the flex cable and pod are attached to the ICE Cube 2 Confirm...

Страница 16: ...Using ICE Cube Connector Figure 3 1 Debugger Project Setting 8 On successful connection you receive a notification in the Output tab of the Status window a green indicator displays Connected in the l...

Страница 17: ...nd attach the other end to the ICE Cube The ICE Cube is a plug and play device and it should be recognized automatically by any computer with PSoC Designer and PSoC Programmer installed If USB connect...

Страница 18: ...d Each foot has a pinout that models a PSoC for example a 28 pin DIP A foot that emulates surface mount components must be sol dered to target circuits The main board of the pod can then be attached o...

Страница 19: ...matches the desired foot 3 Insert the mask into the bottom of the pod aligning the chamfered corners of the mask to the pin 1 triangle on the pod 4 Insert the foot through the plastic mask Use the ali...

Страница 20: ...1 Connector in ICE Cube Table 3 1 Pin Description of Pod Connector Pin No Pin Name Pin Description 1 POD EXTRA3 Future use 2 GND Ground 3 4 POD_OCDDE POD_OCD even data I O 5 GND Ground 6 POD_OCDD POD_...

Страница 21: ...ad the hex file using the File Load button 7 Program it successfully Figure 3 12 Backward Compatibility Adapter Connected to ICE Cube Pod 3 2 4 Debug a Project To successfully debug a project follow t...

Страница 22: ...ows 8 To start the debugging process go to Debug Go or press F5 Use one of the following options for the debugging process a Debug Step Over or press F8 Steps over next statement b Debug Step Into or...

Страница 23: ...ile to debug Right click the mouse at specific points and select Insert Break Point You can view and remove active break points in the Break Points window To open the Break Points window select Debug...

Страница 24: ...ntered in hexadecimal notation Flash The flash window displays the data stored in flash This is the program memory it is read only Bank Registers 0 and 1 You can scroll through the register bank to vi...

Страница 25: ...time the program executes the trace buffer is cleared When the trace buffer becomes full it continues to operate and overwrite old data Figure 3 19 Trace Window 3 2 4 5 Locals A separate window is ava...

Страница 26: ...ese steps 1 Set up all hardware including the device to be programmed 2 Disconnect power from the target board 3 Launch PSoC Programmer a From the desktop click Windows Start All Programs Cypress PSoC...

Страница 27: ...CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B 26 Using ICE Cube Connector Figure 3 22 Hardware Configuration with ICE Cube...

Страница 28: ...27 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Using ICE Cube Connector...

Страница 29: ...4 Hz The project also demonstrates how an LED can toggle on off with a delay of approximately 1 second The following user modules are used in this project PWM An 8 bit PWM is used to generate a 366 H...

Страница 30: ...his window under Select Target Device click View Catalog as shown in Figure 4 2 Figure 4 2 Select Project Type Window 7 The Device Catalog window opens Click on the PSoC tab and scroll down to the CY8...

Страница 31: ...t Emulator Development Kit Guide Doc 001 66514 Rev B 30 Code Examples Figure 4 3 Device Catalog Window 9 Under Generate Main File Using select C then click OK 10 By default the project opens in chip v...

Страница 32: ...Doc 001 66514 Rev B Code Examples Figure 4 4 Default View 11 In the User Modules window expand the PWMs folder In this folder right click on PWM8 and select Place The user module UM is placed in the...

Страница 33: ...ing figure Figure 4 6 PWM8 User Module Properties 13 Next route the PWM CompareOut signal to P2 0 The first step is to configure the lookup table LUT on Row_0_Output3 Figure 4 7 Route PWM CompareOut S...

Страница 34: ...Figure 4 9 Configur Pin for Port_2_0 18 Click OK to continue 19 In the User Modules window expand the Misc Digital folder In this folder right click LED and select Place this adds the UM to the proje...

Страница 35: ...514 Rev B 34 Code Examples Figure 4 10 Workspace Explorer 20 Configure the LED properties as shown in the following figure Figure 4 11 LED User Module Properties 21 Configure the Global Resources wind...

Страница 36: ...c file which is available as an attachment to this PDF document Figure 4 13 Workspace Explorer Window 23 Save the project 24 Click Build Generate Build Example_My_First_PSoC_Project 25 Connect the ICE...

Страница 37: ...ng 4 1 3 Verify Output Verify the output as follows 1 Two LEDs connected to P2 0 and P2 1 start blinking 2 Right click on any line in the while 1 loop in the code and select Insert Delete Breakpoint t...

Страница 38: ...37 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Code Examples...

Отзывы: