Home » » SP- How to Make an AVR Perform Multiple Tasks

SP- How to Make an AVR Perform Multiple Tasks


This article describes a way to create an AVR perform multiple tasks. Beginners who want to urge an in-depth information in AVR assemble language programming will seek this project. The assembly language helps to utilize all the functions and capabilities of the processor. browse on to grasp a lot of.



The most vital and major functionality of an operating system is performing multiple tasks on the CPU. what's being done here is time sharing multitasking which too on an AVR. An Atmega32 is ready up to perform Round-Robin Multitasking. Quasi-parallel execution of multiple tasks is feasible through Round-Robin Multitasking. The tasks are time-sliced and don't seem to be tired parallel.

The project demonstrates how the switching mechanism is finished between seven individual tasks. The RAM is split between the amount of processes that are running. A timer is employed here and a trigger is executed when it reaches a compare worth. the required registers are pushed onto the stack.

Now comes the method of switching between the varied tasks. A backup of the present stack pointer is needed as this helps to spot the previous task that was being executed. concerning fifty bytes of memory is formed offered to store the task index. this is often the stack pointer backup table.

Now suppose, task one is interrupted by the timer, the CPU registers and also the standing registers are pushed. The task index is checked at this time and also the stack pointer of future task is currently obtained. currently this task starts executing and this continues for a number of microseconds till it's interrupted. This cycle continues and this provides an effect that every one tasks are being performed parallely.

0 comments:

Post a Comment

www.circuitsprojects.blogspot.com

Find Us on Facebook

Top Circuits Diagram

Popular Posts