STM8S003单片机modbus协议简单通信示例

上传者: 20222919 | 上传时间: 2021-02-17 15:56:53 | 文件大小: 553KB | 文件类型: ZIP
在STM8S003单片机最小系统上实现modbus通信协议,单片机做为从机,接收主机发送的指令,实现modbus简单通信,仅支持读多个保持寄存器(03),写单个保持寄存器(06),写多个保持寄存器(16),这三个指令。

文件下载

资源详情

[{"title":"( 56 个子文件 553KB ) STM8S003单片机modbus协议简单通信示例","children":[{"title":"STM8S_UARTV0.1","children":[{"title":"main.c.orig <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"UART.ewd <span style='color:#111;'> 15.66KB </span>","children":null,"spread":false},{"title":"UART.ewt <span style='color:#111;'> 157.08KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"Obj","children":[{"title":"UART.pbd <span style='color:#111;'> 261.51KB </span>","children":null,"spread":false},{"title":"crc16.pbi <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"timer4.o <span style='color:#111;'> 10.12KB </span>","children":null,"spread":false},{"title":"timer4.pbi.xcl <span style='color:#111;'> 11.32KB </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 8.72KB </span>","children":null,"spread":false},{"title":"modbus.pbi <span style='color:#111;'> 226.80KB </span>","children":null,"spread":false},{"title":"delay.pbi.xcl <span style='color:#111;'> 11.30KB </span>","children":null,"spread":false},{"title":"uart.o <span style='color:#111;'> 21.01KB </span>","children":null,"spread":false},{"title":"uart.pbi <span style='color:#111;'> 251.85KB </span>","children":null,"spread":false},{"title":"delay.pbi <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"main.pbi.xcl <span style='color:#111;'> 11.31KB </span>","children":null,"spread":false},{"title":"modbus.o <span style='color:#111;'> 15.74KB </span>","children":null,"spread":false},{"title":"main.pbi <span style='color:#111;'> 252.47KB </span>","children":null,"spread":false},{"title":"UART.pbd.linf <span style='color:#111;'> 422B </span>","children":null,"spread":false},{"title":"uart.pbi.xcl <span style='color:#111;'> 11.32KB </span>","children":null,"spread":false},{"title":"timer4.pbi <span style='color:#111;'> 219.94KB </span>","children":null,"spread":false},{"title":"delay.o <span style='color:#111;'> 8.78KB </span>","children":null,"spread":false},{"title":"crc16.pbi.xcl <span style='color:#111;'> 11.32KB </span>","children":null,"spread":false},{"title":"modbus.pbi.xcl <span style='color:#111;'> 11.32KB </span>","children":null,"spread":false},{"title":"crc16.o <span style='color:#111;'> 8.27KB </span>","children":null,"spread":false}],"spread":false},{"title":"List","children":[{"title":"LED.map <span style='color:#111;'> 18.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"Exe","children":[{"title":"UART.hex <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false},{"title":"LED.out <span style='color:#111;'> 49.93KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"UART.ewp <span style='color:#111;'> 57.44KB </span>","children":null,"spread":false},{"title":"BuildLog.log <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"TermIO.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"UART.eww <span style='color:#111;'> 158B </span>","children":null,"spread":false},{"title":"main.h <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"HardWare","children":[{"title":"uart.c.orig <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"timer4.h <span style='color:#111;'> 141B </span>","children":null,"spread":false},{"title":"uart.h <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"timer4.c <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"uart.c <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"modbus.c <span style='color:#111;'> 6.70KB </span>","children":null,"spread":false},{"title":"crc16.c.orig <span style='color:#111;'> 4.44KB </span>","children":null,"spread":false},{"title":"modbus.c.orig <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false},{"title":"crc16.h <span style='color:#111;'> 233B </span>","children":null,"spread":false},{"title":"crc16.c <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"uart.h.orig <span style='color:#111;'> 244B </span>","children":null,"spread":false},{"title":"delay.c <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"delay.h <span style='color:#111;'> 375B </span>","children":null,"spread":false},{"title":"timer4.c.orig <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"modbus.h <span style='color:#111;'> 255B </span>","children":null,"spread":false},{"title":"modbus.h.orig <span style='color:#111;'> 168B </span>","children":null,"spread":false}],"spread":false},{"title":"settings","children":[{"title":"UART.Debug.cspy.bat <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"UART.dnx <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"UART.dbgdt <span style='color:#111;'> 49.79KB </span>","children":null,"spread":false},{"title":"UART.Debug.driver.xcl <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"UART.Debug.general.xcl <span style='color:#111;'> 319B </span>","children":null,"spread":false},{"title":"UART.Debug.cspy.ps1 <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"UART.wsdt <span style='color:#111;'> 30.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"UART.dep <span style='color:#111;'> 7.73KB </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • Csdn高端玩家-胖哥 :
    还可以,主要是计算CRC有点用
    2020-11-25

免责申明

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