We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: Stevan Tosic
Last Updated: 2014-03-20
Package Version: 1.0.0.0
Category: Other Codes
Downloaded: 1006 times
Not followed.
License: MIT license
State machine programming style and task functions are used to implement tasks running through their states. There are versions of code with or without timer interrupt (Multitasking.c and MultitaskingNoInterrupts.c). Code is portable to any uC.
Do you want to subscribe in order to receive notifications regarding "Simple multitasking driven by state machine" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Simple multitasking driven by state machine" changes.
Do you want to report abuse regarding "Simple multitasking driven by state machine".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1395060241_simple_multitask_mikroc_pic.ZIP [53.89KB] | mikroC PRO for PIC |
|
Multitasking (Simple multitasks led blinking project):
PORTB (ouput):
1. Timers (F0, F1)
2. PWM (F2)
3. Traffic Lights (F5, F6, F7)
PORTC (input):
4. Tasks control for traffic lights (F0, F1) (start/stop)
* Description:
This is a simple multitasking project. It turns on/off LEDs connected to
PORTB driven by task and timer (with or without interrupt).
* Features:
- this is style of programming, not library
- tasks should not block program execution by waiting on event(s)
(state-machine and ticker function control task execution)
- processor independent (PORTABLE to any uC)
with BSP (Board Support Package - processor) implementation
- relative low memory consumption
- state-machine oriented
- cooperative
- BSP code are signed with bsp word
- there are no scheduler or queues