文档详情

基于单片机的钟控彩灯设计本科毕业设计.doc

发布:2017-09-06约1.87万字共47页下载文档
文本预览下载声明
基于单片机 学院名称: 电气信息工程学院 专 业: 电气工程及其自动化 班 级: 10东电气1 学 号: 姓 名: 指导教师姓名: 指导教师职称: 讲师 二〇一四 年 六 月 基于单片机随着 关键词:stc89c52单片机;时钟;LED彩灯;循环模式 The Design Of Clock Control Lantern Based On Microcontroller Abstract :The design fully reflects the input and output pins of the STC89C52 chip and pin function, control LED lights cycle. Now with the social life is more and more rich and colorful, can see the light color of every hue in various occasions people living in. Because the LED lamp has variable colors, low price, the LED got the extensive application. This design mainly consists of C52 single-chip controller, LED light emitting diode circuit, digital tube circuit and the key circuit, control lights transform by clock mode. The design of the main program design based on MCU assembly language program design, software interrupt. And then directly in the keil software compiler, simulation using protcus. The final realization of LED lights with the time transformation into a predetermined cycle. Key words: STC89C52 MCU;?clock;?LED lights;?circulation model 目 录 第1章 绪论 1 1.1 研究背景 1 1.2 发展现状 1 1.3 研究内容 1 第2章 系统设计方案 2 2.1 系统设计方案 2 2.2 系统功能介绍 2 第3章 系统硬件设计…………………………………………………4 3.1单片机介绍…………………………………………………………………….4 3.1.1单片机引脚及功能介绍…………………………………………….…4 3.1.2单片机最小系统…….…………………………………….……………………6 3.2按键电路设计…………………………………………………………………7 3.3 数码管显示电路设计………………………………………………………8 3.4 报警电路设计……………………………………………………………….10 3.5 彩灯驱动电路设计………………………………………………………….11 3.6总电路设计…………………………………………………………………..12 第4章 系统软件设计………………………………………………..13 4.1定时计数器与中断简介……………………………………………………..13 4.1.1STC89C52的定时/计数器…………………………………………….13 4.1.2 单片机中断系统……………………………………………………..13 4.2 主程序流程设计…………………………………………………………….13 4.3 彩灯循环模式转换程序设计……………………………………………….15 4.4 时钟控制程序设计………………………………………………………….16 4.5 按键扫描及时钟调整程序设计
显示全部
相似文档