基于状态机与时间片轮的51单片机万年历程序Proteus仿真

上传者: tang2010up | 上传时间: 2024-09-24 00:09:15 | 文件大小: 124KB | 文件类型: 7Z
在对分层思想、时间片轮转和状态机思想进行[简单应用] 二、主函数 主函数如下: 整个主函数的中心任务为功能选择切换任务,负责切换显示内容,控制ui变化等,其余任务函数除提醒任务外都是通过全局变量的形式给功能选择切换任务提供资源或从该任务获取内容。 ## 三、显示任务 由于显示任务涉及到了多个层级的函数,从最底层写命令、写数据,到中间层显示和初始化等函数。再到最顶层控制多行的显示。故使用了多级状态机的形式来完成lcd任务的状态机内容。由于C语言顺序执行的特性。规定同一层级使用同一个状态机,可以有效减少状态机的数量同时也能保证系统的稳定运行。

文件下载

资源详情

[{"title":"( 52 个子文件 124KB ) 基于状态机与时间片轮的51单片机万年历程序Proteus仿真","children":[{"title":"1、代码","children":[{"title":"1、时间片轮基本实现","children":[{"title":"user","children":[{"title":"DS18B20.lst <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"keys.obj <span style='color:#111;'> 12.10KB </span>","children":null,"spread":false},{"title":"1.uvproj <span style='color:#111;'> 15.53KB </span>","children":null,"spread":false},{"title":"task.__i <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"main.OBJ <span style='color:#111;'> 11.31KB </span>","children":null,"spread":false},{"title":"1.uvopt <span style='color:#111;'> 9.41KB </span>","children":null,"spread":false},{"title":"OneWire.obj <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"OneWire.lst <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"2.OBJ <span style='color:#111;'> 41.10KB </span>","children":null,"spread":false},{"title":"1 <span style='color:#111;'> 106.52KB </span>","children":null,"spread":false},{"title":"main.LST <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"task.lst <span style='color:#111;'> 37.36KB </span>","children":null,"spread":false},{"title":"keys.lst <span style='color:#111;'> 3.33KB </span>","children":null,"spread":false},{"title":"timer.lst <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false},{"title":"1.build_log.htm <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"ds1302.obj <span style='color:#111;'> 9.16KB </span>","children":null,"spread":false},{"title":"1.uvgui_Admin.bak <span style='color:#111;'> 135.75KB </span>","children":null,"spread":false},{"title":"timer.obj <span style='color:#111;'> 13.43KB </span>","children":null,"spread":false},{"title":"1.uvgui.Admin <span style='color:#111;'> 174.14KB </span>","children":null,"spread":false},{"title":"1.hex <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"1.uvgui.无衣 <span style='color:#111;'> 163.80KB </span>","children":null,"spread":false},{"title":"1.plg <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"DS18B20.obj <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false},{"title":"ds1302.lst <span style='color:#111;'> 5.66KB </span>","children":null,"spread":false},{"title":"sys.lst <span style='color:#111;'> 1012B </span>","children":null,"spread":false},{"title":"task.obj <span style='color:#111;'> 35.79KB </span>","children":null,"spread":false},{"title":"sys.obj <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"lcd1602.obj <span style='color:#111;'> 22.13KB </span>","children":null,"spread":false},{"title":"lcd1602.lst <span style='color:#111;'> 11.98KB </span>","children":null,"spread":false},{"title":"1.M51 <span style='color:#111;'> 73.53KB </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 396B </span>","children":null,"spread":false},{"title":"1.lnp <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"2.LST <span style='color:#111;'> 30.85KB </span>","children":null,"spread":false},{"title":"readme.txt <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":false},{"title":"module","children":[{"title":"DS18B20","children":[{"title":"OneWire.c <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"DS18B20.c <span style='color:#111;'> 796B </span>","children":null,"spread":false},{"title":"OneWire.h <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"DS18B20.h <span style='color:#111;'> 152B </span>","children":null,"spread":false}],"spread":true},{"title":"KEYS","children":[{"title":"keys.c <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"keys.h <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"TIMER","children":[{"title":"timer.c <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"timer.h <span style='color:#111;'> 516B </span>","children":null,"spread":false}],"spread":true},{"title":"LCD","children":[{"title":"LCD1602","children":[{"title":"lcd1602.c <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false},{"title":"lcd1602.h <span style='color:#111;'> 499B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"TASK","children":[{"title":"task.h <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"task.c <span style='color:#111;'> 19.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"DS1302","children":[{"title":"ds1302.h <span style='color:#111;'> 666B </span>","children":null,"spread":false},{"title":"ds1302.c <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"SYS","children":[{"title":"sys.h <span style='color:#111;'> 215B </span>","children":null,"spread":false},{"title":"sys.c <span style='color:#111;'> 20B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"2、仿真","children":[{"title":"仿真.pdsprj <span style='color:#111;'> 22.87KB </span>","children":null,"spread":false},{"title":"仿真.DSN <span style='color:#111;'> 113.90KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明