目录
摘 要 ...............................................................................................................................................3
Abstract ..........................................................................................................................................4
引言 ...................................................................................................................................................5
第一章 绪论....................................................................................................................................6
1.1 立题背景 ...........................................................................................................................6
1.2 电子万年历的发展现状及前景 ....................................................................................6
1.3 本课题需要重点研究的关键问题、解决的思路及实现预期目标的可行性分析6
第二章 单片机 ...............................................................................................................................7
2.1 单片机简介 ......................................................................................................................7
2.1.1 单片机原理 ...........................................................................................................7
2.1.2 单片机历史 ..........................................................................................................7
2.1.3 单片机应用领域 .................................................................................................8
2.2 定时/计数器 ....................................................................................................................8
2.2.1 定时/计数器的结构 .............................................................................................8
2.2.2 定时/计数器的工作原理 ....................................................................................8
2.2.3 定时/计数器的控制 .............................................................................................9
2)控制寄存器 TCON ................................................................................................10
2.2.4 定时/计数器的工作方式 ..................................................................................10
2.2.5 定时器的初始化过程.......................................................................................11
2.3 中断系统 ........................................................................................................................11
2.3.1 中断概述 ............................................................................................................11
2.3.2 中断的主要功能及优先级 ..............................................................................11
2.3.3 80C51 定时中断 ..............................................................................................11
2.3.4 中断响应的过程� ............................................................................................12
2.3.5 8051 中 断 源 .................................................................................................12
2.4 串行接口 ........................................................................................................................12
2.4.1 串行接口的基本概念.......................................................................................12
2.4.2 80C51 串行口的结构 .......................................................................................13
2.4.3 串行口控制寄存器 SCON� ...........................................................................13
2.4.4 80C51 串行口的工作方式 ..............................................................................14
2.5 矩阵式键盘接口电路 ..................................................................................................14
2.5.1 矩阵式键盘接口电路的组成 ..........................................................................15
2.5.2 矩阵式键盘的按键识别及特点 .....................................................................15
2.5.3 由 8052 PI 口的高低字节构成 4×4 矩阵式键盘接口电路 .....................16
原理图如下图(2.7).......................................................................................................16
2.6 LED 动态显示电路 .......................................................................................................17
2.6.1 动态显示的特点 ...............................................................................................17
2.6.2 LED 显示器的接法 ...........................................................................................17
第三章 Keil C 软件使用..........................................................................................................18
第四章 设计流程图.....................................................................................................................21
4.1 总体设计流程图 ............................................................................................................21
4.2 初始化流程图.................................................................................................................22
4.3 按键消抖流程图 ............................................................................................................23