课程设计任务书学生姓名:专业班级:指导教师:工作单位:信息工程学院题目:简易电阻、电容和电感测试仪设计初始条件:LM317LM337NE555NE5532STC89C52TLC549ICL76601602液晶要求完成的主要任务:1、测量范围:电阻100Ω-1MΩ;电容100pF-10000pF;电感100μH-10mH。2、测量精度:5%。3、制作1602液晶显示器,显示测量数值,并用发光二级管分别指示所测元件的类别。时间安排:指导教师签名:年月日系主任(或责任教师)签名:__________年月日1目录摘要.....................................................................3ABSTRACT...................................................................41、绪论....................................................................52、电路方案的比较与论证....................................................52.1电阻测量方案..........................................................52.2电容测量方案..........................................................72.3电感测量方案..........................................................83、核心元器件介绍.........................................................103.1LM317的介绍..........................................................103.2LM337的介绍..........................................................113.3NE555的介绍..........................................................113.4NE5532的介绍.........................................................133.5STC89C52的介绍.......................................................143.6TLC549的介绍.........................................................163.7ICL7660的介绍........................................................173.81602液晶的介绍.......................................................184、单元电路设计..........................................................204.1直流稳压电源电路的设计...............................................214.2电源显示电路的设计...................................................214.3电阻测量电路的设计...................................................224.4电容测量电路的设计...................................................234.5电感测量电路的设计...................................................244.6电阻、电容、电感显示电路的设计.......................................255、程序设计..............................................................265.1中断程序流程图.......................................................265.2主程序流程图.........................................................276、仿真结果...............................................................276.1电阻测量电路仿真.....................................................276.2电容测量电路仿真.....................................................286.3电感测量电路仿真.....................................................297、调试过程..............................................................307.1电阻、电容和电感测量电路调试.........................................307.2液晶显示电路调试.....................................................308、实验数据记录..........................................................302心得体会...............................................................32参考文献...............................................................33附件....................................................................34附件1:电路图...........................................................34附件2:元件清单.........................................................35附件3:程序代码.........................................................36附件4:实物图...........................................................463摘要近几年来,电子行业的发展速度相当快,电子行业的公司企业数目也不断增多。这个现象带来的直接结果是电子行业方面的人才需求不断增多。所以,现在大多数高校都开设与电子类相关的专业及课程,为社会培养大量的电子行业的人才。做过电路设计的工作人员或者学生大多数使用万用表来测量一些元件参数或者电路中的电压电流。然而万用表有一定的局限性,它只能测量有限种类的元器件的参数,对于电容和电感等一些电抗元件就无能为力了。所以制作一种简便的电容电感测量仪显得尤为重要,方便电路设计人员或者高校电子类专业的学生测量电路中需要用到的电容及电感的具体值。本次设计的思想是基于以上原因提出来的。该系统以STC89C52单片机为控制核心,搭配必要的外围电路对电阻、电容和电感参数进行测量。系统的基本原理是将电阻阻值、电容容值、电感感值的变化均转换成方波脉冲频率的变化,利用计数器测频后通过单片机做运算,最后计算出待测元件的各个参数并显示在1602液晶屏幕上。系统使用按键选择被测元件类型,使用1602液晶屏作为显示部分。测量时,只需将待测元件引脚放在测试仪的输入端,用按键操作需要测量的参数,便可以很快测出被测元器件的参数,简便易用。实验测试结果表明,本系统性能稳定,测量精度高。关键词:STC89C52单片机电阻测量电容测量电感测量论文类型:应用型4ABSTRACTInrecentyears,theelectronicindustryhavebeendevelopingwithamazingspeed,andcompaniesbasedonelectronicsareincreasing,whichdirectlycausesthegrowingneedofelectronicpeople.Sonowmostuniversitieshaveopenedwiththeelectronicsandrelatedprofessionalcoursesforthestudentstonurturealargenumberofelectronicsindustryprofessionals.Donecircuitdesignstafforstudentsshouldbeusedmultimetertomeasuretheparametersofanumberofcomponentsinthecircuitvoltageorcurrent.Multimeterhassomelimitations,however,itcanonlymeasuretheparametersofthelimitedtypesofcomponentsforcapacitorsandinductorsandsomereactancecomponentsonthepowerless.SoasimpleRLCmeterbasisisparticularlyimportanttofacilitatethecircuitdesignstafforuniversitystudentstouseinthespecificcapacitanceandinductancevalues.Thedesignideaisbasedontheabovereasonsputforward.ThesystemusesSTC89C52micro-controllerforthecontrolofthecore,withthenecessaryexternalcircuitresistance,capacitanceandinductanceparameterswhichweremeasured.Thebasicprincipleofthesystemisconvertthevalueofresistor,capacitanceorinductanceintothefrequencyofsquarewavepulse,andusethecountertodoaftertheoperationthroughthemicrocontroller,andfinallycalculatethedeviceundertestanddisplayvariousparametersinthe1602LCDscreen.Usebuttonstosetthetypeofparameter,anduse1602LCDscreenasthedisplaypart.Whenmeasured,simplyputthecomponentinthetesterpininput,withthekeyoperationparameterstobemeasured,andweca