Lesson 02: Create a PSoC Project using PSoC Creator
This lesson does the following:
- Demonstrates how PSoC can be programmed to do more than a traditional MCU
- Shows how to use PSoC Creator to create, modify, program, and debug PSoC 5LP projects.
- Provides detailed steps that make it easy to learn PSoC design techniques using the PSoC Creator IDE
(PSoC Creator User Guide: http://www.cypress.com/file/137441/download)
This lesson takes you through the design processor, step by step. It guides you through both hardware and firmware design entry.
These instructions assume that you are using PSoC Creator 4.x. The overall development process is the same for other versions of PSoC Creator, however some of the dialog boxes may be different.
1. Create a New PSoC Project
A project contains all of the source code and other files required to create a single output module that can be downloaded to a target PSoC 5LP device.
Start PSoC Creator
Find the PSoC Creator 4.x icon to launch the tool by using one of the following methods:
- On the windows desktop, find the PSoC Creator icon and double click on it.
- Launch PSoC Creator from Windows Start Menu.
- Use the Windows Start key and type "PSoC Creator" to locate the PSoC Creator, then click on it.
Create New Project
The first step of creating a design is using New Project Wizard to create a new PSoC project. The following items will be done by the New Project Wizard:
- Select the kit, module, or device
- Select the type of project to create
- Specify the project name and location
- Choose whether to create a new Workspace or add to an existing Workspace
Follows the next steps to open the wizard dialog, and configure for a new project:
- To start a new project, you can either:
- Click the "Create New Project..." link on the PSoC Creator Start Page
- Click the Create New Project button in the menu bar, or
- From the File menu and select "New➤Project ..." to open the NEW Project Wizard
- In the "Create Project" dialog, you need to select one of the following type of target device:
- Target kit: Use this option to select a specific kit or the last used kit.
- Target module: Use this option to select a specific module, or the last used module.
- Target device: Use this option to select a device family and series, the last used device, or to launch the Device Selector.
- Next, in the "Select project template" dialog, select an Empty schematic as a project template.
- In the next dialog, you have to enter text for a Workspace name. A workspace is a container for one or more projects. A project is usually contained in a workspace.
- In Workspace name field, type the name of the Workspace, for example: "PSoC5LP_Lab".
- In Location field, type the path where you want the project to be saved, or click and navigate to the appropriate directory.
- In Project name field, type the name of your project, for example: "MyFirstPSoC".
PSoC Creator organizes applications into Workspace that can contain one or more projects.
- Click Finish button, then PSoC Creator will create a new directory in the "Location" field; and create subdirectory for Workspace. In the Workspace subdirectory, the Project directory will be created.
- After PSoC Creator creates all the folders and files, the main windows will show on the screen, and several new panes are displayed: Workspace Explorer, Schematic (TopDesign.cysch), and Component Catalog.
- By default, PSoC Creator creates a new workspace containing the new project. Files and folders are added to the Workspace Explorer shown in the Source tab.
- In the document panel, the Schematic Editor displays the top-level schematic file (TopDesign.cysch).
- The Component Catalog panel opens to display a list of Components can be used in your design.