Multitasking through state machines Items tagged with Multitasking through state machines
RTOS
Its simple to implement, I will see if i can make a working example to put up on forum but for now just understand the logic.
You will have a variable that will hold the state of system.. say SysState. and there are few states depending on tasks your system is going to do..
simple example:
A task for keypad, LCD and an RTC.
Task1: Check for key and show time stamp on LCD when key is pressed
Task 2: Upd... Read Compelte post
You will have a variable that will hold the state of system.. say SysState. and there are few states depending on tasks your system is going to do..
simple example:
A task for keypad, LCD and an RTC.
Task1: Check for key and show time stamp on LCD when key is pressed
Task 2: Upd... Read Compelte post
Other Tags: state machine embedded system 8051 state machine coding multitasking through state machines
Posted by ajay_bhargav on Tue Sep 28 2010, 02:36 am