文档介绍:基于单片机的RLC检测仪
摘要在应用中,我们常常要用到电阻、电感、电容等最基本的元器件,而对它们的测量就成为了我们经常要做的一件事。因此,设计一个安全、便捷的RLC检测仪就很有必要了。硬件方面,以51单片机为核心。测量电阻和电容,以555芯片为核心,与少量的电阻、电容相连组成振荡电路,再根据电容的充放电过程,使测量电路输出高低电平矩形波。测量电感,是以mc1648压控振荡器为核心,外接电感、电位器、变容二极管等,组成LC振荡电路,调节变容二极管,使电路发生谐振,输出矩形波。这样,就把所得的波形送给单片机,通过51单片机的定时/计数功能计算矩形波的频率,再通过公式来算出电阻、电感、电容的参数值,并送显示器显示。软件方面,通过Keil,用C语言来编程,利用软硬件的结合,制作出一个快速的、方便的、符合实际应用的RLC测量仪。
关键词: 51单片机,555电路,1602LCD显示, mc1648压控振荡器
ABSTRACT
In applications,we often use the resistance,the capacitance and the inductance measurement of ponents is a thing that we often ,it is necessary to design a safe and convenient detector of the aspect of hardware,I painting the circuit diagram by 51 SCM as the core and through the oscillating circuit of RC by the 555 timing,we can make the measurement circuit output a high level rectangle wave by using the process of charging and discharging.
With the mc1648 vco as the core,we can form the LC oscillating circuit by the external inductor,potentiometer and transfiguration diode in the measurement of can make the circuit produce resonance by adjusting the transfiguration it can output a high level rectangle. We can calculate the frequency of the rectangle wave through the timing and counting functions of 51 we can calculate the parameters of impedance through the formula and show it out through the the aspect of software,I programming by using C language in bination of hardware and software,I will make a quick and actual detector.
KEY WORDS: 51 SCM 555 Circuit 1602LCD displays Mc1648 VCO
目录
1、绪论 4
、意义及目的 4
5
、需要重点研究的问题及解决思路 6
2、总体方案设计的说明 6
6
7
3、硬件设计 8
8
13
16
555定时器 16
mc1648压控振荡器 19
20
21
22
4、软件设计 25
26
28
5、调试与仿真 29
6、结论 37
致谢 38
参考文献 39
附录 40
附录一源程序 40
1、绪论
、意义及目的
测量是通过实