多串口通信数据复接装置的设计.doc
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 串口 通信 数据 装置 设计
- 资源描述:
-
1、摘 要 本文讨论了使用MSP430单片机的GPIO口模拟串口通信,实现多串口通信数据复接装置的设计。模拟串口使用软件设计代替了传统的硬件系统,可以扩展多个串口,串口端口可以任意分配,适合用在硬件资源短缺的系统,而只需两个普通的GPIO口就可以实现。本设计加入了Led灯指示串口的数据是否校验成功,很直观。同时使用按键可以调整三种波特率,这样就可以和不同硬件子系统进行通信,灵活性强。对于串口的数据校验,本设计采用CRC校验方法,同时本文将提供三种CRC算法,它们稍有不同,一种适用于程序空间十分苛刻但 CRC 计算速度要求不高的微控制器系统,另一种适用于程序空间较大且 CRC 计算速度要求较高的计算
2、机或微控制器系统,最后一种是适用于程序空间不太大,且 CRC 计算速度又不可以太慢的微控制器系统。本设计采用第一种算法,对于其他的两种算法提出了公式推导以及C语言的程序例程。关键字:MSP430;串口;子系统;CRC;波特率Abstract This paper discusses the use of MSP430 MCU GPIO mouth simulation realization of serial communication, serial communication and data multiplexing device design. Serial communicatio
3、n simulation using software instead of hardware system design of the traditional, can be extended to multiple serial port, serial port can be assigned arbitrarily, suitable for using in the system hardware resources shortage, and only two common GPIO port can be achieved. Whether the design joined t
4、he Led lamp indicating the serial data verification is successful, very intuitive. At the same time, the use of keys can be adjusted three baud rate, so that it can communicate with different hardware system with flexibly. For data verification, this design uses the CRC check method, at the same tim
5、e, this paper will provide three CRC algorithms, they are slightly different, one suitable for program space very harsh but CRC microcontroller system speed are not high, another is suitable for larger space and CRC calculation procedure requiring high speed computer or micro controller system, the
6、last one is suitable for program space is not too large, the microcontroller system and CRC calculation speed can not be too slow. This design uses the first algorithm, the derivation of the equations and the C language routines and procedures proposed for the two other algorithms.Keywords: MSP430;
7、Serial; Subsystem; CRC; Baud rate目 录引言.11 绪论11.1 课题背景11.2 研究意义22 多串口通信数据复接装置方案的设计22.1 课题设计要求22.1.1 课题主要功能指标要求22.1.2 课题设计要求22.2 系统方案选择33 电路设计和原理43.1 MSP430单片机43.1.1 简介43.1.2 MSP430单片机特点43.1.3 MSP430单片机CPU简介53.1.4 MSP430FR5739硬件资源53.1.5 MSP430开发环境调试说明53.2 串口模块63.2.1 串口通信的概念63.2.2 串口通信的协议73.2.3 MAX2323
展开阅读全文
图海文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。


CO2焊接自动送丝机的设计【含CAD图纸和说明书】.zip

