You are on page 1of 5

- Modul 4Starting a New Project When you first open PSoC Creator, you are taken to the Start

Page. The Start Page shows recent projects, application notes, and design templates. Begin by creating a new blank project. 1. Click on File -> New -> Project to open the dialog box for a new project. 2. Verify that the Design tab is selected and that the Empty PSoC3 Design option is highlighted. 3. Change the name of the project to Modul4. 4. Change the location of the project if desired. Click the browse button to the right of the Location text box to browse to a desired folder. 5. Click on the expand button next to Advanced (see Figure 1). 6. Change the Workspace name to LabWork. This single workspace holds all of the projects that we are going to do in this book. 7. There is a drop down menu that allows us to select the device that we are going to use for our project. Since the CY8C3866 is the device included with the CY8CKIT-030 board, select that device for this project. 8. The Sheet Template drop down menu allows us to change the formatting of our schematic. The default selections include a title box around the schematic. Select the Empty option to omit the title block. Selecting the Launch Sheet Template Selector option gives a visual example of each template. 9. The Application Type menu allows you to choose special application types, such as boot loadable applications. Use the default selection of Normal.

Figure 1. Workspace Creation 10.Click OK.

Adding Components
1. Add a Character LCD component from the Display group in the Component Catalog. 2. Configure the LCD component to have the name LCD and to include the ASCII to number conversion routines. 3. Add a Delta_Sigma _ADC component by dragging the component from the Analog/ADC group in the Component Catalog to your design. Configure the ADC component to have the name ADC 4. In the Config tab, set the parameters as follows (see Figure 2).

Figure 2. ADC Config Tab 5. Add a Thermocouple Calculator component by dragging the component from the Thermal Management group in the Component Catalog to your design. Configure the Thermocouple Calculator component to have the name Thermocouple 6. Connect the component as follows (see Figure 3).

Figure 3. Thermocouple Calculator Config Tab

7. Add two Resistor components by dragging the component from the Off-chip/Passive group in the Component Catalog to your design. Configure the Resistor components to have the name R_1 and R_2 8. Set value for R_1=330KOhm and R_2=1.5KOhm 9. Add a Ground components by dragging the component from the Off-chip/Power group in the Component Catalog to your design. Configure the Resistor components to have the name Vss 10. Add a Power components by dragging the component from the Off-chip/Power group in the Component Catalog to your design. Configure the Power components to have the name Power_1 and supply name set to 3.3 V 11. Add two Analog Pin components by dragging the component from the Off-chip/Passive group in the Component Catalog to your design. Configure the Analog Pin components to have the name TcHotJnPos_5_4 and TcHotJnPos_5_5, check all two pin to Show External Terminal and uncheck for Contiguous 12. Connect the component as follows (see Figure 4).

Figure 4. Connection in Modul3B project

Assigning Pins

Open the design-wide resources file (Modul4.cydwr) and assign the pin as Figure 3

Figure 3. Pin Configuration

Code
1. Write the following code into the main.c file.

Building and Debugging Your Project


1. Build the project by press Shift+[F5] and verify that there are no errors in your project. 2. Press Ctrl+[F5] to continue program the chip.

Assignment
Please observe after connect the thermocouple to P5_4 an P5_5 what happen in the CY8CKIT-030 board and give a short report in notepad (format .txt) send to eLisa http://elisa.ugm.ac.id/community/show/praktikum-sistem-terintegrasi/ directly before the end of your lab schedule.

You might also like