文件名称:SCH51-Preemptive-task

  • 所属分类:
  • 单片机(51,AVR,MSP430等)
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2013-11-01
  • 文件大小:
  • 534kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • zix***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

实用的多任务排序Preemptive task

,如果任务A和任务B定时同时定时到,该执行哪个?如果执行A,那么B就得舍弃,注意,是舍弃,不是等一会再执行B。还有,如果某个任务执行时间出现抖动,整个系统和其它任务都要遭殃了,等等。

在我的代码中,力求解决这些问题。在此,我不打算带着大家一行一行分析代码。这玩意讲解没用,自己去悟懂了才是王道,我的代码注释得已经很详细了其实。

代码的重点是SCH51.C和T0_INIT.C两个文件,使用之前一定要先看看CONFIG.H的配置情况。task.c文件内容你可以自定义来实现。其它的我都有注释的。

-If the task is very large, the timer big trouble, because the microcontroller interrupt program should end as soon as possible. Moreover, if the timing of the task A and task B simultaneously timed to the implementation of what? If you do A, then B must abandon, note that is discarded and not wait for a while before running B. Also, if a task execution time jitter occurs, the entire system and other tasks have to suffer, and so on. In my code, to try to resolve these issues. At this point, I do not intend to bring everyone to the code line by line analysis. This stuff is useless to explain, understand themselves to realize is king, my code was already very detailed notes in fact. Code is focused SCH51.C and T0_INIT.C two documents, we must first look CONFIG.H before using the configuration. task.c contents of the file you can customize to achieve. I have another comment.
(系统自动生成,下载前可以参看下载内容)

下载文件列表





SCH51 ★★★★★★★ -抢占式-完\SCH51\debug\Main.obj

...............................\.....\.....\Sch51.obj

...............................\.....\.....\SCH51_App

...............................\.....\.....\SCH51_App.hex

...............................\.....\.....\SCH51_App.lnp

...............................\.....\.....\SCH51_App.plg

...............................\.....\.....\T0_init.obj

...............................\.....\.....\task.obj

...............................\.....\pdf\config.h.pdf

...............................\.....\...\Main.c.pdf

...............................\.....\...\Sch51.c.pdf

...............................\.....\...\SCH51.h.pdf

...............................\.....\...\T0_init.c.pdf

...............................\.....\...\T0_init.h.pdf

...............................\.....\...\task.c.pdf

...............................\.....\...\TASK.h.pdf

...............................\.....\Read me.txt

...............................\.....\SCH51\config.h

...............................\.....\.....\Sch51.c

...............................\.....\.....\Sch51.h

...............................\.....\.....\T0_init.c

...............................\.....\.....\T0_init.h

...............................\.....\task\task.c

...............................\.....\....\task.h

...............................\.....\user\Main.c

...............................\.....\....\Main.LST

...............................\.....\....\Sch51.lst

...............................\.....\....\SCH51_App.m51

...............................\.....\....\SCH51_App.uvopt

...............................\.....\....\SCH51_App.uvproj

...............................\.....\....\SCH51_App_uvopt.bak

...............................\.....\....\SCH51_App_uvproj.bak

...............................\.....\....\T0_init.lst

...............................\.....\....\task.lst

...............................\.....\debug

...............................\.....\pdf

...............................\.....\SCH51

...............................\.....\task

...............................\.....\user

...............................\SCH51

SCH51 ★★★★★★★ -抢占式-完

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org