1、 I 摘摘 要要 近年来随着计算机在社会领域的渗透和大规模集成电路的发展,单片 机的应用正在不断地走向深入,由于它具有功能强,体积小,功耗低,价 格便宜,工作可靠,使用方便等特点,因此特别适合于与控制有关的系统, 越来越广泛地应用于自动控制,智能化仪器,仪表,数据采集,军工产品 以及家用电器等各个领域,单片机往往是作为一个核心部件来使用,在根 据具体硬件结构,以及针对具体应用对象特点的软件结合,以作完善。单 片机的技术进步反映在内部结构、功率消耗、外部电压等级以及制造工艺 上。在这几方面,较为典型地说明了数字单片机的水平。在目前,用户对 单片机的需要越来越多,但是,要求也越来越高。电子时钟是采
2、用数字电 路实现对.时,分,秒.数字显示的计时装置,广泛用于个人家庭,车站, 码头 办公室等公共场所,成为人们日常生活中不可少的必需品,由于数字集成电 路的发展和石英晶体振荡器的广泛应用,使得电子时钟的精度,远远超过老 式钟表, 时钟的数字化给人们生产生活带来了极大的方便,而且大大地扩 展了钟表原先的报时功能。诸如定时自动报警、按时自动打铃、时间程序 自动控制、定时广播、自动起闭路灯、定时开关烘箱、通断动力设备、甚 至各种定时电气的自动启用等,所有这些,都是以时钟数字化为基础的。 因此,研究数字钟及扩大其应用,有着非常现实的意义。 本次做的电子时钟是以单片机(AT89C52)为核心,结合相关的
3、元器件 (共阴极 LED 数码显示器等),再配以相应的软件,达到制作简易数字钟 的目的。 关键关键词词: 单片机 ;作息时间控制 ;共阴极 LED 数码显示器 II ABSTRACT In recent years, with computers in the infiltration and the development of large-scale integrated circuits. SCM application is steadily deepening, as it has strong function, small size, low power dissipation,
4、 low prices, reliable, easy to use features, it is particularly suited to and control of the system, increasingly widely used in automatic control, intelligent instruments, gauges, data acquisition, military products and household appliances, and other areas, is often microcontroller as a core compo
5、nent to use, In light of specific hardware architecture, and application-specific software features object combine to make perfect. MCU technical progress is reflected in the internal structure, power consumption, the external voltage level and the manufacturing process. In these areas, a typical il
6、lustration of the level of digital single chip. At present, users need more and more of the SCM, but are increasingly high requirements. Digital Clock is a digital circuit right. Hours, minutes, seconds. Figures show that the timing device, widely used in personal family, stations, terminals and other public places, the office has become an indispensable necessity in daily life, because of the digital integrated circuits development and wide application of quartz crystal oscillator, making