Application of Bit-flags in the Single-Chip Microcomputer System

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.