首页> 外文会议>International Conference on Computer Engineering and Applications >Preemptive Multitasking on Atmel AVR Microcontroller
【24h】

Preemptive Multitasking on Atmel AVR Microcontroller

机译:Atmel AVR微控制器上的抢先式多任务处理

获取原文
获取外文期刊封面目录资料

摘要

This paper demonstrates the need for multitasking and scenario where multitasking is the only solution and how it can be achieved on an 8-bit AVR microcontroller. This project explains how to create a simple kernel in a single C file, and execute any number of tasks in a multithreaded fashion. It first explains how the AVR engine works and how it switches between different tasks using preemptive scheduling algorithm with the flexibility of blocking a task to allowing it more execution time based on their priority level. The code written for this project is basically in C, however the kernel code is mostly assembly functions called by C. The development environment is Atmel Studio. The code is in such a way that it can be ported over any 8-bit AVR microcontroller, however, this project demonstrates the results in both simulation and hardware chip on device Atmega8A.
机译:本文演示了对多任务和场景的需求,其中多任务处理是唯一的解决方案以及如何在8位AVR微控制器上实现。该项目说明如何在单个C文件中创建一个简单的内核,并以多线程的方式执行任意数量的任务。它首先介绍AVR发动机如何使用抢占调度算法在不同任务之间转换以及允许阻止任务的灵活性来允许基于其优先级更高的执行时间。为此项目编写的代码基本上是C,但内核代码大多是C的组装函数。开发环境是Atmel Studio。该代码具有这样的方式,可以通过任何8位AVR微控制器移植,但是,该项目展示了设备Atmega8a上的模拟和硬件芯片的结果。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号