UCOSII V2.8x 移植到ICCAVR7.22 基于AVR单片机(ATMEGA128)实现MODBUS RTU从站通信

上传者: ba_wang_mao | 上传时间: 2022-07-08 18:01:04 | 文件大小: 1.51MB | 文件类型: ZIP
编译器: ICCAVR7.22 芯片: ATMEGA128 1、使用TIMER0的CTC中断作为滴答中断 2、使用TIMER2作为MODBUS RTU通信3.5字符静止时间。 3、完成功能: USART1串口实现:RS485 MODBUS RTU 从站通信 通信波特率:38400,n,8,1 实现MODBUS RTU从站如下功能码: (1)、 ---> 读取线圈,功能码1 (2)、 ---> 读取离散输入,功能码2 (3)、 ---> 读取保持寄存器,功能码3 (4)、 ---> 读取输入寄存器,功能码4 (5)、 ---> 强制单个线圈,功能码5 (6)、 ---> 强制单个保持寄存器,功能码6 (7)、 ---> 强制多个线圈,功能码15 (8)、 ---> 强制多个保持寄存器,功能码16 4、创建了3个任务 (1)、AppTaskStart任务(MODBUS RTU从站解析任务) (2)、AppTask1任务,继电器DO0

文件下载

资源详情

[{"title":"( 91 个子文件 1.51MB ) UCOSII V2.8x 移植到ICCAVR7.22 基于AVR单片机(ATMEGA128)实现MODBUS RTU从站通信","children":[{"title":"UCOSIIV2.8X_ATMEGA128_ICCAVR_MODBUS","children":[{"title":"README.txt <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"OUTPUT","children":[{"title":"MODBUS.lk <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"MODBUS.mp <span style='color:#111;'> 10.09KB </span>","children":null,"spread":false},{"title":"os_mbox.lis <span style='color:#111;'> 79.61KB </span>","children":null,"spread":false},{"title":"app_isr.lis <span style='color:#111;'> 11.22KB </span>","children":null,"spread":false},{"title":"os_task.lis <span style='color:#111;'> 94.44KB </span>","children":null,"spread":false},{"title":"app.o <span style='color:#111;'> 6.27KB </span>","children":null,"spread":false},{"title":"os_sem.lis <span style='color:#111;'> 61.00KB </span>","children":null,"spread":false},{"title":"MODBUS.lst <span style='color:#111;'> 445.75KB </span>","children":null,"spread":false},{"title":"CRC16.lis <span style='color:#111;'> 18.43KB </span>","children":null,"spread":false},{"title":"USART1.lis <span style='color:#111;'> 33.92KB </span>","children":null,"spread":false},{"title":"os_time.o <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false},{"title":"os_mem.lis <span style='color:#111;'> 79.60KB </span>","children":null,"spread":false},{"title":"app.lis <span style='color:#111;'> 30.54KB </span>","children":null,"spread":false},{"title":"MODBUS.dbg <span style='color:#111;'> 40.62KB </span>","children":null,"spread":false},{"title":"os_cpu_a.lis <span style='color:#111;'> 29.59KB </span>","children":null,"spread":false},{"title":"os_q.o <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"os_mbox.o <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":"app_isr.o <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"app_vect.o <span style='color:#111;'> 179B </span>","children":null,"spread":false},{"title":"app_vect.lis <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"os_mutex.o <span style='color:#111;'> 104B </span>","children":null,"spread":false},{"title":"os_time.lis <span style='color:#111;'> 27.00KB </span>","children":null,"spread":false},{"title":"os_cpu_c.o <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"os_q.lis <span style='color:#111;'> 79.60KB </span>","children":null,"spread":false},{"title":"os_task.o <span style='color:#111;'> 9.84KB </span>","children":null,"spread":false},{"title":"os_cpu_c.lis <span style='color:#111;'> 37.34KB </span>","children":null,"spread":false},{"title":"os_core.o <span style='color:#111;'> 36.17KB </span>","children":null,"spread":false},{"title":"os_cpu_a.o <span style='color:#111;'> 3.24KB </span>","children":null,"spread":false},{"title":"bsp.lis <span style='color:#111;'> 15.23KB </span>","children":null,"spread":false},{"title":"MODBUS.hex <span style='color:#111;'> 35.71KB </span>","children":null,"spread":false},{"title":"os_dbg_r.lis <span style='color:#111;'> 22.93KB </span>","children":null,"spread":false},{"title":"MODBUS_SLAVE.o <span style='color:#111;'> 31.26KB </span>","children":null,"spread":false},{"title":"os_mutex.lis <span style='color:#111;'> 79.61KB </span>","children":null,"spread":false},{"title":"MODBUS.mak <span style='color:#111;'> 7.71KB </span>","children":null,"spread":false},{"title":"os_flag.lis <span style='color:#111;'> 79.61KB </span>","children":null,"spread":false},{"title":"USART1.o <span style='color:#111;'> 7.64KB </span>","children":null,"spread":false},{"title":"os_core.lis <span style='color:#111;'> 191.92KB </span>","children":null,"spread":false},{"title":"MODBUS.cof <span style='color:#111;'> 57.22KB </span>","children":null,"spread":false},{"title":"bsp.o <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"os_flag.o <span style='color:#111;'> 102B </span>","children":null,"spread":false},{"title":"os_mem.o <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":"MODBUS_SLAVE.lis <span style='color:#111;'> 130.28KB </span>","children":null,"spread":false},{"title":"CRC16.o <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"os_sem.o <span style='color:#111;'> 10.66KB </span>","children":null,"spread":false},{"title":"os_dbg_r.o <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false}],"spread":false},{"title":"platform.h <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"BACKUP","children":null,"spread":false},{"title":"MODBUS.prj <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"MODBUS.SRC <span style='color:#111;'> 856B </span>","children":null,"spread":false},{"title":"Micrium","children":[{"title":"Core","children":[{"title":"os_mem.c <span style='color:#111;'> 18.40KB </span>","children":null,"spread":false},{"title":"os_mutex.c <span style='color:#111;'> 30.38KB </span>","children":null,"spread":false},{"title":"os_flag.c <span style='color:#111;'> 53.22KB </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;'> 22.97KB </span>","children":null,"spread":false},{"title":"ucos_ii.c <span style='color:#111;'> 1007B </span>","children":null,"spread":false},{"title":"os_q.c <span style='color:#111;'> 36.03KB </span>","children":null,"spread":false},{"title":"os_core.c <span style='color:#111;'> 66.69KB </span>","children":null,"spread":false},{"title":"os_dbg_r.c <span style='color:#111;'> 10.08KB </span>","children":null,"spread":false},{"title":"os_task.c <span style='color:#111;'> 48.09KB </span>","children":null,"spread":false},{"title":"os_cfg_r.h <span style='color:#111;'> 8.68KB </span>","children":null,"spread":false},{"title":"ucos_ii.h <span style='color:#111;'> 54.78KB </span>","children":null,"spread":false},{"title":"os_mbox.c <span style='color:#111;'> 24.35KB </span>","children":null,"spread":false}],"spread":false},{"title":"App","children":[{"title":"app_vect.s <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"MODBUS","children":[{"title":"MODBUS_SLAVE.H <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"MODBUS_SLAVE.C <span style='color:#111;'> 17.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"CRC16","children":[{"title":"CRC16.C <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"CRC16.H <span style='color:#111;'> 453B </span>","children":null,"spread":false}],"spread":true},{"title":"app.c <span style='color:#111;'> 9.58KB </span>","children":null,"spread":false},{"title":"os_cfg.h <span style='color:#111;'> 9.32KB </span>","children":null,"spread":false},{"title":"includes.h <span style='color:#111;'> 636B </span>","children":null,"spread":false},{"title":"BSP","children":[{"title":"bsp.h <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"bsp.c <span style='color:#111;'> 5.11KB </span>","children":null,"spread":false}],"spread":false},{"title":"app_cfg.h <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"app_isr.s <span style='color:#111;'> 3.46KB </span>","children":null,"spread":false},{"title":"USART1","children":[{"title":"USART1.H <span style='color:#111;'> 549B </span>","children":null,"spread":false},{"title":"USART1.C <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"Ports","children":[{"title":"os_cpu_i.h <span style='color:#111;'> 4.97KB </span>","children":null,"spread":false},{"title":"os_cpu_a.s <span style='color:#111;'> 11.39KB </span>","children":null,"spread":false},{"title":"os_cpu_c.c <span style='color:#111;'> 14.27KB </span>","children":null,"spread":false},{"title":"os_cpu.h <span style='color:#111;'> 5.32KB </span>","children":null,"spread":false},{"title":"os_dbg.c <span style='color:#111;'> 12.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"Doc","children":[{"title":"TaskAssignmentWorksheet.xls <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"QuickRefChart-Color.xls <span style='color:#111;'> 28.50KB </span>","children":null,"spread":false},{"title":"README.TXT <span style='color:#111;'> 4.53KB </span>","children":null,"spread":false},{"title":"ReleaseNotes.pdf <span style='color:#111;'> 376.48KB </span>","children":null,"spread":false},{"title":"uCOS-II-CfgMan.pdf <span style='color:#111;'> 182.18KB </span>","children":null,"spread":false},{"title":"uCOS-II-RefMan.pdf <span style='color:#111;'> 858.60KB </span>","children":null,"spread":false},{"title":"QuickRefChart-Color.pdf <span style='color:#111;'> 17.66KB </span>","children":null,"spread":false},{"title":"TaskAssignmentWorksheet.pdf <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"修改说明.txt <span style='color:#111;'> 614B </span>","children":null,"spread":false}],"spread":true},{"title":"屏幕截图 2022-07-08 112544.png <span style='color:#111;'> 253.15KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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