登录
首页 » c » STM32F10XX modbus RTU master

STM32F10XX modbus RTU master

于 2022-09-10 发布 文件大小:5.01 kB
0 67
下载积分: 2 下载次数: 1

代码说明:

//    Ö÷»ú·þÎñ³ÌÐò    // #include"master.h" #include"usart.h" #include"delay.h" #include"stdio.h" #include "led.h" u32 RS485_Baudrate=9600;//ͨѶ²¨ÌØÂÊ u8 RS485_Parity=0;//0ÎÞУÑ飻1ÆæÐ£Ñ飻2żУÑé u16 RS485_Frame_Distance=4;//Êý¾ÝÖ¡×îС¼ä¸ô£¨ms),³¬¹ý´Ëʱ¼äÔòÈÏΪÊÇÏÂÒ»Ö¡ ÔÚ´ËΪtim7¸ºÔð½øÐÐÑÓʱ u8 RS485_RX_BUFF[2048];//½ÓÊÕ»º³åÇø2048×Ö½Ú u16 RS485_RX_CNT=0;//½ÓÊÕ¼ÆÊýÆ÷ u8 RS485_RxFlag=0;//½ÓÊÕÒ»Ö¡½áÊø±ê¼Ç u8 RS485_TX_BUFF[2048];//·¢ËÍ»º³åÇø u16 RS485_TX_CNT=0;//·¢ËͼÆÊýÆ÷ u8 RS485_TxFlag=0;//·¢ËÍÒ»Ö¡½áÊø±ê¼Ç ///////////////////////////////////////////////////////////////////////////////////// //Ö÷»úÃüÁîÇø u8   SlaverAddr=0x01;    //´Ó»úµØÖ· u8   Fuction=0x03;      // ¹¦ÄÜÂë u16  StartAddr=0xC10C;&nbs

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Eight_Num_Fengart
    本代码是为了应付人工智能的实验而编写的,写的潦草请不要介意。我又是通过这代码来“引玉”,相信看过我编写的黑白棋源代码的人应该知道“引玉”是什么意思。如果你有“玉”(什么更高效的算法能在更短的时间内求得结果,或者博弈方面的),就欢迎“砸”过来--fengart@126.com,我会很感激!(A* 算法解决八数码问题我已经研究过了,不要砸这个来)在 赛扬D2.1G 的机器上测试,算法的解答时间不超过0.1秒。 最好优先搜索算法的解答时间一般在0.05秒左右。 里面还可以演示八数码问题的从初始态到目标状态的过程。 (the code is intended to meet the artificial intelligence experiments prepared, the notoriously difficult to write please do not mind. I pass this code is to "take the jade" I believe I read prepared reversi source code, should know "primer" jade what it meant. If you have "Jade" (what more efficient algorithm in a short time of use, or the Game) welcomed "crushed" them-- fengart @ 126.com, I would be very grateful! (A* algorithm to solve the problem eight digital I have examined, not to drop it on this) Celeron D2.1G machines to test, the algorithm is not the time to answer more than 0.1 seconds. Best first search algorithm to answer in time normally around 0.05 seconds. Which can also display eight digital issues from the initial state to target s)
    2007-06-17 04:05:46下载
    积分:1
  • PassStarter
    This is example how to load a dll library and prepare for hook.
    2013-12-25 07:46:25下载
    积分:1
  • exercise5
    This is a C++ Visual Studio source code in open gl written by a programmer trying to help others
    2011-05-02 20:46:58下载
    积分:1
  • 坦克大战
    坦克大战,c#源码,可以自己设计障碍物,自己修改关卡。
    2023-02-21 00:40:04下载
    积分:1
  • FifoinFIFO
    systemc实现的一个fifo,对想要学习systemc的同学很有帮助哦(A fifo systemc achieved, the students want to learn systemc helpful oh)
    2021-04-18 00:28:52下载
    积分:1
  • CortexA8裸机电子相册项目
    该工程项目是在CortexA8裸机电子相册项目,基本的操作都有涉及,如GPIO输入输出控制,中断控制,以及显示屏刷新图片和文字,adc操作,I2C操作,通过按键来实现图片上一张和下一张图片的浏览。
    2023-02-15 11:35:07下载
    积分:1
  • Bandicam 1.8.8.365 破解版
    说明:  bandicam,屏幕录像软件,已破解,无水印(Bandicam, screen video software, cracked, no watermark)
    2020-07-01 09:29:59下载
    积分:1
  • GSM RFIM Blower control
    用于汽车防盗系统的GSM RFID鼓风机控制的Arduino代码SMS CONTROLEDGSM模块M590ERFID模块MFRC522温度传感器DS18B20
    2023-01-15 09:05:04下载
    积分:1
  • dianyuan
    利用51单片机的汇编语言来实现0到15V稳压电源的实现功能。(51 microcontroller using assembly language to achieve the 0 to 15V power supply to achieve function.)
    2010-10-19 16:02:26下载
    积分:1
  • priority-inversion
    it detects the priority inversion where the high priority task need not have to wait for low priority task
    2014-09-22 07:32:11下载
    积分:1
  • 696518资源总数
  • 105570会员总数
  • 13今日下载