1 / 8

单片机应用技术

单片机应用技术. 项目一 循环彩灯装置. 第 4 讲 8051 单片机的时钟、 时序和复位. 《 单片机应用技术 》 精品课程组. 湖北职业技术学院机电工程系. 单片机应用技术. 时钟电路 —— 用于产生供单片机各部分同步工作的 时钟信号. 机器周期 T. CY. S1. S2. S3. S4. S5. S6. 振荡器. 晶振周期. P1. 分. 频. P2. 80C51. 器. 时钟周期( S 状态). ALE 信号. 单片机应用技术. 单片机内部的时间单位. 单片机应用技术. 单片机内部的时间单位

qamra
Télécharger la présentation

单片机应用技术

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 单片机应用技术 项目一 循环彩灯装置 第4讲8051单片机的时钟、时序和复位 《单片机应用技术》精品课程组 湖北职业技术学院机电工程系

  2. 单片机应用技术 • 时钟电路——用于产生供单片机各部分同步工作的 时钟信号

  3. 机器周期 T CY S1 S2 S3 S4 S5 S6 振荡器 晶振周期 P1 分 频 P2 80C51 器 时钟周期(S状态) ALE信号 单片机应用技术 • 单片机内部的时间单位

  4. 单片机应用技术 • 单片机内部的时间单位 • 振荡频率fosc = 石英晶体频率或外部输入时钟频率 • 振荡周期= 振荡频率的倒数 • 机器周期 • 机器周期是单片机应用中衡量时间长短的最主要的单位 • 在多数51系列单片机中: • 指令周期——执行一条指令所需要的时间单位:机器周期 • 51单片机中:单周期指令、双周期指令、四周期指令

  5. 单字节指令 双字节指令 单片机应用技术 • 单片机内部的时序 • 单片机执行各种操作时,CPU都是严格按照规定的时间顺序完成相关的工作,这种时间上的先后顺序成为时序。 • 单周期指令的操作时序

  6. 单片机应用技术 • 单片机内部的时序 • 双周期指令的操作时序

  7. 单片机应用技术 复位 • 复位引脚RST / VPD • 当出现两个机器周期高电平时,单片机复位 。 • 复位后,P0 ~ P3 输出高电平;SP寄存器为07H; • 其它寄存器全部清0;不影响RAM状态。 • 参考复位电路如下:

  8. 单片机应用技术 复位电路:

More Related