Using PSoC Creator
-
Upload
lloydmoore -
Category
Technology
-
view
236 -
download
7
description
Transcript of Using PSoC Creator
Using PSoC CreatorUsing PSoC Creator
July 16, 2011July 16, 2011Lloyd Moore, President/OwnerLloyd Moore, President/Owner
OverviewOverview
Recap from last presentationRecap from last presentation IDE OverviewIDE Overview Prebuilt ComponentsPrebuilt Components Bubble Level ProjectBubble Level Project Live DemoLive Demo
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
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
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
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!!!
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
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
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
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
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
Accelerometer Accelerometer ConfigurationConfiguration
Normal Mode: Continuous output, Normal Mode: Continuous output, self test off, no motion interruptself test off, no motion interrupt
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
Live DemoLive Demo
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
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