首页 | 本学科首页   官方微博 | 高级检索  
     

基于MSP430单片机的软件代码快速开发
引用本文:刘玉良,贾子申,刘丽辉,杨伟明. 基于MSP430单片机的软件代码快速开发[J]. 天津轻工业学院学报, 2010, 0(3): 61-65
作者姓名:刘玉良  贾子申  刘丽辉  杨伟明
作者单位:[1]天津科技大学电子信息与自动化学院,天津300222 [2]天津医科大学总医院,天津300052
基金项目:天津市高等学校科技发展基金资助项目(20080808)
摘    要:为实现高效的代码编写和方便的系统维护,在前期研究工作的基础上,利用Matlab 7.x的Stateflow工具箱,实现了基于MSP430单片机的嵌入式系统软件开发首先,对嵌入式系统进行基于事件驱动的建模与仿真.然后,在状态图代码生成器(Stateflow Coder)中把状态图(State chart)翻译成高效的C语言代码.最后,用基于MSP430单片机的目标系统底层驱动函数与翻译的C语言空函数进行简单替换,实现了嵌入式系统软件代码的快速生成.对比实验表明,用本文方法生成的软件代码,在嵌入式目标系统中运行状况良好,其易维护性和执行效率等方面均优于手工编写的代码.

关 键 词:嵌入式系统  Matlab  状态图

Rapid Development of Software Code Based on MSP430
LIU Yu-liang,JIA Zi-shen,LIU Li-hui,YANG Wei-ming. Rapid Development of Software Code Based on MSP430[J]. Journal of Tianjin University of Light Industry, 2010, 0(3): 61-65
Authors:LIU Yu-liang  JIA Zi-shen  LIU Li-hui  YANG Wei-ming
Affiliation:1. College of Electronic Information and Automation, Tianjin University of Science & Technology,Tianjin 300222, China; 2. Tianjin Medical University General Hospital, Tianjin 300052, China)
Abstract:In order to get high efficiency of code design and convenience of software debugging,based on the analysis of relevant research before,the development of the embedded system software of MSP430 was realized. Firstly,using Matlab/StateflowToolbox to model and simulate the complex event drive in the embedded system was introduced. Then using coder the stateflow was translated into high efficiency C code. By making some simple replacement to the blank C function generated with the low-layer function of the target system based MSP430,the code rapid generation of the embedded software was finished. Experiment show that the automatically code generation works well in the embedded target system. It has good performance and high code efficiency than those code generated by hand .
Keywords:embedded system  Matlab  state chart
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号