Position: Index > Unclassified >

How to Make an AVR Perform Multiple Tasks(ADS2807Y)

2017-08-09 18:38  
Declaration:We aim to transmit more information by carrying articles . We will delete it soon, if we are involved in the problems of article content ,copyright or other problems.

This article describes the How to Make an AVR Perform Multiple Tasks (ADS2807Y). The principle is very simple, very practical. The circuit components can help you understand better grasp this principle. For example, in this circuit, you can go to find and buy these components: ADS2807Y.

This article describes how to make anAVRperform multiple tasks. Beginners who wish to get an in-depth knowledge inAVRassemble language programming can try out this project. The assembly language helps to utilize all the functions and capabilities of the processor. Read on to know more.

Figure:1

Figure 1 

The most important and major functionality of an operating system is performing multiple tasks on theCPU. What is being done here is time sharing or multitasking on anAVR. An Atmega32 is set up to perform Round-Robin Multitasking. Quasi-parallel execution of multiple tasks is possible through Round-Robin Multitasking. The tasks are time-sliced and are not done in parallel.

The project demonstrates how the switching mechanism is done between 7 individual tasks. TheRAMis divided between the number of processes that are running. A timer is used here and a trigger is executed when it reaches a compare value. The necessary registers are pushed onto the stack.

Now comes the process of switching between the various tasks. A backup of the current stack pointer is required as this helps to identify the previous task that was being executed. About 50 bytes of memory is made available to store the task index. This is the stack pointer backup table.

 


Reprinted Url Of This Article:
http://www.eeweb.com/blog/extreme_circuits/how-to-make-an-avr-perform-multiple-tasks