Skip to content

joaocarvalhoopen/Project_template_for_PSoC_5_LP_CY8CKIT-059_kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project template for PSoC 5 LP CY8CKIT-059 10 dollars kit board


Description

In this article I will give a start template project so you can begin using the PSoC 5 LP kit in your project, in an easy way. The kit site page

The kit comes with 3 examples:

  • A button and led example.
  • A ADC and UART example.
  • A USB HID example.

And there is more example code for the PSoC 5 in the PSoC Creator Menu->File->Code Example… filter by Device family: PSoC 5 LP.
But I made this start template project because it seemed more useful to me, and I share here with you.

Start template GitHub page

The characteristics of this start template are:

  • The UART is configured, and the project has code to send and receive data from the PC, with the pins configured P12[6] and P12[7]. Although this kit has a programmer with debugger this really useful in the development process. The wires between the programmer board part of the board and the PSoC 5 LP board came already connected so you don’t have to connect any wire.
  • Has the switch of the kit already mapped to an input pin in resistive pullup mode, with code that send the status of the pin to the PC by UART.
  • Has the blue LED mapped to an output pin in strong mode, showing it the state on the PC and permitting to change the state from the PC.
  • Has a chip internal clock configured to 3MHz (maximum precision of +-1%) but the PLL configured to 70MHz for internal chip clock.
  • Has a schematic sheet in a big A3 format. You can add more sheets.

Image 1


What is PSOC 5 LP?

The PSoC 5 LP from Cypress is an 80MHz flexible SOC (System On a Chip), with an 32bit ARM Cortex M3 core, that has digital blocks like a CPLD (programmed by GUI or Verilog), and has analog blocks. It also has a range of virtual blocks.

The list of PSoC 5 LP characteristics/blocks/peripherals are:

  • 250Kb code flash
  • 64Kb RAM
  • 2K EEPROM
  • 24 Channel DMA
  • 24-bit fixed-point digital filter processor (DFB)
  • 20+ Universal Building Blocks (CPLD / digital logic)
  • Up to 24 capacitive touch sensors.
  • 4 - OpAmp (8Mhz)
  • 4 - Comparators
  • Analog Mux
  • Analog Mixer
  • Sample and hold
  • Voltage reference with 0.1% precision.
  • 1 – ADC Delta-Sigma 20 bits
  • 2 – SAR ADC 12bits 1Msample
  • 4 - Programmable amplifiers/Trans impedance amplifiers
  • 4 - 8bit voltage DAC / current DAC
  • 736 segments LCD drive for custom displays
  • Reconfigurable pin allocation
  • 300nA low leakage Hibernate low power mode
  • Analog peripherals (1.71 V ≤ VDDA ≤ 5.50 V)
  • Full USB 12Mbps
  • I2C / I2S/ SPI / UART / CAN
  • RTC – Real Time Clock

In terms of price PSoC 5 LP start at 4.5 euros and go to 14 euros in small quantities of 10.


How to connect from the PC

Connect the Kit to your PC using USB.
Copy the project to a directory on you PC and open it with PSoC Creator 3.3 or greater.
Build the project and program the kit board.
To connect by UART to the kit, download the free serial terminal program PuTTY in PuTTY site this program is similar to the Arduino terminal monitor.

To find what is the virtual COM port that is attributed in you windows PC Start -> Control Panel -> Device Manager.
Configure the PuTTY terminal session with the following UART configuration:

  • baud rate: 115200bps
  • data bits: 8
  • parity: None
  • stop bits: 1
  • flow control: None

And press ‘M’ and a menu appears with the following commands.

Image 2

The are 3 counters, 8 bits a 16 bits and a 32 bits.


How use this template project to create you projects

To use this project has a template for new project named Test001, you simply have to make a copy of the workspace directory (the directory where the project is in), and rename it to the name of your workspace in file explorer. Open the project and in the menu Build->Clean UART_001, to remove the build files.

Then open the workspace in the PSoC Creator 3.3 or greater and with the right mouse button click over the workspace name in the left tree and rename to the workspace name, right click on the project to rename the project to the new project name.

Rename workspace:
Image 3

Rename project:
Image 4

Save all files.

Build the project in menu Build->Clean and Build Test001….
And now go to the directory of your workspace/project and delete the following old files:

  • Test001\UART_001.cywrk.joao.nuno.carvalho
  • Test001\Test001.cydsn\UART_001.cycdx
  • Test001\Test001.cydsn\UART_001.cyfit
  • Test001\Test001.cydsn\UART_001.cyprj.joao.nuno.carvalho
  • Test001\Test001.cydsn\UART_001.rpt
  • Test001\Test001.cydsn\UART_001.svd
  • Test001\Test001.cydsn\UART_001_timing.html

And you are all set to go!

About

Project template for PSoC 5 LP CY8CKIT-059 kit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published