89C51单片机课程设计之秒表设计实验报告.doc

上传人:b****1 文档编号:172795 上传时间:2022-10-05 格式:DOC 页数:16 大小:188.50KB
下载 相关 举报
89C51单片机课程设计之秒表设计实验报告.doc_第1页
第1页 / 共16页
89C51单片机课程设计之秒表设计实验报告.doc_第2页
第2页 / 共16页
89C51单片机课程设计之秒表设计实验报告.doc_第3页
第3页 / 共16页
89C51单片机课程设计之秒表设计实验报告.doc_第4页
第4页 / 共16页
89C51单片机课程设计之秒表设计实验报告.doc_第5页
第5页 / 共16页
点击查看更多>>
下载资源
资源描述

89C51单片机课程设计之秒表设计实验报告.doc

《89C51单片机课程设计之秒表设计实验报告.doc》由会员分享,可在线阅读,更多相关《89C51单片机课程设计之秒表设计实验报告.doc(16页珍藏版)》请在冰豆网上搜索。

89C51单片机课程设计之秒表设计实验报告.doc

Manipulatorisnowusedasaindustrialrobotsinuse,thecontrolobjectivesoftenappearofteninindustrialautomation.Industrialautomationtechnologyhasgraduallymatured,asmatureatechnologylinehasbeenrapiddevelopmentinindustrialautomationasaseparatesubject.Manipulatorapplicationbegantofilterintowelding,logistics,mechanicalprocessing,andotherindustries.Especiallyathighorverylowtemperatures,fullofpoisonousgases,highradiationcase,robotinsimilarcircumstancesshowedgreatusealsobringsgreatconveniencetothestaff.Preciselybecauseofthisrobottogetpeople'sattentionbegantobeahighdegreeofdevelopment.Laborrates,workingconditions,laborintensiveaspectsofpromotingdevelopment.BothathomeandabroadtodevelopthePLC(programmablelogiccontroller)isinvariousspecialcircumstancesandunderspecialconditionssetformechanicaldevices.Nowturnedonthedevelopmentofthemicroelectronicsautomaticcontroltechnologyandtherapiddevelopmentofthetrains,thesuccessofPLChardwaresoftwareandsimulationcontrolwinbigandsuccessfuldevelopment,nowcontinuestodevelopasafactoryautomationstandards.Becauserobotsaregooddevelopmentofthetechnologymakesagoodoptimizationofproductivecapital,androbotshowsthisuniqueadvantages,suchas:

hasgoodcompatibility,wideavailability,hardwareiscomplete,andprogrammingthatcanbemasteredinashorttime,sointhecontextofindustrialPLCapplicationsbecameubiquitous.Manipulatorinmanydevelopedcountryagricultureandindustryhasbeenapplied,suchastheuseofmechanicalharvestinglargeareasoffarmland,repeatedoperationsonthehigh-speedlinethatusesaroboticarm,andsoon.Today,thehighlevelofautomationcombinedwithrestrictionsonthemanipulatordevelopmentlevelisslightlylowerthantheinternational.ThedesignismainlyarmweldingmachinebyPLCAutomationcontrol.Thisofdesignletdesignersoninschoolbylearnofhasamustofconsolidation,understandhassomeusuallydidn'topportunitiesawarenessinworldrangewithinsomeleadinglevelofknowledgehashasmustawareness,hopedesignerscaninyihouofdesigninthecansuccessofusinginthisdesignintheproceedsofexperience1.2manipulatorinbothathomeandabroadofresearchprofileautomationmechanicalarmresearchbeganYu20thcenturymedium-term,afteryearswithwithcomputerandautomationtechnologyofdevelopment,MakesmechanicalarmontheGrandstageofindustrialautomationandshine,graduallybecameanindustrialevaluationstandards,anditsimportancecanbeseen.Noworiginalroboticarmspentmostofmassproductionanduseontheproductionline,whichisprogrammedroboticarm.Asthefirstgenerationofmanipulatorpositioncontrolsystemsmainfeatures,althoughnotbackseveralgenerationsthatcandetecttheexternalenvironment,butcanstillsuccessfullycompletelikewelding,painting,deliveryaswellasformaterialssimplemovements.Secondgenerationmechanicalarmsareequippedwithsensorsandmanipulatorshavetheenvironmentthereisacertainamountof"sense",whenthemechanicalarmistousetheprogramasabasis.Differenceisthattherobotbegand

这里可以加学校LOGAL

单片机课程设计报告

院系:

班别:

课程名称:

姓名:

学号:

指导老师:

2011.12.23

目录

1课程设计的目的和任务

1.1单片机秒表课程设计的概述

1.2课程设计思路及描述

1.3课程设计任务和要求

2硬件与软件的设计流程

2.1系统硬件方案设计

2.2软件方案设计

3程序编写流程及课程设计效果

3.1源程序及注释

3.2原理图分析

3.3课程设计效果

4心得体会

5相关查阅资料

1.课程设计的目的和任务

1.1单片机秒表课程设计的概述

一、课程设计题目

秒表系统设计——用STC89C52RC设计一个4位LED数码显示“秒表”,显示时间为00.00~99.99秒,每10毫秒自动加一,每1000毫秒自动加一秒。

二、增加功能

增加一个“复位”按键(即清零),一个“暂停”和“开始”按键。

三、课程设计的难点

单片机电子秒表需要解决三个主要问题,一是有关单片机定时器的使用;二是如何实现LED的动态扫描显示;三是如何对键盘输入进行编程。

四、课程设计内容提要

本课程利用单片机的定时器/计数器定时和记数的原理,结合集成电路芯片8051、LED数码管以及课程箱上的按键来设计计时器。

将软、硬件有机地结合起来,使得系统能够正确地进行计时,数码管能够正确地显示时间。

其中本课程设计有两个开关按键:

其中key1按键按下去时开始计时,即秒表开始键(同时也用作暂停键),key2按键按下去时数码管清零,复位为“00.00”.

五、课程设计的意义

1)通过本次课程设计加深对单片机课程的全面认识复习和掌握,对单片机课程的应用进一步的了解。

2)掌握定时器、外部中断的设置和编程原理。

3)通过此次课程设计能够将单片机软硬件结合起来,对程序进行编辑,校验。

4)该课程通过单片机的定时器/计数器定时和计数原理,设计简单的计时器系统,拥有正确的计时、暂停、清零,并同时可以用数码管显示,在现实生活中应用广泛,具有现实意义

六、课程设计仪器

a)集成电路芯片8051,七段数码管,89C51单片机开发板

b)MCS-51系列单片机微机仿真课程系统中的软件(Keiluvision2)。

1.2课程设计思路及描述

该课程设计要求进行计时并在数码管上显示时间,则可利用MCS-51系列单片机的芯片AT89C52的P3.2,P3.5作为按键的入口;定时器T1作为每0.01秒加一的定时器。

其中“开始”按键当开关由上向下拨时开始计时,此时若再拨“开始”按键则数码管暂停;“清零”按键当开关由上向下拨时数码管清零,此时若再拨“开始”按键则又可重新开始计时。

方框图如下图1:

开关

MCS-51

AT89C52RC

LED显示

图1数字秒表设计导向

1.3课程设计任务和要求

1.3.1设计指标。

了解8051芯片的的工作原理和工作方式,使用该芯片对LED数码管进行显示控制,实现用单片机的端口控制数码管,显示分、秒,并能用按钮实现秒表起动、停止、99秒、清零等功能,精确到0.01秒。

要求选用定时器的工作方式,画出使用单片机控制LED数码管显示的电路图,并实现其硬件电路,并编程完成软件部分,最后调试秒表起动、停止、清零等功能。

1.3.2设计要求

①画出电路原理图(或仿真电路图);

②软件编程与调试;

③电路仿真与调试;

2.软件与硬件设计

2.1系统硬件方案设计

单片机应用系统由硬件系统和软件系统两部分组成。

硬件系统是指单片机以及扩展的存储器、I\O接口、外围扩展的功能芯片以及接口电路。

软件系统包括监控程序和各种应用程序。

在单片机应用系统中,单片机是整个系统的核心,对整个系统的信息输入、处理、信息输出进行控制。

与单片机配套的有相应的复位电路

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 党团建设

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1