摘要
为了在MATLAB环境下对单片机现场采集数据进行分析处理,需要设计单片机与MATLAB之间的串行通信接口。本设计利用DSl8B20和STC89C52RC现场采集温度数据,上位机中的MATLAB软件采用回调函数实时获取单片机传来的数据并在图形界面上显示,设计给出了串行通信接口的硬件方案与程序。运行调试结果表明,单片机与MATLAB之间有效地实现了数据通信,以此为基础,可在MATLAB环境下对数据进行深入分析与处理。
The serial communication interface between MATIB and MCU should be designed for the analysis and treatment of the collected data in the MCU field. The design uses DSI8B20 and STC89C52RC to collect the temperature data, and the MATLAB of upper computer adopts the callback fimclion to oblain data from MCU and show the data on the graphical interfaces, and the hardware scheme and program are given in the design. The results of operation and debugging show correctness and effectiveness of the data communication, based on which the data are deeply analyzed and treated under the environment of MATLAB.
出处
《湖南工业职业技术学院学报》
2013年第6期4-5,8,共3页
Journal of Hunan Industry Polytechnic
基金
湖南工业职业技术学院自然科学基金(GYKYZ2011006)
湖南省科技厅科研项目(2011FJ4152)
湖南省教育厅科研项目(11C0482)
作者简介
谢芳芳(1978-),女,湖南新田人,湖南工业职业技术学院电气工程系讲师、硕士,研究方向:自动控制理论与电子信息工程。