- 1
- 0
- 约7.46千字
- 约 21页
- 2016-11-08 发布于辽宁
- 举报
毕业论文
题目:基于单片机的电子计算器
学校:安徽工贸职业技术学院
专业:电子与信息工程系
班级:机电5班
学号:2011350501
指导老师:刘旭摘要
近年来随着计算机在社会领域的渗透和大规模集成电路的发展,单片机的应用正在不断地走向深入,由于它具有功能强,体积小,功耗低,价格便宜,工作可靠,使用方便等特点,因此特别适合于与控制有关的系统,越来越广泛地应用于自动控制,智能化仪器,仪表,数据采集,军工产品以及家用电器等各个领域,作为微型机的一个主要分支,单片机在结构上的最大特点是把CPU、RAM和ROM存储器、定时器和多种I/O接口电路集成在一块超大规模集成电路芯片上。从它的组成和功能来看,一块单片机芯片其实就是一台计算机。本次设计是采用MSC-51单片机来设计的四位数计算器, 采用C语言进行程序编写实现计算器功能。外接4X4的键盘,通过键盘扫描来完成输入数的控制,利用驱动电路使数值与结果在七段共阴极数码管上正常显示,并设有清零键可随时完成计算与显示的清零。计算器将完成的0至9999整数的一次加/减/乘/除运算。执行过程如下:开机即显示0,等待键入数值,当输入数字,将通过数码管显示出来,在输入+、-、*、/运算符之后,计算器在内部执行数值转换和存储,并等待再次输入数值,当在键入数值后将显示键入的数值,按等号就会在数码管上显示运算结果。关键词: 单片机 计算器 C语言 键盘扫描
英文摘要
In recent years, as computer penetration in the social field and large-scale development of integrated circuits, microcontroller applications are continually deepening, because of its powerful function, small size, low power consumption, cheap, reliable, easy to use, etc. therefore particularly suitable for systems with control of more and more widely used in automatic control, intelligent instruments, meters, data acquisition, military products and home appliances fields, As one of the main branch of microcomputer, microcontroller in the structure of the biggest feature is the CPU, RAM and ROM memory, timer and multiple I / O interface circuit integrated on a VLSI chip. The composition and function from its point of view, a single chip is actually a computer. This design is the use of MSC-51 microcontroller to design the four-digit calculator, using C programming language to achieve calculator functions. 4X4 external keyboard, the keyboard scan to finish by the number of control values and make the drive circuit to the cathode results in a total of seven-segment digital tube display properly, and has cleared at any time to complete key calculation and display clear. Calculator to complete an integer from 0 to 9999 plus / minus / multiply / divide. Implementation of the process is as follows: Power is displayed 0, waiting type valu
您可能关注的文档
- 益实达科技园厂房工程 施工组织设计—本科毕业论文(设计).doc
- 义遵“翰林雅苑”智能化系统设计方案—本科毕业论文(设计).doc
- 逸汇国际大酒店营运计划书—本科毕业论文(设计).doc
- 意创墙贴网站计划书—本科毕业论文(设计).doc
- 用家智能电热水器控制器—本科毕业论文(设计).doc
- 茵莱名郡a1住宅楼基础筏板大体积混凝土—本科毕业论文(设计).doc
- 茵美堡住宅小区3#、5#、6#楼施工组织设计—本科毕业论文(设计).doc
- 音观沟大桥下部构造台身、立柱、柱系梁施工方案—本科毕业论文(设计).doc
- 银国花园北块施工组织设计—本科毕业论文(设计).doc
- 印羊桥施工组织设计—本科毕业论文(设计).doc
- 2026及未来5年中国太阳能干燥成套设备市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026及未来5年中国荔枝核市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026及未来5年中国韩式纤巧纤网护垫市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026年三项岗位人员(应急管理局)-烟花爆竹-引火线制造作业历年参考题库含答案详解.docx
- 2026及未来5年中国锅炉燃烧器耐热不锈钢喷咀市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026及未来5年中国木质酒盒市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026及未来5年中国高压三聚氰胺贴面压机市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026及未来5年中国磁性文具市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026及未来5年中国特写镜头市场现状分析(数据调查、监测)及前景探究报告.docx
- 2026及未来5年中国钢塑靠背椅市场现状分析(数据调查、监测)及前景探究报告.docx
原创力文档

文档评论(0)