摘要通用异步收发器(Universal Asynchronous Receiver Transmitter,简称UART)有时候也被称为异步通讯介面配接器(Asynchronous communication interface adapter ,简称ACIA)。UART允许在串行链路上进行全双工通信。常见的串行接口芯片能够实现比较全面的串行通信功能。在嵌入式设计中,UART用来主机与辅助设备通信,如汽车音响与外接AP之间的通信,与PC机通信包括与监控调试器和其它器件。本文所采用的单片机则是TI公司开发的MSP430f149设备,其集成功能丰富,内存也比较大,并且拥有较低的功耗。MSP430可以通过配置USART来实现UART功能。而本文所采用的C语言开发环境主要是因为C语言的以下优点:大大提高开发软件效率;提高程序可靠性、可读性和可移植性。使用应用最广泛的IAR embedded workbench开发环境,实现软硬件的连接,并通过软件自带的simulator进行调试。65245
毕业论文关键词:MSP430 C语言 UART
毕业设计说明书(论文)外文摘要
Title
The Design of Universal Asynchronous Receiver Transmitter Based on MSP430 MCU
Abstract
Universal Asynchronous Receiver Transmitter is sometimes referred to as Asynchronous Communication Interface Adapter. The UART allows full-duplex communication over a serial link. Common serial interface chip can achieve more comprehensive functionality of serial communication . In embedded design, UART is used for communication of host and auxiliary equipment, such as the communication of the car audio and an external AP , communication of the PC and monitor debugger and other devices. The microcontroller used in this paper is MSP430F149 device,which is developed by TI. The MSP430 contains rich integrated functionality.Its memory is relatively large and power consumption is lower . MSP430 can achieve UART functionality by configuring USART.The use of C language in this paper is mainly because of the following advantages of the C language:it greatly improves the efficiency of the development of software 、reliability、readability and portability. The most widely used IAR Embedded Workbench development environment is suit for the connection of the hardware and software,The simulator of software can be used to debug.
Keywords:MSP430 C language UART
目次
1 绪论...1
1.1 课题背景及现实意义...1
1.2.1 UART的性能指标1
1.2.2 MSP430的发展历程和结构介绍2
1.2.3 MSP430的软件平台..4
1.2.4 C语言介绍.4
1.2.5 软件升级的现状.5
1.3 课题研究内容.5
1.4 小结.6
2 UART理论基础..6
2.1 UART原理6
2.2 串行接口基础.7
2.2.1 串行通信工作方式...7
2.2.2 串行异步通信...8
2.3 程序升级程序原理.9
2.4 小结.13
3 UART的设计实现.13
3.1 UART设计分析.13
3.1.1 UART设计概述...13
3.1.2 UART设计整体流程...14
3.2 UART程序设计.14
3.2.1 初始化程序设计.18
3.2.2 接发中断程序设计以及应用程序的总设计20
3.2.3 升级引导程序设计...21
3.3 小结.27
4 UART的调试.27
结论.28
致谢.29
参考文献.30
附录:程序代码...31
1 绪论
1.1 课题背景及现实意义
通用异步收发器(Universal Asynchronous Receiver Transmitter,UART)是一种广泛应用于短距离、低速、低成本通信的串行传输接口,是计算机中最普遍的一部分。异步串行通信接口具有传输线少、成本低、可靠性高、实现简单等优点,广泛应用于微机和外设的数据交换,[1]UART,可以用于调制解调器MODEM、手持工业设备、条形码阅读器、测试设备、消费产品与计算机PC、微处理器芯片以及小型通信网络之间的通信。[2]同时在当今的嵌入式微处理器芯片的设计中,UART接口已成为标准配置。