Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

Overview  Recap from last presentation  IDE Overview  Prebuilt Components  Bubble Level Project  Live Demo

Slide 3

Slide 3 text

From Last Time….  The PSoC processor integrates programmable analog and digital with a traditional processing core  The PSoC can be a one chip solution for many robotics projects  Develop the hardware configuration first and then develop the software, leaving time to experiment with different configurations

Slide 4

Slide 4 text

PSoC Creator IDE  PSoC Creator – Full IDE  Pretty similar to Visual Studio or Eclipse  Hardware aspects programmed with a schematic capture style tool  Integrated programmer / debugger

Slide 5

Slide 5 text

Component Catalog  Contains a set of pre-built hardware and software components  Each component has 4 aspects  Schematic symbol  Datasheet  Configuration dialog  ‘C’ API  To use a component drag it onto your schematic design  Right click on the part to open the datasheet or configuration dialog

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

Delta Sigma ADC Datasheet  Similar format to IC datasheets  Quite detailed  API section in all  Sample code available

Slide 9

Slide 9 text

Delta Sigma Configuration  Multiple configurations  Selectable resolution  Differential or Single Ended  Selectable input gain  Selectable reference  Symbol will change based on some settings

Slide 10

Slide 10 text

Delta Sigma API (Partial)  ?_Init  ?_Enable  ?_Start  ?_Stop  API for most config options  API for utility functions

Slide 11

Slide 11 text

Bubble Level Project  PSoC 5 First Touch kit includes a 3 axis accelerometer (KXSC7-2050)  Will use the X-axis of this accelerometer with the 8 LEDs on board to make a simple bubble level  This example derived from the stock Cypress example doing the same thing

Slide 12

Slide 12 text

Accelerometer Configuration  Normal Mode: Continuous output, self test off, no motion interrupt

Slide 13

Slide 13 text

Bubble Level Project Steps  Create a new project  Choose and configure hardware components  Setup system configuration and pin assignments  Build  Write ‘C’ code  Build  Program target  Test

Slide 14

Slide 14 text

Live Demo

Slide 15

Slide 15 text

Resources  PSoC Product Web Site:  http://www.cypress.com/?id=1353  PSoC Developer Community:  http://www.psocdeveloper.com/forums/  PSoC Training On Demand:  http://www.cypress.com/training  PSoC 5 FirstTouch Starter Kit: $50  http://www.cypress.com/?rID=43674  PSoC Full Development Kit (1, 3, 5): $249  http://www.cypress.com/?rID=37464  My Contact Info:  [email protected]  http://www.CyberData-Robotics.com

Slide 16

Slide 16 text

Questions????  Will be around a bit after the meeting for individual questions  Feel free to e-mail me