摘要
提出了一种可进行连续四则运算的计算器设计方案,主要从硬件部分和软件部分两方面介绍此设计方案。在硬件部分中,说明了所选用的STC公司最新的STC15F2K61S2微控制器相比于传统C51单片机的优势,提出了仅用3个引脚驱动8位数码管的方法,并介绍了4×4矩阵键盘的驱动方案;在软件部分中,给出了计算器程序执行流程图,并提出了一种实现计算器四则运算的算法。
This paper presents a continuous four computing calculator design, mainly introduced the design from two aspects of hardware and software. In the part of hardware, the choice of STC's new STC15F2K61S2 microcontroller compared to the traditional C51 chip advantage, put forward with only 3 pins drive 8 digital tube, and introduces the driver program of 4 x 4 matrix keyboard; in the software part, gives the computer program flow chart, and put forward a kind of calculator four computing algorithm.
出处
《科技与创新》
2015年第10期101-101,105,共2页
Science and Technology & Innovation
关键词
计算器
单片机
驱动方案
数码管
single chip microcomputer
calculator
driver program
digital control