background image

2

CY3215-DK PSoC 1 In-Circuit Emulator Development Kit Guide, Doc. # 001-66514 Rev. *B

Copyrights

Copyrights

© Cypress Semiconductor Corporation, 2011-2012. The information contained herein is subject to change without notice.
Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a
Cypress product. Nor does it convey or imply any license under patent or other rights. Cypress products are not warranted
nor intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an
express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components
in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user.
The inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such
use and in doing so indemnifies 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. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create
derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom soft-
ware and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as speci-
fied in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without 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 MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described
herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein.
Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure
may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support sys-
tems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all
charges. 

Use may be limited by and subject to the applicable Cypress software license agreement. 

PSoC

®

 Designer™ is a trademark and PSoC

®

 is a registered trademark of Cypress Semiconductor Corp. All other trade-

marks or registered trademarks referenced herein are property of the respective corporations.

Flash Code Protection

Cypress products meet the specifications contained in their particular Cypress PSoC Data Sheets. Cypress believes that its
family of PSoC products is one of the most secure families of its kind on the market today, regardless of how they are used.
There may be methods, unknown to Cypress, that can breach the code protection features. Any of these methods, to our
knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guaran-
tee the security of their code. Code protection does not mean that we are guaranteeing the product as ‘unbreakable’.

Cypress is willing to work with the customer who is concerned about the integrity of their code. Code protection is constantly
evolving. We at Cypress are committed to continuously improving the code protection features of our products.

Summary of Contents for CY3215-DK

Page 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...

Page 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...

Page 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...

Page 4: ...4 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Contents...

Page 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...

Page 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...

Page 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...

Page 8: ...7 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Introduction...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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_...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 28: ...27 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Using ICE Cube Connector...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 38: ...37 CY3215 DK PSoC 1 In Circuit Emulator Development Kit Guide Doc 001 66514 Rev B Code Examples...

Reviews: