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 software and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as specified in the applicable agreement. Any reproduction, modification, transla tion, 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 MATERIAL, 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 applica tion or use of any product or circuit described herein.
Cypress does not authorize its products for use as critical components in life-support systems whe re 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 systems 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™ and PSoC Creator™ are trademarks and PSoC® and CapSense® are registered trademark of Cypress
Semiconductor Corp. All other trademarks 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 Datasheets. 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 protecti on features. Any of these methods, to our
knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the prod uct as "unbreakable."
Cypress is willing to work with the customer who is concerned about the inte grity of their code. Co de prot ection i s constantly
evolving. We at Cypress are committed to continuously improving the code protection features of our products.
2CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J5
Contents
6CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
1.Introduction
1.1Kit Overview
The CY8CKIT-001 PSoC® Development Kit provides a common development platform where you
can prototype and evaluate different solutions using either the PSoC 1, PSoC 3, or PSoC 5
architectures. This guide gives you a practical understanding of PSoC technology. The kit also
includes several code examples with step-by-step instructions to enable you to ea sily d evelop PSoC
solutions. This kit includes PSoC CY8C28, CY8C38, and CY8C55 family processor modules.
1.2Kit Contents
The CY8CKIT-001 PSoC Development Kit includes:
■ PSoC development board
■ PSoC CY8C28 family processor module
■ PSoC CY8C38 family processor module
■ PSoC CY8C55 family processor module
■ MiniProg3 programmer and debug tool
■ USB cable
■ 12-V power supply adapter
■ Wire pack
■ Printed documentation
❐ Quick start guide
❐ Schematic and pinout of PSoC development board design
■ PSoC 1 software CD/DVD (contents are installed in \PSoC Development Kit CY8C28):
❐ PSoC Designer™ IDE
❐ PSoC Programmer software
❐ CY8C28 datasheets
❐ Kit release notes
❐ Software release notes
❐ Code example files, firmware, and documentation
■ PSoC 3 and PSoC 5 software CD/DVD (contents are installed in the \CY8CKIT-009A folder for
PSoC 3 module kit and \PSoC Development Kit CY8C55 folder for PSoC 5 module kit):
❐ PSoC Creator™ IDE
❐ PSoC Programmer software
❐ CY8C38 datasheet
❐ CY8C55 datasheet
❐ Kit release notes
❐ Software release notes
❐ Code example files, firmware, and documentation
1
1. Any USB certified cable up to 2 meters in length can be used with the DVK.
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J7
Introduction
1.3Installation
Everything you need to use the PSoC Development Kit is included; you only need to install the software for the processor module you plan to use.
Note CY8CKIT-008 CY8C 29 family processor module is not part of this kit; you can purchase this
module from http://www.cypress.com.
1.3.1Before You Begin
All Cypress software installations require administrator privileges, but this is not required to run the
installed software.
Shut down any currently running Cypress software.
Disconnect any ICE-Cube or MiniProg devices from your computer.
1.3.2Prerequisites
PSoC Creator and PSoC Designer both use Microsoft .NET Framework, Adobe Acrobat Reader,
and a Windows Installer. If .NET Framework and Windows Installer are not on your computer, the
installation automatically installs them. If you do not have Adobe Acrobat Reader, download and
install it from the Adobe website.
1.3.3Installing PSoC 1 Development Software
To use the CY8C28 or CY8C29 family processor module (PSoC 1), you need:
■ PSoC Designer 5.0 SP6 or higher
■ PSoC Programmer 3.12.3 or later
If PSoC Designer 5.0 is currently installed, uninstall it. Click Start Control Panel Add or
Remove Programs.
Insert the PSoC 1 Software CD/DVD; using the menu, select Install Software for PSoC 1.
After installation, user guides and key documents are located in the \Documentation subdirectory
of the PSoC Designer installation directory.
1.3.4Installing PSoC 3 Development Software
To use the CY8C38 family processor module (PSoC 3), you need:
■ PSoC Creator 1.0 Production or later
■ PSoC Programmer 3.12.3 or later
■ PSoC Development Kit example files
Insert the PSoC 3 or PSoC 5 software CD/DVD; in the menu, select Install Software for PSoC 3.
This option installs all three required software packages. The installers for PSoC Programmer and
PSoC Creator automatically start before the kit examples are installed.
For each installation, select Typical on the Installation Type page.
PSoC Creator uses the DP8051 Keil 8.16 compiler to build PSoC 3 applications. This compiler is
included on the CD/DVD; if the installer does not detect the compiler, you w ill be prompted to install
it.
Note The Keil compiler is distributed with a free license. You must activate this license within 30
days of installation. When the Cypress soft ware installation is complete, and you run PSoC Creator,
activate the compiler license from Help
8CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
Register Keil.
Introduction
Important for Win7 and Vista users: Rename the *_tools.ini file in <Install_Directory>:\
PSoC Creator\<version>\PSoC Creator\import\keil\pk51\<version> to "tools.ini" for
the Keil registration to be successful.
After installing PSoC Creator and PSoC Programmer, refer to the documentation as needed:
■ PSoC Creator Help Topics Getting Started
■ Programmer Documentation User Guide
Other documents included with this release are located in the \Documentation subdirectory of the
PSoC Creator installation directory. The default location is:
■ Customization API Reference (customizer_api.chm)
Note After the installation is complete, the kit contents are available at the following location:
<Install_Directory>:\CY8CKIT-009A\<version>
1.3.5Installing PSoC 5 Development Software
To use the CY8C55 family processor module (PSoC 5), you need:
■ PSoC Creator 2.0 or later
■ PSoC Programmer 3.12.3 or later
■ PSoC Development Kit example files
Insert the PSoC 3 or PSoC 5 Software CD/DVD; in the menu, select Install Software for PSoC 5.
This option installs all three required software packages. The installers for PSoC Programmer and
PSoC Creator automatically start before the kit examples are installed.
For each installation, select Typical on the Installation Type page.
PSoC Creator uses the GNU GCC 4.4.1 compiler to build PSoC 5 applications.
After installing PSoC Creator and PSoC Programmer, refer to the documentation as needed:
■ PSoC Creator Help Topics Getting Started
■ Programmer Documentation User Guide
Documentation. Documents
Other documents included with this release are located in the \Documentation subdirectory of the
PSoC Creator installation directory. The default location is:
■ Customization API Reference (customizer_api.chm)
Note After the installation is complete, the kit contents are available at the following location:
<Install_Directory>:\PSoC Development Kit CY8C55\<version>
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J9
Documentation. Documents
Introduction
1.4PSoC Development Board
The CY8CKIT-001 PSoC Development Board is designed to aid hardware, firmware, and software
developers in building their own systems around Cypress’s PSoC devices. The flexibility to configure
the power domains is one of the foremost features of this board. Input power to the board is from one
of two sources:
■ 12 V 1-A power supply adapter
■ 9-V alkaline battery (not included)
This full-featured board incorporates three onboard linear regulators that power peripherals and
PSoC processor modules at voltages between 1 .7 V and 5.0 V. Th es e r eg ula tors include a fixed 5 V
1-A linear regulator, a fixed 3.3 V 300-mA linear regulator, and a 1.5 V to 3.3 V for 3.3-V supp ly and
1.5 V to 5 V for 5-V supply adjustable regulator. The board also provides the ability to separate the
PSoC core VDD rail into two separate rails, analog and digital. In addition, the board is able to
separate the I/O VDD rails, giving the flexibility to power the I/O ports at different voltages.
The board is equipped with a 2×16 alphanumeric LCD module capable of 1.8 V to 5.0 V I/O. In
addition, there is a mini-B full-speed USB interface and a female DB9 serial communications
interface. Also included is a 12-pin wireless radio module interface, which can be used to develop
CyFi™ low-power RF or other embedded RF solutions with this kit. The board also has a prototypin g
area containing a small breadboard, complete with I/O port sockets nearby, multipurpose LEDs,
mechanical push buttons, and a multipurpose variable resis tor. In addition, three capacitive sensing
elements (two buttons and a five seg ment slider) are included o n the boar d to allow the evalu ation of
CapSense
®
applications.
The board has four general-purpose I/O (GPIO) e xpansion slots, allowing the I/O to expand to external boards.
The board is designed with modularity in mind and, as a result, supports removable processor modules. This allows you to plug different PSoC processor modules into the board based upon the
desired features of both 8-bit and 32-bit PSoC devices.
Note
■ The PSoC device may get hot or damaged if many I/O pins are configured as strong drive with
initial state HIGH and grounded externally using wires.
■ The PSoC device may get hot or damaged if many I/O pins are configured as strong drive with
initial state LOW and connected to Vcc externally using wire s.
1.4.1Default Switch and Jumper Settings
Jumpers on the CY8CKIT-001 PSoC development board have a default setting to operate at 3.3 V.
For default configuration, each of the jumpers must be set according to these instructions.
Note All CY8C28 and CY8C29 family processor module code examples are configured for 5 V . Configure the board to 5 V, before creating the code examples.
SW3 - VDD Select. Default Position: 3.3 V (down position)
10CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
J8 - 5 V Source. Default Position: VREG (upper two pins)
J7, J6 - VDD Digital, VDD Analog. Default Position: VDD (upper two pins, both headers)
J12 - LCD Power. Default Position: ON (lower two pins)
Introduction
J2-J5 - VDDIO Power Select. Default Position: VDD (upper left two pins)
J10 - RS-232 Power (Serial Communications). Default Position: Installed
Some recommended part numbers include 6LR61XWA/1SB (Panasonic), MN1604 (Duracell), and
6LR61 (Energizer).
1.5Kit Revision
To know the kit revision, look for the white sticker on the bottom left on the back of the kit box. If the
revision reads CY8CKIT-001B Rev **, then congratulations, you own the latest version.
You can also check the silicon marketing part number on the processor module. If the part number is
CY8C3866AXI-040, then congratulations, you own the latest version.
To upgrade CY8CKIT-001A to CY8CKIT-001B, the PSoC 3 proc esso r mod ule and kit CD/DVD m ust
be updated. Purchase the latest pro ces sor mo dule at http://www.cypress.com/go/CY8CKIT-009 and
download the latest CD ISO image at http://www.cypress.com/go/CY8CKIT-001.
To upgrade CY8CKIT-001 to CY8CKIT-001B, besides the upgrades stated above, you need to purchase the latest PSoC 5 process module at http://www.cypress.com/go/CY8CKIT-010.
12CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
1.6Additional Resources
Visit http://www.cypress.com/go/training for additional learning resources in the form of datasheets,
technical reference manual, and application notes.
1.6.1Beginner Resources
AN54181 - PSoC 3 - Getting Started with a PSoC 3 Design Project
PSoC Designer Training
PSoC Designer FAQ
PSoC Creator Training
1.6.2Engineers Looking for More
AN54460 - PSoC 3 and PSoC 5 Interrupts
AN52705 - PSoC 3 and PSoC 5 - Getting Started with DMA
AN52701 - PSoC 3 - How to Enable CAN Bus Communication
AN54439 - PSoC 3 and PSoC 5 External Oscillator
Introduction
AN52927 - PSoC 3: Segment LCD Direct Drive
Cypress continually strives to provide the best support. Click here to view a growing list of
application notes for PSoC 3 and PSoC 5.
1.6.3Learning from Peers
Cypress Developer Community Forums
1.7Document Conventions
These conventions are used throughout this guide.
Table 1-1. Documentation Conventions
ConventionUsage
Courier New
Size 12
ItalicsDisplays file names and reference documentation:
[bracketed, bold]Displays keyboard commands in procedures:
Bold With ArrowsRepresents menu paths, user entered text:
Bold Displays commands and selections, and icon names in procedures:
NoteDisplays functionality unique to PSoC Designer, PSoC Creator, or the PSoC
WARNING:Displays cautions that are important to the subject.
Displays file locations and source code:
C:\ …cd\icc\.
sourcefile.hex
[Enter] or [Ctrl] [C]
File New Project Clone
Click the Debugger icon, and then click Next.
device.
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J13
Introduction
1.8Document Revision History
Document Title: CY8CKIT-001 PSoC Development Kit Guide
Document Number: 001-48651
RevisionIssue Date
**6/23/09AESANew Guide
*A7/22/09AESACDT based updates
*B1 1/19/09AESACDT based updates
*C05/21/10AESAUpdated with PSoC 5.
*F12/16/11RKADContent updates throughout the document.
*G12/30/11RKAD
*H01/13/12RKAD
*I01/18/12RKAD
*J05/03/12SASHAdded the Additional Resources section
Origin of
Change
Updated images. Updated PSoC Creator and PSoC Programmer
versions
Updated installation directory path. Added Figure 2-4 and Figure 2-
10. Added note on Keil compilers in section 1.3.4.
Added note on USB cable in section 1.2 - Kit Contents. Appended
to note in section A.1.4 - LCD Module
Minor ECN to include attachments in pdf. No content updates
made.
Description of Change
14CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
2.Loading My First PSoC Project
The CY8CKIT-001 PSoC Development Kit supports projects across the PSoC 1, PSoC 3, and
PSoC 5 architectures. This section walks you through the high-level design process for opening,
building, programming, and running your first PSoC project using this kit.
Before beginning, follow each of these steps to make certain that your software and hardware
environments are properly configured and ready for these projects:
1. Install PSoC Designer using the steps listed in Installing PSoC 1 Development Software on
page 8.
2. Install PSoC Creator using the steps listed in Installing PSoC 3 Development Software on page 8.
3. Connect the MiniProg3 into your PC using the supplied USB cable. When you connect the
MiniProg3, Microsoft Windows
are installed as part of the PSoC Programmer installation process; however, if Windows opens
the driver installation dialog boxes, accept the defaults and allow Win dows to automatically find
the appropriate driver.
4. Close any open PSoC Creator or PSoC Designer applications and projects.
5. Configure the PSoC development board (jumper settings and switches) in its default configuration, as described in Default Switch and Jumper Settings on page 10.
6. Use the PSoC CY8C28 family processor module or PSoC CY8C29 family processor module for
the PSoC 1 version of your first PSoC project (My First PSoC 1 (CY8C28) Project on page 16 or
My First PSoC 1 (CY8C29) Project on page 20).
7. Use the PSoC CY8C38 family processor module for the PSoC 3 version of your first PSoC
project (My First PSoC 3 (CY8C38) Project on page 25).
8. Use the PSoC CY8C55 family processor module for the PSoC 5 version of your first PSoC
project (My First PSoC 5 (CY8C55) Project on page 28).
9. For a PSoC 1 project, use the ISSP header on the PSoC CY8C28 family processor module or
PSoC CY8C29 family processor module and connect the MiniProg3 ISSP port.
10.For a PSoC 3 or PSoC 5 project, use the JTAG ribbon cable. Connect the ribb on cable to the
MiniProg3 and the CY8C38 family processor module or CY8C55 family processor module into
the header labeled PROG on the processor module.
Note The MiniProg3 should not be "hot plugged" into processor modules that are attached to the
PSoC development board. In other words, do not plug the ribbon cable of the MiniProg3 into the
processor module while code is actively running on the module. Doing so may cause the PSoC
device to unintentionally reset. Power down the PSoC development board and module by
unplugging the power supply from the development board before att aching the MiniProg3 device
to the module board. When the ribbon cable is attached to the module board, power the system
by plugging in the power supply to the PSoC development board. This will avoid any undesirable
PSoC device resets.
11.Power the PSoC development board using the 12-V AC power supply adapter.
®
may indicate that it has found new hardware. All required drivers
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J15
Loading My First PSoC Project
2.1My First PSoC 1 (CY8C28) Project
This is a simple PSoC 1 project using a pulse width modulator (PWM) peripheral inside PSoC, and
software to control the blinking rates of two different LED outputs. For this project, be sure you have
the PSoC CY8C28 family processor module inserted into the PSoC development board and the
appropriate software installed. This section walks you through the steps to open, build, and program
a project.
2.1.1Loading My First PSoC 1 Project
1. Open PSoC Designer.
2. In the Start Page, navigate to File
3. Navigate to the pr oje ct dir ec to ry: <Install_Directory>:\PSoC Developent Kit
CY8C28\<version>\Firmware\CY8C28.
4. Open the folder Ex1_LED_with_PWM.
5. Double-click Ex1_LED_with_PWM.app.
6. The project opens in the Chip Editor view. All project files are in the Workspace Explorer.
Figure 2-1. Chip Editor View
Open Project/Workspace
16CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
2. PSoC Designer builds the project and displays comments in the Output window. When you see
the message that the project is built with 0 errors and 0 warnings, you are ready to program the
device.
Loading My First PSoC Project
Figure 2-3. Output Window
2.1.3Programming My First PSoC 1 Project
1. Open Program Part from within PSoC Designer by selecting Program Program Part.
2. In the Program Part window, ensure that MiniProg3 is selected in the Port Selection box.
3. In the Program Part window, set Acquire Mode to Reset.
4. In the Program Part window, set Verification to On. This ensures that downloaded checksum
matches the actual checksum.
5. In PSoC Programmer, set AutoDetection to On to enable the software to automatically detect
and configure for the target device family and device. If PSoC Programmer is properly
configured, AutoDetection reports a device family of 28xxx.
Note Make sure ISSP protocol is selected.
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J17
Loading My First PSoC Project
6. In the Program Part window, click the program arrow to program the device.
7. Wait until programming is completed, to continue.
Note For debugging purposes, the CY8C28 family processor module is designed to accommodate
the use of the CY3215-DK In-Circuit Emulator (ICE-Cube). When using the ICE-Cube debugger,
make certain that PSoC Designer is configured so that the ICE-Cube does not provide power to the
processor module. Within the PSoC Designer application, select Project Settings and select
Debugger from the tree. Make sure that External only is selected under the Pod Power Source
section and select Execute Program from the Debug menu to start debugging.
Connect the processor module to the CY3215-DK ICE-Cube, as shown in Figure 2-4.
Figure 2-4. ICE-Cube Connected to CY8C28 (PSoC 1) Processor Module - Debugging the
Ex1_LED_with_PWM Code Example
2.1.4Running My First PSoC 1 Project
1. Connect P1[6] to LED1 and P1[7] to LED2. Verify that LED1 and LED2 are blinkin g base d on the
project's use of the PWM and software. Now that the PSoC 1 device is programmed, reset the
PSoC development board by pressing and releasing the reset switch (SW4).
2. LED1 blinks approximately once every second and LED2 blinks about three times a second.
18CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
Figure 2-5. Connect P1[6] to LED1 and P1[7] to LED2
P1[6]
P1[7]
LED1
LED2
Loading My First PSoC Project
3. For more details regarding this project, see the detailed project instructions in My First PSoC 1
(CY8C28) Project on page 33.
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J19
Loading My First PSoC Project
2.2My First PSoC 1 (CY8C29) Project
This is a simple PSoC 1 project using a PWM peripheral inside PSoC, and software to control the
blinking rates two different LED outputs. For this project, be sure you have the PSoC CY8C29 family
processor module inserted into the PSoC development board and the approp riate sof twar e inst alled.
This section walks you through the steps to open, build, and program a project.
2.2.1Loading My First PSoC 1 Project
1. Open PSoC Designer.
2. In the Start Page, navigate to File
3. Navigate to the pr oje ct dir ec to ry: C:\Cypress\CY8CKIT-001\CY8C29 Projects.
2. PSoC Designer builds the project and displays comments in the Output window. When you see
the message that the project is built with 0 errors and 0 warnings, you are ready to program the
device.
Loading My First PSoC Project
Figure 2-8. Output Window
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J21
Loading My First PSoC Project
2.2.3Programming My First PSoC 1 Project
Figure 2-9. Connect MiniProg3 to J5 on CY8C29 Family Processor Module
1. Open PSoC Programmer from within PSoC Designer by selecting Program PSoC Programmer.
2. In PSoC Programmer, make sure that MiniProg3 is selected in the Port Selection box.
3. In PSoC Programmer, set Programming Mode to Reset.
4. In PSoC Programmer, set Verification to On so that the software verifies that the downloaded
program's checksum matches the actual checksum of the flash memory after programming. This
is a precautionary check to verify that there is no data corruption during programming.
5. In PSoC Programmer, set AutoDetection to On to enable the software to automatically detect
and configure for the target device family and device. If PSoC Programmer is properly
configured, AutoDetection reports a device family of 29x66 and device of CY8C29466.
Note Make sure ISSP protocol is selected.
6. With these settings configured, click Program to program your PSoC 1 device.
7. Wait until programming is complete before continuing.
Note For debugging purposes, the CY8C29 family processor module is designed to accommodate
the use of the CY3215-DK In-Circuit Emulator (ICE-Cube). When using the ICE-Cube debugger,
make certain that PSoC Designer is configured so that the ICE-Cube does not provide power to the
processor module. Within the PSoC Designer application, select Project Settings and select
Debugger from the tree. Make sure that External only is selected under the Pod Power Source
section and select Execute Program from the Debug menu to start debugging.
Connect the processor module to the CY3215-DK ICE-Cube, as shown in Figure 2-10.
22CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
Loading My First PSoC Project
Figure 2-10. ICE-Cube Connected to CY8C29 (PSoC 1) Processor Module - Debugging the
Example_My_First_PSoC_Project Code Example
2.2.4Running My First PSoC 1 Project
1. Connect P0[7] to LED1 and P1[7] to LED2. Verify that LED1 and LED2 are blin king base d on th e
project's use of the PWM and software. Now that the PSoC 1 device is programmed, reset the
PSoC development board by pressing and releasing the reset switch (SW4).
2. LED1 blinks approximately once every second and LED2 blinks about three times a second.
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J23
Loading My First PSoC Project
P0[7]
P1[7]
LED1
LED2
Figure 2-11. Connect P0[7] to LED1 and P1[7] to LED2
3. For more details regarding this project, see the detailed project instructions in My First PSoC 1
(CY8C29) Project on page 70.
24CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
2.3My First PSoC 3 (CY8C38) Project
This is a PSoC 3 project using a PWM peripheral programmed from inside the PSoC 3 device to
control the blinking rates of two different LED outputs. For this project, insert the PSoC CY8C38 family processor module in the PSoC development board and install the appropriate software. This section shows you the steps to open, build, and program a project.
2.3.1Loading My First PSoC 3 Project
1. Open PSoC Crea tor.
2. In the Start Page, under Start Page Topics expand Kits.
3. Under Kits, expand PSoC CY8C38 Family Processor Module Kit.
4. Click Ex1_LED_with_PWM.cywrk to open the project.
Figure 2-12. Kits List
Loading My First PSoC Project
5. Select the directory to store the project.
6. After the project opens, you can se e the pr oje ct file s in Workspace Explorer (see Figure 2-13).
Figure 2-13. Workspace Explorer
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J25
Loading My First PSoC Project
2.3.2Building My First PSoC 3 Project
1. Select Build Build Ex1_LED_with_PWM.
Figure 2-14. Build Window
2. PSoC Creator builds the project and displays the comments in the Output window. When you
see the message "Build Succeeded", you are ready to program the device.
Figure 2-15. Output Window
26CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
2.3.3Programming My First PSoC 3 Project
Figure 2-16. Connect MiniProg3 to J5 on CY8C38 Family Processor Module
Loading My First PSoC Project
1. If this is your first time running PSoC Creator, follow these steps to configure the MiniProg3
device for these PSoC development kit projects. If these configurations are set, skip to the next
step and begin programming.
Note VTARG of the MiniProg3 is wired exclusively to VDDIO1 of the chip on the PSoC CY8C38
family processor module. Because of this, you cannot perform power cycle mode programming.
❐ From the Tools menu in PSoC Creator, click Options. The Options window opens.
❐ In the Options window, select Program/Debug Port Configuration MiniProg3 from the
list.
•Set Power to 3.3 V
•Set Active Protocol to SWD
•Set Connector to 10 Pin
•Set Acquire Mode to Reset
•Set Clock Speed to 3.2 MHz
•Click OK.
❐ From the Debug menu, select Select Debug Target. The Select Debug Target dialog box
opens.
❐ Expand the tree under MiniProg3 and click Port Acquire.
❐ Select the appropriate device and click Connect.
❐ Click Close.
2. In PSoC Creator, from the Debug menu, click Program.
3. The PSoC Creator status bar indicates that the device is programming.
4. Wait until programming is complete before continuing.
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J27
Loading My First PSoC Project
P1[7]
P1[6]
LED1
LED2
2.3.4Running My First PSoC 3 Project
1. Unplug the development board, switch SW3 to 3.3 V and then reapply power to the board.
2. Connect P1[6] to LED1 and P1[7] to LED2. Verify that LED1 and LED2 are blinkin g base d on the
project's use of the PWMs.
3. LED1 blinks approximately once every second and LED2 blinks about three times a second.
Figure 2-17. Connect P1[6] to LED1 and P1[7] to LED2
4. For more details regarding this project, review the detailed project instructions in My First PSoC 3
/ PSoC 5 Project on page 102.
2.4My First PSoC 5 (CY8C55) Project
This project uses a PWM peripheral programmed from in sid e PSo C 5 to co nt rol the blinking rates of
two different LED outputs. For this project, insert the PSoC CY8C55 family processor module in the
PSoC development board and install the a ppropriate sof tware. This section shows the steps to ope n,
build, and program a project.
2.4.1Loading my First PSoC 5 Project
1. Open PSoC Creato r.
2. In the Start Page, under Start Page Topics expand Kits.
3. Under Kits, expand PSoC CY8C55 Family Processor Module Kit.
4. Click Ex1_LED_with_PWM.cywrk to open the project.
28CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
Figure 2-18. Kits List
Loading My First PSoC Project
5. Select the directory to store the project.
6. After the project ope ns, you can se e th e project files in Workspace Explorer.
Figure 2-19. Workspace Explorer
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J29
Loading My First PSoC Project
2.4.2Building My First PSoC 5 Project
1. Select BuildBuildEx1_LED_with_PWM.
Figure 2-20. Build Window
2. PSoC Creator builds the project and displays the comments in the Output window. When you see
the message "Build Succeeded", you are read y to pr og r am the dev ice .
Figure 2-21. Output Window
30CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. *J
Loading...
+ 181 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.