Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Barebones BX24 and Multitasking -- Success!

Discussion forum for the BasicX family of microcontroller chips.

Barebones BX24 and Multitasking -- Success! - nordzipple - Dec 12 12:10:00 2001

I've uploaded my next step in making a PID controller(PID2.BAS)under
BX24 files. Just a 4-button user interface it still lacks the best
parts, PID algorithm etc, but it DOES multitask. I hope that when
compared with the original form (PID.BAS) it may be educational for
the next poor soul who may have trouble getting multitasking to work
on a barebones BX24.

I'm very grateful for all of the help and suggestions to flatten the
stack. I basically turned the program inside out to reduce my call
stack to no more than two calls inside of any given routine. I also
had to make most variables globally available instead of local. I
can't say that it is pretty code, but it works!

Thanks again to all of you,
Charles Rich
(Seattle-area, USA)




(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )