Getting Started With PSoC Creator IDE and FreeSoC2 (PSoC 5LP)
Getting Started With PSoC Creator IDE and FreeSoC2 (PSoC 5LP)
Getting Started With PSoC Creator IDE and FreeSoC2 (PSoC 5LP)
Getting Started
with
FreeSoc2 (PSoC5LP)
and PSoC Creator IDE
Introduction:
The FreeSoC2 micro-controller based on the PSoC 5LP (Programmable
System on a Chip) brings together features of the programmable devices and microcontroller-type systems on chips into one package. By placing a programmable
fabric between the peripherals and the pins, the FreeSoC2 allows any function to be
routed to any pin! Moreover, the on-board PSoC includes a number of
programmable blocks which allow the user to define arbitrary digital and analog
circuits for their specific application. To get the most out of the device, you will
need to use the PSoC Creator IDE.
Step 1: Open PSOC creator IDE.
Figure 1
# 9/3, 2nd floor, SreeLaksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085,
Email: info@tenettech.com, Phone: 080 - 26722726
Step 2: File-> new project -> design -> PSoC 5LP design & save with desired name.
Figure 2
Figure 3
# 9/3, 2nd floor, SreeLaksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085,
Email: info@tenettech.com, Phone: 080 - 26722726
Step 4: Search for Digital output pin from the Component catalog on right side of the
window. Drag the Digital output pin onto the workspace
Figure 4
Step 5: Double click on the Digital output pin and change the name if you wish to.
De-select HW connection.
Figure 5
# 9/3, 2nd floor, SreeLaksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085,
Email: info@tenettech.com, Phone: 080 - 26722726
Step 6: After configuring build the project. As we can generate user-defined APIs which
will ease us while writing code. We can see APIs generated in the Workspace Explorer
on the left side of the window.
Figure 6
Step 7: Now click on main.c file and write the code and build it.
Figure 7
# 9/3, 2nd floor, SreeLaksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085,
Email: info@tenettech.com, Phone: 080 - 26722726
CODE:
#include <project.h>
int main()
{
for(;;)
{
LED1_Write(~LED1_Read());
CyDelay(90);
LED2_Write(~LED2_Read());
CyDelay(90);
LED3_Write(~LED3_Read());
CyDelay(90);
LED4_Write(~LED4_Read());
CyDelay(90);
}
Step 8: Finally double click on Design01.cydwr, assign pins to appropriate port and
build it.
Figure 8
# 9/3, 2nd floor, SreeLaksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085,
Email: info@tenettech.com, Phone: 080 - 26722726
Figure 9
CONNECTION DIAGRAM:
Figure 10
# 9/3, 2nd floor, SreeLaksmi Complex, opp, to Vivekananda Park, Girinagar, Bangalore - 560085,
Email: info@tenettech.com, Phone: 080 - 26722726
OUTPUT:
Figure 11
Figure 12
http://www.tenettech.com/product/7241/freesoc2-development-boardpsoc5lp