基于51单片机的语音电子时钟系统

更新时间:2023-09-27 10:54:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

东华理工大学长江学院

毕业设计

题 目 基于51单片机的语音电子时钟系统

英文题目 The design of digital voice clock system

based on 51 MCU

学生姓名 XXX 学 号 083143XX 专 业 电子信息工程 系 别 机 电 系 指导教师 王仁波 职称 教授

二零一二年六月

摘 要

单片计算机既单片微型计算机。由RAM,ROM,CUP构成,定时,计数和多种接口与一体的微型控制器。他体积小,成本低,功能强,广泛应用于智能产业和工业自动化上。而51 系列单片机是各单片机中最为典型和最有代表性的一种。这次毕业设计通过对它的学习,应用,从而达到学习,设计的能力。

本文以AT89C51单片机为核心,将时钟集成芯片DS1302产生的时钟信号送入单片机,由六位数码管动态显示;采用不断查询单片机存储的作息时间的方法,利用语音芯片播放音乐,同时采取定义三个按键及软件控制的方式,实现快速校时和整点报时功能;硬件部分介绍时钟集成芯片DS1302以及时钟信号模块、HY-1系列语音芯片以及自动控制打铃模块、直流电源模块、单片机AT89C51及动态显示模块;软件部分主要介绍设计思路及主程序以及各模块程序流程图。 关键词:数字时钟; 单片机; 时钟集成芯片; 语音芯片

I

ABSTRACT

A monolithic computer is single chip microcomputer. By RAM, ROM, CUP, timing, counting and multiple interfaces and the integration of the micro controller. He has the advantages of small volume, low cost, strong function, widely used in smart industries, and industrial automation. And 51 Series SCM is the most typical and the most representative one. The graduation design through the study, application, to achieve the study, design ability.

The article used the microcontroller AT89C51 as the core, clock signal that was produced by clock integrated chip DS1302 will be bring into the SCM, and are dynamic display by six LED. By the method of continuously query schedule time which was stored in SCM, using voice chip play music, simultaneously, by defining three keys and taking the control of software, the system accomplish the function of rapidly setting time and broadcasting time when the clock reach the whole point. Hardware section describes clock integrated chip DS1302 and clock signal module, HY-1 series of voice chip and automatic control of the ring module, DC power module, microcontroller AT89C51 and dynamic display module. Software section mainly introduces the ways of design and flow chart of the main program and module program.

Key words: digital clock; SCM; clock integrated chip; voice chip

II

目 录

绪论 ................................................................... 1 1. 系统的总体设计 ...................................................... 2 1.1 系统设计要求 .................................................... 2 1.2 系统设计总方案 .................................................. 2 1.2.1时钟电路方案 ............................................... 3 1.2.2数码管显示方案 ............................................. 3 2. 系统的硬件设计 ...................................................... 5 2.1 时钟电路模块 .................................................... 5 2.1.1 时钟电路硬件连接图 ........................................ 5 2.1.2 时钟电路模块工作原理 ...................................... 5 2.1.3 时钟芯片DS1302 ............................................ 5 2.2 校时电路模块 .................................................... 8 2.1.1 校时电路硬件连接图 ........................................ 8 2.1.2 校时电路模块工作原理 ...................................... 9 2.3 整点报时模块 .................................................... 9 2.1.1 整点报时电路硬件连接图 .................................... 9 2.1.2 整点报时电路模块工作原理 ................................. 10 2.4 数码管显示模块 ................................................. 10 2.4.1 数码管显示电路硬件连接图 ................................. 10 2.4.2 数码管显示模块工作原理 ................................... 11 2.4.3 数码管 ................................................... 11 2.4.4 驱动器 ................................................... 13 2.5 音乐打铃模块 ................................................... 15 2.5.1 音乐打铃电路电路硬件连接图 ............................... 15 2.5.2 音乐打铃模块工作原理 ..................................... 15 2.5.3 HY-1系列语音芯片 ......................................... 16 2.6 AT89C51的外设电路 .............................................. 16 2.6.1 AT89C51单片机 ............................................. 16 2.6.2 时钟电路 .................................................. 21 2.6.3 复位电路 .................................................. 21 2.7 直流电源电路 .................................................... 22 2.8 系统总原理图 .................................................... 23

III

3. 系统的软件设计 ..................................................... 25 3.1 软件设计思路 ................................................... 25 3.1.1 显示电路设计思路 ............................................. 26 3.1.2 整点报时和语音电路设计思路 ................................... 26 3.1.3 校时电路设计思路 ............................................. 28 结论 .................................................................. 29 致谢 .................................................................. 30 参考文献 .............................................................. 31 附录 .................................................................. 32

IV

本文来源:https://www.bwwdw.com/article/sv4d.html

Top