16
Using PSoC Creator Using PSoC Creator July 16, 2011 July 16, 2011 Lloyd Moore, Lloyd Moore, President/Owner President/Owner

Using PSoC Creator

Embed Size (px)

DESCRIPTION

PSoC Creator is the development tool chain for the PSoC 3/5 line of Programmable Systems on Chip. This talk will explore this development environment and create a simple bubble level application using Creator with the PSoC 5 First Touch Starter Kit.

Citation preview

Page 1: Using PSoC Creator

Using PSoC CreatorUsing PSoC Creator

July 16, 2011July 16, 2011Lloyd Moore, President/OwnerLloyd Moore, President/Owner

Page 2: Using PSoC Creator

OverviewOverview

Recap from last presentationRecap from last presentation IDE OverviewIDE Overview Prebuilt ComponentsPrebuilt Components Bubble Level ProjectBubble Level Project Live DemoLive Demo

Page 3: Using PSoC Creator

From Last Time….From Last Time….

The PSoC processor integrates The PSoC processor integrates programmable analog and digital with a programmable analog and digital with a traditional processing coretraditional processing core

The PSoC can be a one chip solution for The PSoC can be a one chip solution for many robotics projectsmany robotics projects

Develop the hardware configuration first Develop the hardware configuration first and then develop the software, leaving and then develop the software, leaving time to experiment with different time to experiment with different configurationsconfigurations

Page 4: Using PSoC Creator

PSoC Creator IDEPSoC Creator IDE PSoC Creator – Full IDEPSoC Creator – Full IDE

Pretty similar to Visual Studio or EclipsePretty similar to Visual Studio or Eclipse Hardware aspects programmed with a schematic capture style Hardware aspects programmed with a schematic capture style

tooltool Integrated programmer / debuggerIntegrated programmer / debugger

Page 5: Using PSoC Creator

Component CatalogComponent Catalog

Contains a set of pre-built hardware and software Contains a set of pre-built hardware and software components components

Each component has 4 aspectsEach component has 4 aspects Schematic symbolSchematic symbol DatasheetDatasheet Configuration dialogConfiguration dialog ‘‘C’ APIC’ API

To use a component drag it onto your schematic To use a component drag it onto your schematic designdesign

Right click on the part to open the datasheet or Right click on the part to open the datasheet or configuration dialogconfiguration dialog

Page 6: Using PSoC Creator

Components AvailableComponents Available

Yes there are LOTS of them, and you can make more yourself!!!Yes there are LOTS of them, and you can make more yourself!!!

Page 7: Using PSoC Creator

Delta Sigma ADC Delta Sigma ADC ComponentComponent

Implements a variable width Delta Sigma Implements a variable width Delta Sigma ADC using dedicated on chip resourcesADC using dedicated on chip resources

Page 8: Using PSoC Creator

Delta Sigma ADC DatasheetDelta Sigma ADC Datasheet Similar Similar

format to format to IC IC datasheetsdatasheets

Quite Quite detaileddetailed

API section API section in allin all

Sample Sample code code availableavailable

Page 9: Using PSoC Creator

Delta Sigma ConfigurationDelta Sigma Configuration Multiple Multiple

configurationsconfigurations Selectable resolutionSelectable resolution Differential or Single Differential or Single

EndedEnded Selectable input gainSelectable input gain Selectable referenceSelectable reference Symbol will change Symbol will change

based on some based on some settingssettings

Page 10: Using PSoC Creator

Delta Sigma API (Partial)Delta Sigma API (Partial) ?_Init?_Init ?_Enable?_Enable ?_Start?_Start ?_Stop?_Stop

API for most API for most config config optionsoptions

API for utility API for utility functionsfunctions

Page 11: Using PSoC Creator

Bubble Level ProjectBubble Level Project

PSoC 5 First Touch kit includes a 3 PSoC 5 First Touch kit includes a 3 axis accelerometer (KXSC7-2050)axis accelerometer (KXSC7-2050)

Will use the X-axis of this Will use the X-axis of this accelerometer with the 8 LEDs on accelerometer with the 8 LEDs on board to make a simple bubble levelboard to make a simple bubble level

This example derived from the stock This example derived from the stock Cypress example doing the same Cypress example doing the same thingthing

Page 12: Using PSoC Creator

Accelerometer Accelerometer ConfigurationConfiguration

Normal Mode: Continuous output, Normal Mode: Continuous output, self test off, no motion interruptself test off, no motion interrupt

Page 13: Using PSoC Creator

Bubble Level Project StepsBubble Level Project Steps

Create a new projectCreate a new project Choose and configure hardware componentsChoose and configure hardware components Setup system configuration and pin Setup system configuration and pin

assignmentsassignments BuildBuild Write ‘C’ codeWrite ‘C’ code BuildBuild Program targetProgram target TestTest

Page 14: Using PSoC Creator

Live DemoLive Demo

Page 15: Using PSoC Creator

ResourcesResources

PSoC Product Web Site:PSoC Product Web Site: http://www.cypress.com/?id=1353http://www.cypress.com/?id=1353

PSoC Developer Community:PSoC Developer Community: http://www.psocdeveloper.com/forums/http://www.psocdeveloper.com/forums/

PSoC Training On Demand:PSoC Training On Demand: http://http://www.cypress.comwww.cypress.com/training/training

PSoC 5 FirstTouch Starter Kit: $50PSoC 5 FirstTouch Starter Kit: $50 http://www.cypress.com/?rID=43674http://www.cypress.com/?rID=43674

PSoC Full Development Kit (1, 3, 5): $249PSoC Full Development Kit (1, 3, 5): $249 http://http://www.cypress.com/?rIDwww.cypress.com/?rID=37464=37464

My Contact Info: My Contact Info: [email protected]@CyberData-Robotics.com http://www.CyberData-Robotics.comhttp://www.CyberData-Robotics.com

Page 16: Using PSoC Creator

Questions????Questions????

Will be around a bit after the meeting Will be around a bit after the meeting for individual questionsfor individual questions

Feel free to e-mail meFeel free to e-mail me