1、 课 程 设 计课 程 设 计 题题 目目 数字时钟 学学 院院 信息科学与工程学院 专专 业业 电子信息科学与技术 班班 级级 学学 生生 学学 号号 指导教师指导教师 2017 年 7 月 2 日 济南大学课程设计 2 摘 要 A T89C51 是一种带 4K 字节 FLASH 存储器(FPEROMFlash Programmable and Erasable Read Only Memory)的低电压、高性能 CMOS 8 位微处理器,俗称单片机。A T89C2051 是 一种带 2K 字节闪存可编程可擦除只读存储器的单片机。单片机的可擦除只读存储器可以反 复擦除 1000 次。该器件采
2、用 A TMEL 高密度非易失存储器制造技术制造,与工业标准的 MCS-51 指令集和输出管脚相兼容。由于将多功能 8 位 CPU 和闪速存储器组合在单个芯片 中,A TMEL 的 A T89C51 是一种高效微控制器,A T89C051 是它的一种精简版本。A T89C51 单片机为很多嵌入式控制系统提供了一种灵活性高且价廉的方案 51 系列的单片机内部都设有两个 16 位的可编程定时/计数器,可简称为定 时器 0(T0)和定时器 1(T1) 。可编程是指其功能如工作方式、定时时间、量程、 启动方式等均可由指令来确定和改变。 一般中断系统都伴随着定时/计数器的 出现而出现。中断技术是单片机工
3、作中的一项重要技术,在有些场合采用“中断 技术”可使单片机的工作更加灵活、效率更高。中断功能是在硬件基础上再配以 相应的软件而实现的。不同的单片机其硬件结构和软件指令时不完全相同的,因 而中断结构一般是不相同的。但同一系列的单片机即使型号不同,中断系统的基 本结构也是类似的,只是中断源个数不完全一样。中断系统大体分为 3 类中断, 即外部中断类(外部中断 0 和外部中断 1) 、定时中断类(定时器 T0 中断、定时 器 T1 中断、定时器 T2 中断) 、串行口中断类(RI 或 TI) 。中断处理过程可分为 3 个阶段,即中断响应、中断处理和中断返回,所有的单片机的中断都有这样的 3 个阶段
4、关键词:A T89C51 单片机;定时器 ABSTRACT AT89C51 is a 4K byte FLASH memory (FPEROM-Flash Programmable and Erasable 济南大学课程设计 3 Read Only Memory) low-voltage, high-performance CMOS 8-bit microprocessor, commonly known as single-chip. The AT89C2051 is a microcontroller with 2K bytes of flash programmable programm
5、able erasable read-only memory. The erasable read-only memory of the microcontroller can be erased 1000 times repeatedly. The device is fabricated using ATMELs high-density, non-volatile memory manufacturing technology and is compatible with the industry-standard MCS-51 instruction set and output pi
6、ns. With the combination of a versatile 8-bit CPU and flash memory in a single chip, ATMELs AT89C51 is a high-performance microcontroller, and the AT89C051 is a compact version of it. AT89C51 microcontroller for many embedded control system provides a flexible and inexpensive program 51 series of microcontrollers are equipped with two 16-bit programmable timer / counter, can be referred to as timer 0 (