- 15
- 0
- 约 5页
- 2017-06-13 发布于湖北
- 举报
第23 卷第6 期 计算机应用与软件 VoI. 23 ,No. 6
2006 年6 月 Computer AppIications and Software Jun. 2006
基于MATLAB 的PC 机与单片机串行通信实现
1 2
兰红莉 罗文广
1 (广西工学院计算机工程系 广西 柳州545006 )
2 (广西工学院电子信息与控制工程系 广西 柳州545006 )
摘 要 介绍了基于MATLAB 的PC 机与PIC 系列单片机串行通信的实现方法。串行系统主要由PC 机、RS-232C 电平转换器
MAX232ACPE 、单片机PIC16F874 以及通信程序构成,单片机通信程序用其汇编语言设计,PC 机通信程序则是用MATLAB 的仪器控
制工具箱的函数及通过建立事件和回调函数来实现。给出了具体的通信程序。
关键词 串行通信 PC 机 PIC 单片机 MATLAB 仪器控制工具箱
REALIZATION OF SERIAL COMMUNICATION
ON PC AND MICRO CONTROLLER BASED ON MATLAB
1 2
Lan HongIi Luo Wenguang
1 (Dep artment of Comp uter Engineering ,Guangxi Institute of Technology ,Liuzhou Guangxi 545006 ,China )
2 (Dep artment of Electronic Inf ormation and Control Engineering ,Guangxi Institute of Technology ,Liuzhou Guangxi 545006 ,China )
Ab ReaIization method of seriaI communication on PC and PIC micro controIIer based on MATLAB is studied. The seriaI system is
made up of PC,RS-232C potentiaI convertor MAX232ACPE ,micro controIIer PIC16F874 and communication programs mainIy. The micro con-
troIIer communication program is designed with its assembIe Ianguage. The PC communication program is reaIized with the functions in Instru-
ment ControI TooIboX of MATLAB,and by creating events and caIIback functions. The communication programs are provided in the paper.
Keywo d SeriaI communication PC PIC micro controIIer MATLAB Instrument controI tooIboX
为了实现RS-232C 串行通信,需要图1 所示的硬件
原创力文档

文档评论(0)