- 1、本文档共49页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
单片机MSP430与PC机串口通讯设计
摘 要
在多机通信的分布式控制系统中,通过PC机的串口与多台单片机的通信是最方便的。在这样的分布式控制系统中,单片机与微机之间的多路通信是整个系统的关键。基于MSP430系列单片机自身优越的性能以及其超低功耗的特点,利用MSP430F149的USART可以实现这种分布式多机通信功能。在解决了与PC串口或其他带有串口的终端相连所需要的串口电平和逻辑关系的转变之后,选用MSP430F149的异步模式UART,用C语言完成下位机(PC机)接收和发送数据程序,借助VC++6.0开发平台并利用PComm软件包完成上位机(单片机)的通信程序。
文章介绍了美国TI公司新一代16位Flash型MSP430F149系列单片机的结构、特性和功能。详细介绍了如何利用VC十+6.0进行串口通讯程序的编制,重点介绍了如何利用实现异步通讯的方法。
关键词:MSP430系列单片机,多路通信,控制系统,异步模式,Pcomm
Design of the Serial Communication between MSP430F149 and PC
ABSTRACT
In the controlled system of distributing type in which many computers are communicating, by way of the PC string contact with many single chip machines to correspond is the most convenient. In this controlled system of distributing type, the various communication between single chip machines and microcomputer is the whole key. According to the low achievement consume and perfect function of MSP430,The USART that used in system of MSP430F149 can carry out this kind of function of singular to group. It is required to solve the voltage conversion and the change of logic relation, when the MSP430 connects with the PC string or other terminals which take with strings. And then, we can choose the asynchronous module (UART) of MSP430F149 to complete the MSP430F149’s main processor in language of C and write out the PC’s processor asking for help from The VC++6.0 and The Pcomm.
This paper introduces the structure, principle and feature of new generation of 16 bitFlash-type microcontroller which belongs to the Texas Instruments MSP430F149 series. At the same time, it also introduces how to carry out the method of the serial communication between PC and MSP430F149. The paper presents how to use VC++6.0 design serial port communication program,especially calling Pcomm functions to control serial port to transfer data.
KEY WORDS: MSP430F149single-chip computer, serial communication, control system,UART,PComm
目 录
摘 要 1
ABSTRACT 2
目 录 3
前 言 6
第一章 串口通讯的系统组成与原理 7
§1.1 系统组成及通讯原理 7
§ 1.
您可能关注的文档
- 6路数字抢答器的设计.doc
- 7路数字抢答器电路设计(论文).doc
- 8路抢答器设计八路智力竞赛抢答器.doc
- 8路数字抢答器_课程设计报告1.doc
- 8路数字抢答器_课程设计报告.doc
- 51单片机和PC机串行异步通信设计.doc
- 2010级数字电子技术课程设计题目1.doc
- C51单片机和电脑串口通信电路图与源码.doc
- EDA课程设计报告_任文龙.doc
- EWB在数字电子电路综合课程设计中的应用.doc
- 2024年度党员干部专题组织生活会个人新四各方面对照检查材料3篇合集.docx
- 2023年民主生活会领导干部个人发言3篇范文.docx
- 第二批主题教育专题组织生活会普通党员个人对照检查材料合集2篇.docx
- 学习以案促改党纪教育专题组织生活会个人对照检查材料两篇.docx
- 党员领导干部2023年民主生活会“六个方面”个人对照检查材料3篇范文.docx
- 党员干部“严守纪律规矩 加强作风建设”组织生活会个人对照检查材料集合篇.docx
- 2024班子防治统计造假专题民主生活会对照检查材料两篇范文.docx
- 2024公司机关党支部教育专题组织生活会个人对照检查材料两篇.docx
- 2023年度专题民主生活会个人对照新6个对照方面检查材料3篇文稿.docx
- 2024第二批主题教育专题组织生活会对照检查材料2篇文本.docx
文档评论(0)