1、 I 摘 要 本次设计中以单片机的发展过程和发展方向为背景,介绍了单片机的输入输出的工 作原理和操作方法, 中断的工作原理和操作方法。 DS18B20 的工作原理和操作方法, LED 的内部结构。电路设计及调试过程。 本次做的冰箱数字温控器是以单片机(AT89C51)为核心,AT89C51 32 根可编程 I/O 引线,两个 16 位定时器/计数器,六个中断源,可编程串行 UART 通道,直接 LED 驱动输 出,片内模拟比较器,低功耗空载和掉电方式。 结合数字温度传感器 DS18B20,在温度测量系统中, 采用抗干扰能力强的新型数字 温度传感器是解决这些问题的最有效方案,新型数字温度传感器
2、DS18B20 具有体积更小、 精度更高、适用电压更宽、采用一线总 线、可组网等优点,在实际应用中取得了良好的 测温效果。共阳极 LED 数码显示器,再配以相应 Proteus 软件仿真调试,达到制作简易冰 箱数字温控的目的。由于它具有功能强,体积小,功耗低,价格便宜,工作可靠,使用方 便等特点,因此特别适合于与控制有关的系统。 关键词:单片机; AT89C51; 温度传感器; DS18B20; LED 数码管 II Abstract The design of a single-chip development process and the development direction of
3、 the background, introduced the single-chip input and output of the working principle and method of operation, interruption of the working principle and method of operation. DS18B20 working principle and method of operation, LEDs internal structure. Circuit design and debugging process. The refriger
4、ator so the device is a single-chip digital temperature control (AT89C51) as the core, AT89C51 32 root programmable I / O pin, two 16-bit timer / counters, six interrupt sources, programmable serial UART channel, direct LED drive output, on-chip analog comparator, low power consumption and power-down mode empty. Combination of digital temperature sensor DS18B20, in the temperature measurement system, the use of anti-interference ability of the new digital temperature sensor to solve these prob