摘要
分析了嵌入式开发中不同MCU串行通信编程的共性,根据软件工程的基本原理提取了MCU串行通信编程的基本要素,把编程要素分为通用部分和个性部分。对于通用部分,给出了能够适用于各种MCU的串行通信程序,对于个性部分,给出了基本编程原理与移植要点。文中给出的设计方法和程序,分别在8位、16位、32位MCU上进行了测试,可以成为嵌入式开发中的一个通用部件。
The commonness of serial communication for various MCUs in embedded application is analyzed.Based on the princi- ples of software engineering,the basic programming factors about serial communication are picked up,which include universal part and individual part.For the universal part,the serial communication program for various MCUs is provided,and for the in- dividual part,both basic programming principles and grafted points are presented.The design methodes and programs in this pa- per have been tested on 8-hit,16-bit ,and 32-bit MCUs ,which can be a universal component in embedded application.
出处
《微型电脑应用》
2006年第9期18-21,4-5,共4页
Microcomputer Applications
关键词
嵌入式系统
通用串行通信程序
设计方法
软件工程
Embedded system
Universal serial communication program
Design method
Software engineering