1、 基于单片机的防盗报警器的设计 摘要 : 本文介绍了基于 AT89S52 单片机 控制 的 由 EEPROM 和 LED 组成的 防盗报警器的控制电路和控制程序 的设计 。 首先本文对 AT89S52 单片机和 EEPROM 的24C04 存储器芯片 原理做了 介绍 ,同时 分析 了 防盗报警器控制原理 , 经过分析 , 设计出能 实现 存储报警号码 及自动报警的 防盗报警 0 器 硬件电路和 单片机 程序 。最后利用 Proteus 仿真 软件对该系统进行仿真 ,查看效果 。 关键词 : 单片机 , 24C04, Proteus A Design of Theft-proof Alarm B
2、ased on MCU Abstract:This article describes a design of theft-proof alarm control circuit and control procedures based on the AT89S52 MCUcontroling on EEPROM 24c04 and the LED. First, this paper introduce the AT89S52 and the working principle of the EEPROM 24C04, and analyzes the burglar alarm contr
3、ol principle. After analysis, this article design out the circuit and microcontroller procedure of the theft-proof alarmt which can save the alarm number and auto send out the alarm signal. Finally, this article use the Proteus simulation software to simulate the system to view the results. Keyword:
4、 MCU, 24C04, Proteus 目 录 1 引言 . 1 1.1 防盗报警控制器研究背景 . 1 1.1.1 防盗报警器概述 . 1 1.2 单片机 技术简介 . 2 1.3 Keil 技术简介 . 2 1.4 Proteus 技术简介 . 4 1.5 本课题的主要内容、要求及说明书安排 . 4 1.5.1 主要内容、要求 . 4 1.5.2 说明书安排 . 5 2 系统结构及硬件电路设计 . 6 2.1 系统的结构框图及工作原理 . 6 2.2 电源模块 . 6 2.3 AT89S52 单片机最小系统 . 7 2.4 键盘 模块 . 8 2.5 显示模块 . 10 2.6 EEPROM . 11 3 程序设计 . 13 3.1 主程序流程 . 13 3.2 键盘输入模块的程序设计 . 13 3.3 数码管显示模块的程序设计 . 15 3.4 EEPROM 的驱动程序设计 . 16 3.2.1 24C04 的 I2C 总线构成及其协议 . 16 3.2.2 24C04 的 I2C 总线基本操作 . 18 3.2.2 24C04 的驱动子程序 . 19 4 Proteus 仿真 . 20 4.1 Proteus 7.5 SP3 简介 . 20 4.2 仿真流程 . 21