TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (387 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (120 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (140169 times)
  2. FAT32 Library (72624 times)
  3. Network Ethernet Library (57644 times)
  4. USB Device Library (47958 times)
  5. Network WiFi Library (43555 times)
  6. FT800 Library (42942 times)
  7. GSM click (30141 times)
  8. mikroSDK (28672 times)
  9. PID Library (27058 times)
  10. microSD click (26552 times)
Libstock prefers package manager

Package Manager

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]

< Back
Project

Simple multitasking driven by state machine

Rating:

0

Author: Stevan Tosic

Last Updated: 2014-03-20

Package Version: 1.0.0.0

Category: Other Codes

Downloaded: 1017 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.

No Abuse Reported

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".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

     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
 

ALSO FROM THIS AUTHOR

PID control simulation on GLCD

0

Typical control system with PID controller is simulated and variables (input, error, output, control) are drawn on GLCD screen using PID and Bars libraries.

[Learn More]

Multi Timers using Event driven programming for PIC 18F8520

9

How to use Multi Timers for PIC 18F8520 in easy and user friendly way with additional library.

[Learn More]

RTOS for PIC 18F

4

Simple RTOS working in round-robin way with 1ms task switching. Number of tasks is five. Stacks size are configurable. Semaphores and timers examples are presented. Tasks progress is indicated by led blinking,

[Learn More]