摘要
单片机作为一种集成电路芯片在很多领域发挥着重要作用,其中Intel公司旗下MCS-51系列单片机以品种多、高兼容和高性价比得到了广泛的运用。本文以MCS-51系列AT89C52单片机为核心组成硬件电路,用C语言编程设计了一款能够实现带括号运算和小数点数据运算以及连续混和加减乘除运算的计算器,设计了程序流程,并对矩阵键盘设计、LCD显示设计及计算功能的实现进行了算法设计研究。
As an integrated circuit chip,single chip microcomputer plays an important role in many fields.Among them,MCS-51 series single chip microcomputer of Intel company has been widely used for its variety,high compatibility and high cost performance.In this paper,MCS-51 series AT89C52 single chip microcomputer is used as the core to form the hardware circuit.A calculator which can realize bracketed operation,decimal point data operation and continuous mixed addition,subtraction,multiplication and division operation is programmed with C language.The program flow is designed,and the algorithm design is studied for the design of matrix keyboard,LCD display and the realization of calculation function.
作者
闫啸云
YAN Xiaoyun(College of Information Science and Engineering,China University of Petroleum,Beijing,Beijing 102249,China)
出处
《信息与电脑》
2021年第22期75-77,81,共4页
Information & Computer