文件名称:Timer-interrupt-for-task-switching
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 20kb
- 下载次数:
- 0次
- 提 供 者:
- 五*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定时中断实现任务切换,CPU 在空闲任务循环等待,定时中断将 CPU 周期性唤回,根据任务设计了不同的响应频度,满足条件的任务将获得CPU资源,CPU为不同任务“关照”完成后,再次返回空闲任务,如此周而复始,对于各个任务而言,好像各自拥有一个独立的CPU,各自独立运行。用这种思想构建的程序框架,最大的好处是任务很容易裁剪,系统能够做得很复杂。本程序就用了这种思想,使不同的灯用不同的频率闪烁。
-Timer interrupt for task switching, CPU cycles waiting for the idle task, timer interrupt the CPU periodically recall, according to mandate the design of the different frequency response, the task will be to meet the conditions of CPU resources, CPU for different tasks, " care" is completed again return to the idle task, again and again, for all tasks, if each has a separate CPU, operate independently. Built with the thought that the procedural fr a mework, the biggest advantage is that the task is very easy to cut, the system can do very complex. The program will use this idea to make a different light flashes with different frequencies.
-Timer interrupt for task switching, CPU cycles waiting for the idle task, timer interrupt the CPU periodically recall, according to mandate the design of the different frequency response, the task will be to meet the conditions of CPU resources, CPU for different tasks, " care" is completed again return to the idle task, again and again, for all tasks, if each has a separate CPU, operate independently. Built with the thought that the procedural fr a mework, the biggest advantage is that the task is very easy to cut, the system can do very complex. The program will use this idea to make a different light flashes with different frequencies.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1Hz,5Hz,10Hz,20Hz\1Hz,5Hz,10Hz,20Hz
....................\1Hz,5Hz,10Hz,20Hz.lnp
....................\1Hz,5Hz,10Hz,20Hz.M51
....................\1Hz,5Hz,10Hz,20Hz.Opt
....................\1Hz,5Hz,10Hz,20Hz.plg
....................\1Hz,5Hz,10Hz,20Hz.Uv2
....................\1Hz,5Hz,10Hz,20Hz_Opt.Bak
....................\1Hz,5Hz,10Hz,20Hz_Uv2.Bak
....................\hex\1Hz,5Hz,10Hz,20Hz
....................\...\1Hz,5Hz,10Hz,20Hz.hex
....................\...\1Hz,5Hz,10Hz,20Hz.lnp
....................\...\1Hz,5Hz,10Hz,20Hz.plg
....................\...\STARTUP.obj
....................\...\Text.obj
....................\src\Text.c
....................\STARTUP.A51
....................\STARTUP.LST
....................\STARTUP.OBJ
....................\Text.lst
....................\Text.obj
....................\hex
....................\src
1Hz,5Hz,10Hz,20Hz
....................\1Hz,5Hz,10Hz,20Hz.lnp
....................\1Hz,5Hz,10Hz,20Hz.M51
....................\1Hz,5Hz,10Hz,20Hz.Opt
....................\1Hz,5Hz,10Hz,20Hz.plg
....................\1Hz,5Hz,10Hz,20Hz.Uv2
....................\1Hz,5Hz,10Hz,20Hz_Opt.Bak
....................\1Hz,5Hz,10Hz,20Hz_Uv2.Bak
....................\hex\1Hz,5Hz,10Hz,20Hz
....................\...\1Hz,5Hz,10Hz,20Hz.hex
....................\...\1Hz,5Hz,10Hz,20Hz.lnp
....................\...\1Hz,5Hz,10Hz,20Hz.plg
....................\...\STARTUP.obj
....................\...\Text.obj
....................\src\Text.c
....................\STARTUP.A51
....................\STARTUP.LST
....................\STARTUP.OBJ
....................\Text.lst
....................\Text.obj
....................\hex
....................\src
1Hz,5Hz,10Hz,20Hz