摘要
本文论述了在51系列单片机系统中,一种多任务系统编程设计方法。该方法不基于实时操作系统RTOS分时操作的思路和采用中断切换任务。本文通过一个具有4位LED数码显示,12键的键盘扫描和用串行口与其它系统交换数据的简单系统为例,说明该方法编程具有硬件设计简单、单片机工作效率高,实时性强等特点。该方法编程采用汇编语言,但根据相同的原理和思路,也不难用到C51语言编程上面。
This paper explain One Multitask Programming Process on 51 Single-Chip Computer System.Unlike the Principle of Real-time Operating System,This Process is neither based on the time sharing Operation nor using interrupt for switchover task.One simple system consisted of the 4 digits LED digit display,the 12 keys scan keyboard and the series port used for communication with other system is taken for example,to illustrate this process is used in programming,Single Chip Computer system has characteristic of simpler hardware,higher efficiency of operation and better real-time.This process is based on assemble language,but it is easy for C51 language according to the same principle and thinking.
出处
《软件》
2011年第3期21-27,31,共8页
Software
关键词
51单片机
多任务
动态显示
键盘显示控制
51 Single-chip Computer
Multitask
Dynamic scan Display
Keyboard and display control