-
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
-
window system source code programming process, a total of study reference.
window系统进程编程源代码,共学习参考。-window system source code programming process, a total of study reference.
- 2023-07-14 09:45:02下载
- 积分:1
-
一种实现列表框的方法
带颜色的listBox,有例子,用起来很方便
功能很简单-a method to realize listBox
- 2022-02-01 04:43:02下载
- 积分:1
-
实现在Windows mobile系统手机的一键重启和关机功能
实现在Windows mobile系统手机的一键重启和关机功能-Windows mobile system in the implementation of a key cell phone to restart and shutdown function
- 2023-07-26 20:15:03下载
- 积分:1
-
这里讨论TIA自动化等相关话题(21KB)
这里讨论TIA自动化等相关话题(21KB)-here to discuss topics related to automation (21KB)
- 2023-06-22 03:55:03下载
- 积分:1
-
全英文的系统,能够完成家庭财务系统的大部分功能,提供友好界面,全vc++制作...
全英文的系统,能够完成家庭财务系统的大部分功能,提供友好界面,全vc++制作-A pure English system, providing most family finacial system functions with friendly interface and totally written in VC++.
- 2022-01-25 18:08:46下载
- 积分:1
-
C++写的hilbert变换类
支持2^N的正方形图像
C++写的hilbert变换类
支持2^N的正方形图像-C++ to write the type of support the hilbert transform of 2 ^ N square image
- 2022-03-06 15:18:18下载
- 积分:1
-
菜单和加速键编程的例子
菜单和加速键编程的例子-menu and accelerate key programming examples
- 2023-06-18 13:35:03下载
- 积分:1
-
This directory contains code implementing the K
This directory contains code implementing the K-means algorithm. Source code
may be found in KMEANS.CPP. Sample data isfound in KM2.DAT. The KMEANS
program accepts input consisting of vectors and calculates the given
number of cluster centers using the K-means algorithm. Output is
directed to the screen.-This directory contains code implementing the K-means algorithm. Source code may be found in KMEANS.CPP. Sample data isfound in KM2.DAT. The KMEANS program accepts input consisting of vectors and calculates the given number of cluster centers using the K-means algorithm. Output is directed to the screen.
- 2023-09-06 05:15:03下载
- 积分:1
-
document control, the designated directory or document to change (such as to cha...
文件监控,指定目录或者文件发生变动(如改名字,删除),会报告-document control, the designated directory or document to change (such as to change the name, delete), the report
- 2022-09-27 17:35:03下载
- 积分:1