摘要:随着电子技术的发展和微处理器技术的应用,带有单片机的智能型测控系统的应用越来越广泛,多个单片机系统之间数据传输已经应用于工业、科研、农业等领域,而单片机之间的数据通信最常用的就是串口通信方式,串口通信可以在使用一根线发送数据的同时利用另一根线接收数据,使用简单且能实现远距离通信。本文使用了一种单片机之间RS485通信的设计方法,通过按键输入数据,单片机通过RS485将数据发送给485总线上的其他单片机,接收数据的单片机根据数据中的地址解析是否控制本设备,确认是否解析数据显示在数码管上。本文采用的方法简单易懂,可广泛应用于各种485总线通信系统中。93987

毕业论文关键字:单片机,RS485通信,数码管,远距离通信

Abstract: With the development of electronic technology and the application of microprocessor technology, application of intelligent measurement and control system with single chip microcomputer is more and more widely, multiple data transmission between single-chip microcomputer system has been used in industry, scientific research, agriculture and other areas, and data communication between single-chip microcomputer is the most commonly used serial interface communication mode, a thread can be used in serial communication to send data at the same time using another thread receives data, simple to use and can realize long distance communication。 In this paper, a design method of RS485 communication between single-chip microcomputer, through the key input data, single-chip computer by RS485 sends the data to other MCU 485 bus, receiving data of single chip microcomputer control according to the data address resolution of whether the equipment, confirm whether analytical data in the digital tube display。 In this paper, the method is simple, can be widely used in various kinds of 485 bus communication system。

Key words: SCM, RS485 communication, digital tube, long distance communication

目录

1 绪论 5

1。1 选题背景 5

1。2 技术发展概况 5

2 方案设计 7

2。1 串行通信简介及设计方案 7

2。2设计方案 8

3 系统硬件设计 10

3。1 电路设计应用环境简介 10

3。2 按键输入电路 11

3。3 单片机控制电路 12

3。3。1 STC89C52 12

3。3。2 单片机控制电路设计 14

3。4 显示电路 15

3。4。1 显示电路 15

3。5 电源电路 16

3。6 串口转485电路 16

4 系统软件设计 17

4。1 软件设计应用环境 17

4。2 设计流程图 18

4。3 按键程序设计 19

4。4 串口通信程序设计 21

5 总结 26

参考文献 27

附录 28

致谢 29

   

上一篇:STC89C51单片机函数信号发生器设计+电路图
下一篇:ZigBee烟草存储环境远程监测系统的设计

STC89C52单片机智能车红外避障控制设计

单片机双极性神经刺激脉冲发生器的设计

单片机的环境参数检测仪的设计+电路图

单片机的数字式电感电容表设计

STC89C52单片机的信号发生器的设计

STC89C51单片机便携式环境检...

STC89C52单片机无线智能抄表系统设计与实现

浅析地籍档案的信息化管理【2143字】

反转课堂在小学数学教学...

80C51单片机水箱液位控制系...

机械安全标准国内外研究现状

流动人员人事档案信息化...

城镇化进程国内外研究现状

ARM新生儿水床控制系统设计硬件设计+源代码

超声波自动测量物体液位系统设计任务书

第三方支付风险防范文献综述和参考文献

内河智能航运信息服务(...