摘要
简要介绍了MS-51系列单片机中的位寻址区和位操作指令。位寻址区和位操作指令构成了MCS-51系列单片机独具的布尔处理机。位寻址区和位操作指令的一个最重要的应用就是用于设置标志位。这一特点使得单片机系统在开关决策、逻辑电路仿真、智能检测和实时控制方面得到了非常广泛的应用。通过一个实例给出了利用标志位来判断按键是否被按下的算法。
This paper introduces the bit operation of the MCS-51 series microcontroller. It can be used to set bit-flags, and makes the singlechip microcomputer a wide application in switch-decision making, logical circuit simulation, intelligent detec tion and real-time control. An example algorithm of using bit-flags is presened to detect if a key is pressed or not.
出处
《自动化技术与应用》
2009年第4期121-122,126,共3页
Techniques of Automation and Applications
关键词
位操作指令
位寻址区
标志位
单片机系统
bit operation instruction
bit addressable locations
bit-flag
single-chip microcomputer system