基于ARM7-TDMI-S和ucOS/II的水温监测模拟程序

上传者: tongsi | 上传时间: 2022-06-30 10:19:29 | 文件大小: 684KB | 文件类型: RAR
这个是我在学习嵌入式软件应用时做的课程大作业,基于Micrium公司的uCOS-II v2.83和LPC2148 ARM7-TDMI-S开发板做的水温监测模拟程序,买不起传感器,故只能模拟了~使用IAR开发 注意:主程序目录比较深,为\uCOS-II v2.83\EvalBoards\NXP\LPC2148-KickStartCard\IAR\OS-View-LCD\app.c 货比三家,有种就看看我这个值不值10分。 以下是程序的主要功能: 1、通过LPC2148 ARM开发板上的ADC模数转换旋钮来模拟水温的变化,将采集的模数转换数据作为模拟的水温数据,默认频率为 1次/秒; 2、水温数据采集到后,在2*16字符的LCD屏幕的第一行实时显示温度,同时将该水温数据以水平标尺的形式在LCD上动态的显示出来,默认频率为 1次/秒; 3、使用LPC2148 ARM开发板上的8个LED来反应系统的运行情况,在系统每处理一次水温数据后LED会闪烁一次,以表示系统运行正常; 4、设置水温警报值。默认水温警报下界为10℃,默认水温警报上界为90℃,当水温超出 10℃--90℃ 时,会将该(温度,时间)记录到系统的历史警报记录区中(该历史警报记录区为环形记录,不对警报记录排序,最新记录会覆盖最旧记录),历史警报记录区默认大小为30; 5、在发生警报后,LED灯闪烁亮度会加强,作为警报反应,该警报反应不会自行停止; 6、使用LPC2148 ARM开发板上的S2和S3按钮来查询历史警报信息,S2作为上翻按钮,S3作为下翻按钮;查询结果会显示在2*16字符LCD的第二行,以(警报温度值,警报时间)对的形式显示; 7、S4按钮为LCD复位按钮,用来在LCD出现异常时重启LCD屏幕,该操作不对除LCD以外的其他功能有影响; 8、S5按钮用来关闭警报反应,按下S5后可以关闭LED的高亮度闪烁。

文件下载

资源详情

[{"title":"( 72 个子文件 684KB ) 基于ARM7-TDMI-S和ucOS/II的水温监测模拟程序","children":[{"title":"大作业报告.doc <span style='color:#111;'> 571.00KB </span>","children":null,"spread":false},{"title":"大作业","children":[{"title":"uCOS-II v2.83","children":[{"title":"uC-LCD","children":[{"title":"OS","children":[{"title":"uCOS-II","children":[{"title":"lcd_os.c <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Source","children":[{"title":"lcd.c <span style='color:#111;'> 22.76KB </span>","children":null,"spread":false},{"title":"lcd.h <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"uC-LIB","children":[{"title":"lib_str.h <span style='color:#111;'> 10.70KB </span>","children":null,"spread":false},{"title":"lib_def.h <span style='color:#111;'> 17.20KB </span>","children":null,"spread":false},{"title":"lib_mem.c <span style='color:#111;'> 19.42KB </span>","children":null,"spread":false},{"title":"lib_str.c <span style='color:#111;'> 53.92KB </span>","children":null,"spread":false},{"title":"lib_mem.h <span style='color:#111;'> 34.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"uC-CPU","children":[{"title":"cpu_def.h <span style='color:#111;'> 7.55KB </span>","children":null,"spread":false},{"title":"ARM","children":[{"title":"IAR","children":[{"title":"cpu_a.s <span style='color:#111;'> 4.72KB </span>","children":null,"spread":false},{"title":"cpu.h <span style='color:#111;'> 15.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"EvalBoards","children":[{"title":"NXP","children":[{"title":"LPC2148-KickStartCard","children":[{"title":"IAR","children":[{"title":"OS-View-LCD","children":[{"title":"LPC2148-OS-View-LCD.ewp <span style='color:#111;'> 48.31KB </span>","children":null,"spread":false},{"title":"RAM","children":[{"title":"List","children":null,"spread":false},{"title":"Exe","children":[{"title":"LPC2148-OS-View-LCD.elf <span style='color:#111;'> 75.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"Obj","children":[{"title":"lcd_os.r79 <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false},{"title":"lcd.r79 <span style='color:#111;'> 18.99KB </span>","children":null,"spread":false},{"title":"os_mutex.r79 <span style='color:#111;'> 20.13KB </span>","children":null,"spread":false},{"title":"os_mbox.r79 <span style='color:#111;'> 16.51KB </span>","children":null,"spread":false},{"title":"lpc2xxx_cstartup.r79 <span style='color:#111;'> 848B </span>","children":null,"spread":false},{"title":"bsp.r79 <span style='color:#111;'> 35.25KB </span>","children":null,"spread":false},{"title":"os_core.r79 <span style='color:#111;'> 37.64KB </span>","children":null,"spread":false},{"title":"LPC2148-OS-View-LCD.pbd <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"os_dcc.r79 <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"os_cpu_a.r79 <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"app.r79 <span style='color:#111;'> 26.79KB </span>","children":null,"spread":false},{"title":"os_task.r79 <span style='color:#111;'> 28.23KB </span>","children":null,"spread":false},{"title":"lib_str.r79 <span style='color:#111;'> 15.78KB </span>","children":null,"spread":false},{"title":"os_tmr.r79 <span style='color:#111;'> 24.04KB </span>","children":null,"spread":false},{"title":"os_mem.r79 <span style='color:#111;'> 11.86KB </span>","children":null,"spread":false},{"title":"lib_mem.r79 <span style='color:#111;'> 9.50KB </span>","children":null,"spread":false},{"title":"bsp_exception.r79 <span style='color:#111;'> 10.26KB </span>","children":null,"spread":false},{"title":"os_time.r79 <span style='color:#111;'> 10.85KB </span>","children":null,"spread":false},{"title":"os_cpu_c.r79 <span style='color:#111;'> 7.60KB </span>","children":null,"spread":false},{"title":"os_dbg.r79 <span style='color:#111;'> 7.70KB </span>","children":null,"spread":false},{"title":"os_flag.r79 <span style='color:#111;'> 26.13KB </span>","children":null,"spread":false},{"title":"os_sem.r79 <span style='color:#111;'> 15.63KB </span>","children":null,"spread":false},{"title":"cpu_a.r79 <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"os_q.r79 <span style='color:#111;'> 21.77KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"app.c <span style='color:#111;'> 9.86KB </span>","children":null,"spread":false},{"title":"os_cfg.h <span style='color:#111;'> 9.57KB </span>","children":null,"spread":false},{"title":"includes.h <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"app_cfg.h <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"settings","children":[{"title":"LPC2148-OS-View-LCD.dni <span style='color:#111;'> 439B </span>","children":null,"spread":false},{"title":"LPC2148-OS-View-LCD.wsdt <span style='color:#111;'> 6.54KB </span>","children":null,"spread":false},{"title":"LPC2148-OS-View-LCD.dbgdt <span style='color:#111;'> 7.14KB </span>","children":null,"spread":false}],"spread":false},{"title":"LPC2148-OS-View-LCD.dep <span style='color:#111;'> 41.19KB </span>","children":null,"spread":false},{"title":"LPC2148-OS-View-LCD.ewd <span style='color:#111;'> 24.13KB </span>","children":null,"spread":false},{"title":"LPC2148-OS-View-LCD.eww <span style='color:#111;'> 173B </span>","children":null,"spread":false}],"spread":true},{"title":"BSP","children":[{"title":"bsp.h <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"LPC2148_RAM.xcl <span style='color:#111;'> 7.45KB </span>","children":null,"spread":false},{"title":"LPC2148_RAM.mac <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"bsp_exception.c <span style='color:#111;'> 9.69KB </span>","children":null,"spread":false},{"title":"LPC2148_flash.xcl <span style='color:#111;'> 7.45KB </span>","children":null,"spread":false},{"title":"iolpc2148.h <span style='color:#111;'> 51.39KB </span>","children":null,"spread":false},{"title":"lpc2xxx_cstartup.s79 <span style='color:#111;'> 7.05KB </span>","children":null,"spread":false},{"title":"bsp.c <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"uCOS-II","children":[{"title":"Ports","children":[{"title":"ARM","children":[{"title":"Generic","children":[{"title":"IAR","children":[{"title":"os_dcc.c <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false},{"title":"os_cpu_c.c <span style='color:#111;'> 13.74KB </span>","children":null,"spread":false},{"title":"os_cpu.h <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"os_dbg.c <span style='color:#111;'> 13.26KB </span>","children":null,"spread":false},{"title":"os_cpu_a.asm <span style='color:#111;'> 25.84KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"Source","children":[{"title":"os_mem.c <span style='color:#111;'> 19.05KB </span>","children":null,"spread":false},{"title":"os_mutex.c <span style='color:#111;'> 35.32KB </span>","children":null,"spread":false},{"title":"os_flag.c <span style='color:#111;'> 53.56KB </span>","children":null,"spread":false},{"title":"os_time.c <span style='color:#111;'> 10.34KB </span>","children":null,"spread":false},{"title":"os_sem.c <span style='color:#111;'> 23.21KB </span>","children":null,"spread":false},{"title":"os_q.c <span style='color:#111;'> 36.45KB </span>","children":null,"spread":false},{"title":"os_core.c <span style='color:#111;'> 67.36KB </span>","children":null,"spread":false},{"title":"os_task.c <span style='color:#111;'> 48.43KB </span>","children":null,"spread":false},{"title":"os_tmr.c <span style='color:#111;'> 44.81KB </span>","children":null,"spread":false},{"title":"ucos_ii.h <span style='color:#111;'> 70.30KB </span>","children":null,"spread":false},{"title":"os_mbox.c <span style='color:#111;'> 24.66KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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