文档介绍:ö
2
2
2
2 2
2 2
第 2 期微处理机 N o. 2
2004 年 4 月 M ICRO PROCESSORS A p r. , 2004
M SP430 系列单片机的异步串行通讯应用
佟宇, 王彦华
(大连理工大学机械学院, 大连 116024)
摘要: 本文介绍了M SP430 系列 FAL SH 型超低功耗单片机的异步串行通讯, 并以土工三轴
仪测控系统为例, 详细介绍了M SP430 系列单片机波特率的计算和中断服务, 还给出了串行通讯
的硬件电路图。
关键词: 异步串行通讯; 低功耗; 波特率;M SP430 单片机
中图分类号: T P302 文献标识码: B 文章编号: 1002- 2279 (2004) 02- 0044- 03
The App lica tion of UART B a se d on the MS P 430 S e rie s M ic pute r
TON G Yu,W AN G Yan- hua
(the institu te of m echanical eng ineering ,D alian U niversity of T echnology ,D alian 116023, Ch ina)
Abstract: T h is paper in troduces the un iversal asynch ronou s receive tran sm it (UA R T ) serial
comm un ica- tion of a U ltralow Pow er- con sum ing M SP430 series ch ip m pu ter, then il
lu strates the calcu lation of the baud rate, the design of softw are fo r the in terrup t p rocessing in de
tail, in addition giving ou t the circu it diagram of hardw are fo r m un ication th rough the T ri
ax ial T esting System。
Key words: UA R T; U ltralow pow er- con sum ing; Baud rate;M SP430 singlech ip
断开状态(O FF) , 即信号无效的电平为 3V~ 15V。
1 概述
三轴仪系统是研究土在各种应力负载环境下的
破坏准则和变形行为的科学试验仪器系统。在三轴
仪测控系统中[1 ] , 单片机主要完成实时数据采集, 被
采集的数据经初步处理后通过异步串行通讯接口传
送给主机。主机将单片机发送过来的数据通过打印
机或显示器随时向用户提供各种统计报表和整个控
制过程的具体数据。同时根据从单片机接收的过程
参数进行判断处理并给下位机发送各种控制命令。图 1 串行通讯部分原理图
也就是说当传输电平的绝对值介于 3V~ 15V
2 硬件设计
时, 认为是有效信号, 其它电平均认为是无效