Programming the Propeller with Spin : a beginner's guide to by Harprit Sandhu

By Harprit Sandhu

Parallel Processing With the Propeller--Made Easy!

"This booklet should still discover a position on any Propellerhead's bookshelf, among Parallax's Propeller Manual and its Programming and Customizing the Multicore Propeller volumes." Make: 24

Programming the Propeller with Spin: A Beginner's consultant to Parallel Processing walks you thru the basic abilities you must construct and regulate units utilizing the Propeller chip and its parallel processing atmosphere. how to use all of the exact 32-bit processors, often called cogs, and make the 8 cogs successfully have interaction with one another. The publication covers Propeller and software program setup, reminiscence, and the Spin language. step by step tasks offer you hands-on event as you the best way to:

  • Use Propeller I/O ideas with vast Spin code examples
  • Display numbers with seven phase screens
  • Create exact, managed pulse sequences
  • Add a sixteen personality by means of line LCO show
  • Control R/C pastime servos
  • Use motor amplifiers to regulate small cars
  • Run a bipolar stepper motor
  • Build a gravity sensor-based auto-leveling desk
  • Run DC vehicles with incremental encoders
  • Run small AC motors

You'll additionally locate 1000's of traces of ready-to-run documented Spin code in addition to PDFs of all of the schematics on McGraw-Hill's web site: Downloads to be had at www.mhprofessional.com/computingdownload

"This e-book should still discover a position on any Propellerhead's bookshelf, among Parallax's Propeller Manual and its Programming and Customizing the Multicore Propeller volumes." Make: 24

Show description

Read Online or Download Programming the Propeller with Spin : a beginner's guide to parallel processing PDF

Best microelectronics books

Area Array Packaging Handbook: Manufacturing and Assembly

It presents an effective and important available quickly connection with the undefined. intensity of the content material can also be correct for advertising and administration those who desire a few wisdom of the sphere. The publication is in spite of the fact that, too uncomplicated for digital Engineer. nevertheless, the images inside of aren't in strong solution.

Handbook of Contamination Control in Microelectronics - Principles, Applications and Technology

Covers the fundamentals of illness keep watch over for the newbie, whereas additionally focusing extensive on severe problems with technique engineering and circuit production for the extra complex reader. Stresses to readers that what makes the realm of illness regulate special is its ubiquitous nature, throughout all points of semiconductor production.

Programming the Propeller with Spin : a beginner's guide to parallel processing

Parallel Processing With the Propeller--Made effortless! "This e-book may still discover a position on any Propellerhead's bookshelf, among Parallax's Propeller handbook and its Programming and Customizing the Multicore Propeller volumes. " Make: 24 Programming the Propeller with Spin: A Beginner's advisor to Parallel Processing walks you thru the fundamental abilities you must construct and keep watch over units utilizing the Propeller chip and its parallel processing setting.

Extra resources for Programming the Propeller with Spin : a beginner's guide to parallel processing

Example text

Understanding the parallel-processing environment as implemented within the Spin language is fundamental to understanding how to use this Propeller chip. This is a new hardware environment. The basic concept that you must understand is that no matter how much hardware there is, if the software does not address the hardware features, you cannot use them. And no matter how powerful the software is, if there is no hardware to be addressed by it, the power is useless. Hardware and software must work together, and understanding how the interaction is implemented is the key to understanding how best to use any system.

You do not have to end a method with any specific command or with a blank line. The compiler knows that a method is complete when it finds the beginning of the next block declaration (CON, DAT, OBJ, PRI, PUB, or VAR) or when it reaches the end of the program listing. In sample code listings, you will probably see one or two blank lines between methods just because they are easier to read that way. Can a cog launch an assembly routine into itself? Yes, it can, using COGID to identify itself (if the cog is not known) and COGINIT.

If you want to share a constant, declare it in VAR and then set it to the value you want to share (from time to time, if it changes). Thirty-two input/output (I/O) pins can be accessed by all eight cogs at all times. The first cog started controls the initial clock frequency. The clock speed–related registers are set in this cog at the top of the main program, along with the constants. These values are used by the main program and all objects and methods that may be called from the main program.

Download PDF sample

Rated 4.24 of 5 – based on 31 votes