毕业论文于基pic16f877的led旋转时钟单片机设计实验报告.docVIP

  • 7
  • 0
  • 约1.95万字
  • 约 35页
  • 2017-03-31 发布于辽宁
  • 举报

毕业论文于基pic16f877的led旋转时钟单片机设计实验报告.doc

毕业论文于基pic16f877的led旋转时钟单片机设计实验报告

2013年小学期单片机设计实验报告 题目:基于PIC16F877单片机的LED旋转时钟 学 号: 班内序号: 实验组号: 学生姓名: 指导教师: 期中检查 教师评语 指导教师签字: 年 月 日 基于PIC16F877单片机的LED旋转时钟 实验摘要 本次我们制作的基于PIC16F877单片机的LED旋转时钟是能够输入、显示时间 整个系统中,微控制器采用了Microchip公司的PIC16F877,软件设计中涉及PORTA用作普通数字I/O脚控制按键输入PORTB、PORTC控制灯的亮灭PORTD向时钟芯片DS1302和读出时间。 Abstract In this experiment, we made a LED rotating clock base on PIC16F877 MCU. It can input and show time. Its structure is novel and its effect is amazing. It’s full of modern technology element. With human eyes’ persistence of vision, it solves traditional clock’s structure and effect’s disadvantage, fits human pursue for beauty better. The system uses the production of the Microchip cord--PIC16F877. The design includes the drive of PORTA as general digital ports to input time, the drive of PORTB and PORTC to control the LED’s on, the drive of PORTD to write and read time on DS1302. In conclusion, with human eyes’ persistence of vision, this experiment uses PIC16F877 MCU as master chip, uses motor to drive LED rotate at high speed, uses strobe display principle to show the clock. 关键字 单片机——microcontroller 芯片——CMOS chip LED旋转时钟-- LED rotating clock显示 旋转时钟是利用视觉暂留效应设计出来的,物体在快速运动时, 当人眼所看到的影像消失后,人眼仍能继续保留其影像0.1-0.4秒左右的图像,这种现象被称为视觉暂留现象。是人眼具有的一种性质。人眼观看物体时,成像于视网膜上,并由视神经输入人脑,感觉到物体的像。但当物体移去时,视神经对物体的印象不会立即消失,而要延续0.1 -0.4秒的时间,人眼的这种性质被称为“眼睛的视觉暂留”。 假设我们设定我们的眼睛的暂留时间是0.4秒,如果我们的16个LED旋转一周的时间快过0.4秒,那么我们看到的图像就是这一列LED在各个位置显示的图像的叠加,如右图,如果我们用定时器把LED旋转一周的各个位置分割出120分,让它在相应的位置显示相应的图像,那么我们就可以得到一个累加的图像效果了。 旋转LED时钟的实现方法是把一组LED(16个左右) 紧密的排列成一条直线,组成一条LED列,每个LED都由PIC单片机来控制其点灭。把整个电路板固定在电机上,使得紧密排列的LED条的一端固定在电机的旋转轴附近,如图所示。电路板转过一圈的时间极短,远小于0.1秒。通过单片机控制LED灯在一圈内转到不同位置时的亮灭,来显示图像或文字。 2.DS1302时钟模块DS1302时钟芯片作为实时时钟部件,保证时间的长久准确性。 DS1302 有着很强的功能。包括时钟/日历寄存器和31 字节(8位)的数据暂存寄存器,数据通信仅通过一条串行输入输出口。实时时钟/日历提供包括秒、分、时、日期、月份和年份信息。闰年可自行调整,可选择AM

文档评论(0)

1亿VIP精品文档

相关文档