-
STM32的485双机通信
应用背景RS-485 接口电路的主要功能是:将来自微处理器的发送信号TX 通过“发送器”转换成通讯网络中的差分信号,也可以将通讯网络中的差分信号通过“接收器”转换成被微处理器接收的RX 信号。任一时刻,RS-485 收发器只能够工作在“接收”或“发送”两种模式之一,因此,必须为RS-485 接口电路增加一个收/发逻辑控制电路。另外,由于应用环境的各不相同,RS-485 接口电路的附加保护措施也是必须重点考虑的环节。关键技术该程序使用485通讯协议使用STM32F103来完成双机通信.本实验为使用串口2通过485收发数据的实验,485芯片为SN65LBC184
实验步骤:
1、把主机端、从机端的工程分别烧录到两块板子上
2、用两根导线使两个板子的485A -485A,485B-485B接口相连。
3、先给从机上电,再给主机上电,实验调试信息可由串口1打印到PC终端。
- 2022-05-10 20:17:43下载
- 积分:1
-
9x9 realize the software automatically fill the data grid, so that is horizontal...
该软件实现9X9方格的数据自动填写,让横排是123456789,肃立也是123456789,挺有意识的。-9x9 realize the software automatically fill the data grid, so that is horizontal 123456789, 123456789 stood also, quite conscious.
- 2023-04-15 21:00:03下载
- 积分:1
-
本程序进行模拟扑克牌发牌程序,可以把一付扑克牌分发给4个不同的对象,并把每个人所得到的牌显示促来...
本程序进行模拟扑克牌发牌程序,可以把一付扑克牌分发给4个不同的对象,并把每个人所得到的牌显示促来-This procedure to simulate poker licensing procedures can be distributed to one pay poker four different audiences, and each person received a license to display and promote
- 2022-02-04 04:41:01下载
- 积分:1
-
C++实现模拟操作系统的进程控制与状态转换
使用C++模拟操作系统的进程之间的状态转换。包括进程之间对临界资源的使用以及进程同步的调度。
- 2022-05-14 21:12:51下载
- 积分:1
-
corejava 程序
面试相关 corejava程序(哎呀,收集、 线程、 同步、 例外) 和一些基本逻辑的实时场景。
- 2022-03-23 14:27:06下载
- 积分:1
-
对工作分配进行多次优化,直到找到最优的分配方式。 首先将所有工作交给能力最强的人做,然后找出最低安全值和最高安全值,此时将未分配工作的人的能力值当作安全值参与判...
对工作分配进行多次优化,直到找到最优的分配方式。 首先将所有工作交给能力最强的人做,然后找出最低安全值和最高安全值,此时将未分配工作的人的能力值当作安全值参与判断,把安全值最低者分配的仓库数减一,并将这个仓库交给安全值最高者看守,然后进入下次优化,在新一次优化过程中把最低安全值和上次优化时的最低安全值作比较,如果这次最低安全值比上次大,则继续进行优化,若系统最低安全值相比上次下降,则说明上次优化后的结果已经是最优,即得结果。-work on a number of distribution optimization, until they found the optimal method of distribution. First of all to the most capable people to do and then find the minimum value and maximum security safety value has been assigned to this work of the human capacity as a safety value in judging the value safety, the lowest value of the distribution by a few warehouses and storage to the value of the highest security guards, and then proceed to the next optimization of the new optimization process a minimum safe value and optimization of the last minimum safety value for comparison, if the value of the last minimum security, will continue to optimize, if the minimum safety systems compared to the previous decline in value, a statement last optimize the result is optimal, that i
- 2022-03-18 03:55:34下载
- 积分:1
-
CFileDialog derivatives, so that it not only can, they can also choose Contents
派生CFileDialog,使之不仅可选择文件,还可选择目录-CFileDialog derivatives, so that it not only can, they can also choose Contents
- 2022-03-18 02:09:18下载
- 积分:1
-
C语言编写的日历程序,实现Visual c++中的日历函数
C语言编写的日历程序,实现Visual c++中的日历函数-C language calendar program, realized the Visual c calendar function
- 2022-07-24 08:49:43下载
- 积分:1
-
this is a simple temp converter from fahrenheit to celsius
this is a simple temp converter from fahrenheit to celsius
- 2022-01-28 23:26:52下载
- 积分:1
-
i.MX27_ADS_BSP_15_Windows_Embedded_CE_6_Reference_Manual I.MX27 use the latest d...
i.MX27_ADS_BSP_15_Windows_Embedded_CE_6_Reference_Manual I.MX27 最新的WINCE6.0 BSP使用说明文档-i.MX27_ADS_BSP_15_Windows_Embedded_CE_6_Reference_Manual I.MX27 use the latest documentation WINCE6.0 BSP
- 2023-07-15 07:25:04下载
- 积分:1