资料详情

基于STC89C52单片机的实时时钟播报设计毕业论文+论文附录仿真图原理图及程序

头像

51单片机

编号:4576

目录

摘 要 1

一. 绪论 2

二. 系统硬件的具体设计与实现 3

1. 系统原理和框图 3

2. 功能模块的设计 3

2.1 单片机介绍 3

2.1.1 STC89C52管脚说明 4

2.1.2 STC89C52主要特性 6

2.1.3芯片擦除 6

2.2  DS1302时钟芯片 6

2.2.1 芯片原理 6

2.2.2 芯片管脚说明 7

2.3  液晶显示屏LCD1602 8

2.3.1. 引脚说明 8

2.3.2字符显示地址说明 8

2.3.3. 读写时序操作 9

2.3.4. 仿真电路图 10

2.4 DS18B20温度传感器 10

2.4.1. 芯片简介 10

2.4.2  DS18B20外形和内部结构 11

2.4.3  DS18B20与单片机的典型接口设计 13

2.5语音芯片NY3P035 14

2.5.1. 芯片简介 14

2.5.2. 控制方式 14

三. 系统软件设计 16

3.1. 程序描述 16

3.2. 程序流程图 16

3.2.1 主程序流程图 16

3.2.2 温度检测流程图 17

3.2.3 时钟读取流程图 18

3.3 程序 18

四. 总结 19

五. 致谢 20

六. 参考文献 21

七.附录 22

1.仿真图 22

2.原理图 23

3.主程序 23


摘 要

本系统以单片机STC89C52、时钟芯片DS1302、LCD1602液晶显示屏、温度传感器DS18B20和语音芯片NY3P035为核心,具备调节时间、设置闹钟、整点报时、温度检测和语音播报功能。正常情况下,显示实时日期和时间,外设5个调节按键,可以调节实时时间和设置闹钟时间,按下“播报”按键播报实时时间和温度,当时间到达闹钟设置时间时,系统会播报“叮叮叮叮”的音乐声,并且在7―21时这个时间范围内能够整点报时。

关键词:电子钟;STC89C52;NY3P035;DS1302;DS18B20

Abstract

This system make MCU STC89C52 , clock chip DS1302 , LCD1602 LCD display, temperature sensor DS18B20 and voice chip NY3P035 as the core, with the function of adjusting time, seting the alarm time, hour speech, temperature detection and voice broadcast. Under normal circumstances, displays real-time date and time. You can Adjust the real time and set up the alarm time of the time switch lock by the keys. You also can press the "report" button to broadcast real time and temperature. When time reaches the alarm time, the system will broadcast music to remind you, and in the range time of 7-21 hour, it will broadcast hour.

Keywords: Electronic clock; STC89C52; NY3P035;DS1302; DS18B20