1 / 11

8253 计数器 / 定时器结构与编程

8253 计数器 / 定时器结构与编程. 可编程计数器 / 定时器的特点 计算机及电子系统中需要定时信号,如系统的日历时钟,动态存储器的刷新,应用系统的定时中断、定时查询与检测等。 可编程定时器芯片可以产生精确的时间时隔,形成各种脉冲序列,灵活性强。 依所需时间间隔,设置计数器的时间常数,在一外部脉冲驱动下进行减 1 计数,计数值为 0 时,产生输出信号,供系统使用。. 8253 逻辑框图. 8253 编程模型. 8253 操作与编址. 8253 控制字格式. D7. D6. D5. D4. D3. D2. D1. D0. 8253 工作方式 ( 6 种)

vinaya
Télécharger la présentation

8253 计数器 / 定时器结构与编程

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. 8253计数器/定时器结构与编程 • 可编程计数器/定时器的特点 • 计算机及电子系统中需要定时信号,如系统的日历时钟,动态存储器的刷新,应用系统的定时中断、定时查询与检测等。 • 可编程定时器芯片可以产生精确的时间时隔,形成各种脉冲序列,灵活性强。 • 依所需时间间隔,设置计数器的时间常数,在一外部脉冲驱动下进行减1计数,计数值为0时,产生输出信号,供系统使用。

  2. 8253逻辑框图

  3. 8253编程模型

  4. 8253操作与编址

  5. 8253控制字格式 D7 D6 D5 D4 D3 D2 D1 D0

  6. 8253工作方式 (6种) • 方式0:计数结束时发中断 (MODE 0) CLOCK WRn# n=4 4 3 2 1 0 OUTPUT(中断) WRm# GATE OUTPUT(中断) m=4 5 4 3 2 1 0

  7. 8253工作方式 (6种) • 方式1:可编程单稳电路 (MODE 1) CLOCK WRn# GATE(TRIGGER) 4 3 2 1 0 OUTPUT GATE(TRIGGER) OUTPUT 4 3 2 4 3 2 1 0

  8. 8253工作方式 (6种) • 方式2:可变频率脉冲发生器 (MODE 2) CLOCK WRn# n=4 n=3 4 3 2 1 0(4) 3 2 1 0(3) 2 1 0 OUTPUT 0 0(3) 3 2 1 0(3) 2 1 0(3) 2 1 OUTPUT GATE (RESET)

  9. 8253工作方式 (6种) • 方式3:方波发生器 (MODE 3) CLOCK 4 3 2 1 0(4) 3 2 1 0(4) 3 2 1 0 OUTPUT n=4 n=3 n=4 OUTPUT n=5 0(5) 4 3 2 1 0(5) 4 3 2 1 0(5) 4 3 2 1 0(4) 3 2 1 0 OUTPUT n=4 GATE (RESET)

  10. 8253工作方式 (6种) • 方式4:软件触发选通 (MODE 4) CLOCK WRn# n=4 0 4 3 2 1 OUTPUT LOADn n=4 GATE 4 4 3 2 1 0 OUTPUT

  11. 8253工作方式 (6种) • 方式5:硬件触发选通 (MODE 5) CLOCK GATE 0 4 3 2 1 OUTPUT(n=4) GATE 4 3 4 3 2 1 0 OUTPUT

More Related