1、 共 2 页 第 1 页 装 订 线 1 电子时钟 摘要 本设计是基于 STC 单片机的电子时钟技术,由 STC12C5A16S2 芯片和 LCD1602 液晶显示屏,DS18B20 进行温度测量,辅以必要的的电路,构成一个单 片机定时闹钟。电子钟可采用数字电路实现,也可以采用单片机来完成。LCD 显示“时” , “分” ,LED 闪动来做秒计数,定时时间到能发出警报声或者启动继 电器,从而控制电器的启停。现在是自动化高度发达的时代,特别是电子类产 品都是靠内部的控制电路来实现对产品的控制,达到自动运行的目的,这就需 要我们这里要做的设计中的电器元件及电路的支持。 在这次设计中主要是用 STC
2、12C5A16S2 来进行定时,也结合着其他辅助电路实施控制,在定时的时候, 按一下控制小时的键对小时加一;按一下控制分钟的键对分钟加一;到达预设 的时间,此电路就会发出报警声音提示已经到点。 关键词 定时闹钟 STC12C5A16S2 LCD1602 共 2 页 第 2 页 装 订 线 Time clock Abstract The regular alarm clock designers design, by the microcontroller STC12C5A16S2 chip and LCD1602 display、 DS18B20 , combined with the nec
3、essary circuitry to form a single-chip timer alarm clock. Clock can be digital circuit, the microcontroller can also be used to complete. LCD display “when“, “sub“, LED flash to do the second count, regular time to be able to sound an alarm or start relay to control the electrical start and stop. No
4、w is the era of highly developed automation, especially electronic products are relying on the internal control circuitry to achieve control of the product to achieve the purpose of automatic operation, which requires us to do the design of electrical components and circuits to support . In this des
5、ign it is mainly used to carry out regular AT89S51, but also combined with other auxiliary circuit implementation of the control, in time, when you click a control button on the hour plus one hour; click the button on the control minutes plus one minute; reach preset time, this will sound an alarm circuit has prompted the point Key Words time clock STC12C5A16S2 LCD1602 共 1 页 第 1 页 装 订 线 3 目目 录录 引 言 1 1 电子时钟的设计目的和要求 2 1.1 设计目的 2 1.2 设计要求 2 2 电子时钟的设计流程 3 2.1 总体方案的原理 3 2.2 总体设计方案和框图 3 3 系统硬件设计 4 3.1 STC12C5A16S2 单片机 4 3.2 模块电路 5 3.2.1 复位电路与晶振电路 5 3.2.2 显示模块及芯片 . 5 3.