MultiTasking Question

Started by Bob Roos in BasicX13 years ago 3 replies

I have been reading about multitasking. Where does the stack for each task reside? If RAM is limited to 400(?) bytes and they...

I have been reading about multitasking. Where does the stack for each task reside? If RAM is limited to 400(?) bytes and they talk about 1000 tasks running in a test how does it fit? Thanks, Bob Roos


Flashing an Multitasking

Started by psyclopedia in BasicX12 years ago 12 replies

I've picked up a couple of RGB LEDs to play with recently. Man, these things are really fun. I'm learing a bunch about what = what when ...

I've picked up a couple of RGB LEDs to play with recently. Man, these things are really fun. I'm learing a bunch about what = what when mixing colors. On to the point. I would like to flash one of the LED colors at some interval while simultaneously running another piece of code. As I've never done any work with multitasking, is that what must


Multitasking BX-24 w/ servo motors

Started by unix1020 in BasicX11 years ago 1 reply

Hello I am new to the bx-24 and programming so I hope you don't think I'm a chump with dumb questions. I am building a walking Robot and I...

Hello I am new to the bx-24 and programming so I hope you don't think I'm a chump with dumb questions. I am building a walking Robot and I want to use the BX-24 as the brain. I am going to have 17 servo motors,sharp IR range detector and a 5g accelerometer. So far it is coming together very well, I have the distance senor and accelerometer working well with the BX-24. My problem is


BasicX multitasking, serial networking

Started by wizzawho in BasicX11 years ago 3 replies

I'm researching the BasicX controller for a project and am not sure it's capable of doing what I need it to. Maybe someone in this group can...

I'm researching the BasicX controller for a project and am not sure it's capable of doing what I need it to. Maybe someone in this group can help me out. Can I look at the state of 16 input pins as an integer? Or 2 groups of 8 I/O as two bytes? Basic Stamp has INS (for 8 pins) and OOPic has oDIO16 to read multiple I/O. The BasicX "getPin" command only looks at one pin at a time. Is ...


Re: PWM

Started by Mike Perks in BasicX12 years ago 4 replies

matias domin matte izquierdo wrote: > I want to drive two 6VDC motors. I'm using the L293D to control the > direction and speed, but I...

matias domin matte izquierdo wrote: > I want to drive two 6VDC motors. I'm using the L293D to control the > direction and speed, but I need a permanent PWM output from BX-24. Is it > posible? I think that with multitasking this is posible, but I havent' > done > it. > > Otherway, how can I drive these motors withut adding


Can any one help

Started by ITand RD, ICL Ltd in BasicX14 years ago 15 replies

I have two tasks: 1) One to report a temperature and send a message out of Comm3, 2) To detect when a switch is pressed and...

I have two tasks: 1) One to report a temperature and send a message out of Comm3, 2) To detect when a switch is pressed and send a message out of Comm3. Individually these tasks work perfectly. However, when put together under multitasking, nothing would w


Is there a Multitasking Guide?

Started by cadurrans in BasicX11 years ago

hi, I started a project based upon the example but it just didn't work. The alternative using conventional routines in turn worked...

hi, I started a project based upon the example but it just didn't work. The alternative using conventional routines in turn worked without problem. Looking at a variety of sensors, for navigation, a goal that's guided by the sensors and motor control / servo output. I'm revisiting the idea of modules for each of the sensor type and drive but wondered if there is a better guide to multitas


NMEA to BX-24

Started by Mikael Karstikko in BasicX11 years ago 5 replies

Hello ! This message is primarily adressed to Tom Becker . I used the DateTimeNMEA.bas ( found SerialPort_24.bas but I didn't find the...

Hello ! This message is primarily adressed to Tom Becker . I used the DateTimeNMEA.bas ( found SerialPort_24.bas but I didn't find the Support_24.bas , though it only drived the onboard leds O:-) The code worked great ! After studying the code for a couple of hours ... I still wasn't sure that what i should do to get the speed reading from the $GPVTG line .... I haven't used multitasking


Re: BX-24p Ram question

Started by Peter Richeson in BasicX6 years ago

I am new to multitasking and am trying to figure out how much ramstack will be required. Where did Mikes's program BxDsim go? If I pull out the...

I am new to multitasking and am trying to figure out how much ramstack will be required. Where did Mikes's program BxDsim go? If I pull out the code I want to run into a standalone project, compile and will the amount of ram in compile stats/RAM be the stack required? Thanks. --- In b...@yahoogroups.com, "Don Kinzer" wrote: > > --- In b...@yahoogroups.com, "Vic Fraenckel"


New file is uploaded

Started by Yuri Bernikov in BasicX11 years ago

It is a set of DEMO programs for 4x20 LCD with I2C backboard "Spyglass Control Panel". The programs demonstrate how to use different features...

It is a set of DEMO programs for 4x20 LCD with I2C backboard "Spyglass Control Panel". The programs demonstrate how to use different features of the unit, i.e. displaying data on the LCD, reading buttons, controlling buzzer. It also demonstrates advanced techniques such as interruptions, multitasking, "Big Characters". As a bonus it includes fully functional "Al


Multitasking and a terminated Main()

Started by Tom Becker in BasicX12 years ago 2 replies

I am puzzled. Below is code in which Main() starts a task and then spins. If the spin includes a Sleep(0), the running task displays 100% (on a...

I am puzzled. Below is code in which Main() starts a task and then spins. If the spin includes a Sleep(0), the running task displays 100% (on a BX-24p; adjust the 126 for BX-24 to see 100%), as a benchmark. 100% suggests that the processor is essentially unloaded by Main(). If Main() spins with no Sleep, the displayed BackGround value is 12%, i.e. Main() takes 88%. If Main() is a


Stack overflow I think

Started by Peter Richeson in BasicX6 years ago 3 replies

My first attampt at multitasking with BasicX and I think I killed a BX24. When I loaded and ran my program the display went nuts and now I can't...

My first attampt at multitasking with BasicX and I think I killed a BX24. When I loaded and ran my program the display went nuts and now I can't get the BX24 to respond. Tried reset button, load program then turning on the unit, nothing helps. have I killed it? Since stack is in ram i did not think a stack overflow would kill the unit. Next question, how do I make sure i don't kill another ...


multitasking problem

Started by gvartani in BasicX12 years ago 10 replies

Background? I have written a main program that is intended to read GPS text as a task (140 task stack) and run an xbotx. For my bot I am...

Background? I have written a main program that is intended to read GPS text as a task (140 task stack) and run an xbotx. For my bot I am using code that came from Netmedia xbotx. The servo driver module calls a public task within the sub "ServoTask" (25 task stack). This task is dimensioned as private within the module. Current problem?


Multitasking and use of Pow() function

Started by Santhosh Jayarajan in BasicX8 years ago 4 replies

Group, I have noticed that when I use the Pow() statement in a task the task locks and the program stops running. Here are the details: I have...

Group, I have noticed that when I use the Pow() statement in a task the task locks and the program stops running. Here are the details: I have used a Sharp distance sensor and as a part of the sub I use a Pow() statement to get the actual distance.This sub I use as a task to be scanned every 10 msec. When the Pow () or ^ statement is executed the program locks and the microcontroller has to be...


BX task switching, shared variables and atomic access

Started by arhodes19044 in BasicX12 years ago 7 replies

When a BX task switch occurs can a it interrupt a multibyte data write in the middle of a write operation? I.E. Are BX variable read and ...

When a BX task switch occurs can a it interrupt a multibyte data write in the middle of a write operation? I.E. Are BX variable read and write operations atomic? I ask this because, while the BX is "multitasking", in actuality only one task is working at a time. So, if one task is going to write data, and another is going to read the data, do


multitasking with sensors and servo motor

Started by sinsynplus in BasicX12 years ago

hi, i want to do an office chair which runs away from people therefore i'm using 5 sharp gp distance sensors for his eyes and one servo...

hi, i want to do an office chair which runs away from people therefore i'm using 5 sharp gp distance sensors for his eyes and one servo motor for steering and a dc motor for moving - more about this project see this link