PDA

View Full Version : Parallel processing question



Macgman2000
- 13th October 2011, 04:21
I was looking at PICAXE which is no different than a Basic Stamp...since it uses a bootstrap and basic language. They claim parallel processing....is this an interrupt based processing? It says in the data sheet that it does not get hung up on pause statements if you define for example 2 routines to run in parallel.

If that is the case anyone done anything similar on PicBasic pro?

Nick

Charles Linquis
- 13th October 2011, 05:23
There are a number of ways to do what you describe with PBP. The best way is to use interrupts, but a simple, often "good enough" method is to use one of the hardware timers. Then you can replace the PAUSE statement with a routine that first clears the timer, and then occasionally checks for the timer to be above a given value.