【编者按】:网学网电子通信毕业设计为您提供基于单片机的载波通信系统设计参考,解决您在基于单片机的载波通信系统设计学习中工作中的难题,参考学习。
论文编号:CK120 论文字数:15638,页数:80
摘 要
这篇文章介绍了基于单片机的电力线载波通信系统的设计。软硬件设计中采用的微控制器是STC双串口单片机,电力载波芯片是ST7540。本次设计中通过单片机可正确读写ST7540的控制寄存器,通过控制ST7540的内部控制寄存器可控制其载波频率、波特率、工作模式、(同步或异步)等。系统还添加了LCD显示电路、按键电路、蜂鸣器检测电路等,使其功能更加完善,经过磁环耦合,通过电力线进行数据传输,可以实现两地数据的通信,本系统设计合理,简单,安全可靠。
关键词:电力线,载波通信,ST7540,载波通信
Abstract
This article describes a design about a system of power line carrier communication, The hardware and software design of microcontroller is used STC dual-port MCU. Power line carrier chip is ST7540. In this design MCU can be properly read and write control register of ST7540. We can control the carrier frequency, baud rate, mode, (synchronous or asynchronous) through controlling the internal control registers of ST7540.System also adds a LCD display circuit, the key circuit, buzzer detection circuit to make it’s function more perfect .After ceramic ring coupling, Data transmission can be achieved through the power line, data can be communication between different place .the system is reasonable, simple, safe and reliable.
Keywords:power lines , carrier communication, ST7540, carrier communication
目 录
摘要……………………………………………………………………………...………………..I
1 前言……………………………………………………………………………………………1
2 总体设计方案………………………………………………………………………………..3
2.1 系统硬件总框图………………………………………………………………….…….3
2.2 系统总体软件流程……………………………………………………………. . .…….4
3 微控制器模块…………………………………………………………...............................5
3.1 微控制器简介………………………………………………………………………….5
3.1.1 STC12C5A60S2芯片简介……………………………………………………..5
3.1.2 双串口应用……………………………………………………………………..7
3.2 单片机各个模块电路……………………………………………………………….…9
4 载波通信简介…………………………………………………………..…………………12
4.1 电力线通信概况………………………………………………………………………12
4.2 ST7540载波芯片应用………………………………………………………………..14
4.2.1 ST7540芯片简介……………………………………………………………...14
4.2.2 ST7540载波频率和传输速率………………………………………………...14
4.2.3 ST7540内部控制寄存器读写…………………………………………….......15
4.2.4 ST7540数据的发送和接收…………………………………………………...18
5 ST7540与电力线接口电路………………………………………………. . .………….20
5.1 发送有源滤波电路……………………………………………………………………20
5.2 接收无源滤波电路……………………………………………………………………22
5.3 ST7540与主控制器的数据通信……………………………………………………...25
6 系统的调试………………………………………………………………………………....26
6.1 系统软硬件调试过程………………………………………………………………….26
6.2 实际结果……………………………………………………………………………….26
7 总结………………………………………………………………………………………….29
致谢…………………………………………………………………………………………........30
参考文献………………………………………………………..……………………………….31
附录…………………………………………………………………………………………........32