Microsoft PowerPoint - STU_EC_Ch08.ppt

Similar documents
Microsoft PowerPoint - STU_EC_Ch07.ppt

Microsoft PowerPoint - STU_EC_Ch02.ppt

Edge-Triggered Rising Edge-Triggered ( Falling Edge-Triggered ( Unit 11 Latches and Flip-Flops 3 Timing for D Flip-Flop (Falling-Edge Trigger) Unit 11

Microsoft PowerPoint - STU_EC_Ch01.ppt

Microsoft PowerPoint - STU_EC_Ch04.ppt

untitled

PowerPoint Presentation

Outline Speech Signals Processing Dual-Tone Multifrequency Signal Detection 云南大学滇池学院课程 : 数字信号处理 Applications of Digital Signal Processing 2

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

<4D F736F F F696E74202D20B5DAD2BBD5C228B4F2D3A1B0E6292E BBCE6C8DDC4A3CABD5D>

穨control.PDF

untitled

摘 要 張 捷 明 是 台 灣 當 代 重 要 的 客 語 兒 童 文 學 作 家, 他 的 作 品 記 錄 著 客 家 人 的 思 想 文 化 與 觀 念, 也 曾 榮 獲 多 項 文 學 大 獎 的 肯 定, 對 台 灣 這 塊 土 地 上 的 客 家 人 有 著 深 厚 的 情 感 張 氏 於

Microsoft PowerPoint - Aqua-Sim.pptx

SuperMap 系列产品介绍

<4D F736F F D C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

1 1

untitled

Microsoft PowerPoint - ATF2015.ppt [相容模式]

Microsoft Word - 論文封面 修.doc

1.ai

地質調査研究報告/Bulletin of the Geological Survey of Japan

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

Computer Architecture

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

...1 What?...2 Why?...3 How? ( ) IEEE / 23

Knowledge and its Place in Nature by Hilary Kornblith

LH_Series_Rev2014.pdf

Shanghai International Studies University THE STUDY AND PRACTICE OF SITUATIONAL LANGUAGE TEACHING OF ADVERB AT BEGINNING AND INTERMEDIATE LEVEL A Thes

2/80 2

國立中山大學學位論文典藏.PDF

ENGG1410-F Tutorial 6

1 引言

States and capital package

Logitech Wireless Combo MK45 English

1 VLBI VLBI 2 32 MHz 2 Gbps X J VLBI [3] CDAS IVS [4,5] CDAS MHz, 16 MHz, 8 MHz, 4 MHz, 2 MHz [6] CDAS VLBI CDAS 2 CDAS CDAS 5 2


a b c d e f g C2 C1 2

BC04 Module_antenna__ doc

A Study on JI Xiaolan s ( ) Life, Couplets and Theories of Couplets 紀 曉 嵐 ( ) 生 平 資 料 斠 正 及 對 聯 聯 論 研 究 LI Ha 李 夏 THE UNIVER

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

Microsoft Word - Final Exam Review Packet.docx

邏輯分析儀的概念與原理-展示版

LK110_ck

Microsoft PowerPoint - C15_LECTURE_NOTE_10.ppt

* RRB *

龍華科技大學數位典藏論文

A Community Guide to Environmental Health

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Microsoft Word doc

參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特

Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram

9 什 么 是 竞 争 与 冒 险 现 象? 怎 样 判 断? 如 何 消 除?( 汉 王 笔 试 ) 在 组 合 逻 辑 中, 由 于 门 的 输 入 信 号 通 路 中 经 过 了 不 同 的 延 时, 导 致 到 达 该 门 的 时 间 不 一 致 叫 竞 争 产 生 毛 刺 叫 冒 险 如

從篤加有二「區」談當代平埔文化復振現相


Lorem ipsum dolor sit amet, consectetuer adipiscing elit

168 健 等 木醋对几种小浆果扦插繁殖的影响 第1期 the view of the comprehensive rooting quality, spraying wood vinegar can change rooting situation, and the optimal concent

2 味 美 直 死 宋 元 明 美 食 河 魨 傳 考 比, 中 藏 禍 無 涯 甚 美 惡 亦 稱, 此 言 誠 可 嘉 4 茲 詩 深 得 廬 陵 亦 今 江 西 吉 安 市 人 歐 陽 修 的 心 儀, 歐 陽 文 忠 集 卷 七 三 書 梅 聖 俞 河 豚 魚 詩 後 卷 一 二 八 詩 話

!"# $% & $%%% ( ")*+,-./00-(11.-. $%! $ " # $ % & ( - ) +%23!"# $%%% %,.%,!" $%.! 1.% & /$ 3(,. ( /0% $%%% ( $%%% ( 3 5 /6%%%! ")*+,-./00-(11

!! "!! "! "!! "! "! "!!#$% & ()*+, -./!000$ 1-2$##0! 3

声 明 本 人 郑 重 声 明 : 此 处 所 提 交 的 硕 士 学 位 论 文 基 于 等 级 工 鉴 定 的 远 程 考 试 系 统 客 户 端 开 发 与 实 现, 是 本 人 在 中 国 科 学 技 术 大 学 攻 读 硕 士 学 位 期 间, 在 导 师 指 导 下 进 行 的 研 究

mm 400 mm 15 mm EOF mm/10a Fig. 1 Distributions

逢 甲 大 學

Microsoft Word - template.doc

南華大學數位論文

USPTO Academic research Corporate needs Global/International Inventors Libraries News Media/Publication Patent Attorney or Agent USPTO e (ebusiness Ce

Stochastic Processes (XI) Hanjun Zhang School of Mathematics and Computational Science, Xiangtan University 508 YiFu Lou talk 06/

D-Type entity D_FF is D :in std_logic; CLK :in std_logic; Q :out std_logic); end D_FF; architecture a of D_FF is process(clk,d) if CLK'EVENT and CLK =

% % % % % % ~

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

TestNian

~ a 3 h NCEP ~ 24 3 ~ ~ 8 9 ~ km m ~ 500 m 500 ~ 800 m 800 ~ m a 200


T stg -40 to 125 C V cc 3.8V V dc RH 0 to 100 %RH T a -40 to +125 C -0.3 to 3.6V V -0.3 to VDD+0.3 V -10 to +10 ma = 25 = 3V) VDD

中 文 摘 要 一 个 蛋 白 质 去 折 叠 可 视 化 系 统 的 设 计 与 实 现 中 文 摘 要 蛋 白 质 的 生 物 功 能 由 其 三 维 结 构 所 决 定, 而 蛋 白 质 通 过 特 定 的 折 叠 机 制 行 成 稳 定 的 空 间 结 构 当 前 生 物 科 学 领 域 一

%

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

Microsoft PowerPoint - ARC110_栾跃.ppt

~ ~

JOURNAL OF EARTHQUAKE ENGINEERING AND ENGINEERING VIBRATION Vol. 31 No. 5 Oct /35 TU3521 P315.

untitled

Pin Configurations Figure2. Pin Configuration of FS2012 (Top View) Table 1 Pin Description Pin Number Pin Name Description 1 GND 2 FB 3 SW Ground Pin.

untitled

Microsoft PowerPoint - Ch5 The Bipolar Junction Transistor

(baking powder) 1 ( ) ( ) 1 10g g (two level design, D-optimal) 32 1/2 fraction Two Level Fractional Factorial Design D-Optimal D

第一章.FIT)

大 綱 最 有 利 標 目 的 及 類 型 最 有 利 標 之 辦 理 方 式 準 用 最 有 利 標 取 最 有 利 標 精 神 最 有 利 標 之 類 型 及 其 相 關 規 定 適 用 最 有 利 標 準 用 最 有 利 標 及 取 最 有 利 標 精 神 作 業 程 序 及 實 務 分 析

12 Differential Low-Power 6x6 12 bit multiply 1

1 SIGMA Lab Sydney IntelliGent MultimediA Laboratory Electrical and Information Engineering department EIE Ph.D. M.Phil. 1.QS (Associate Profess

150 ( ) 36 [ 1 ],,,,,, [ 2 ],, ( ),,, ;, ;,,,,,,, ( 1 ),,, [ 4-5 ] 1 ( ),,,,,,,,,

國立中山大學學位論文典藏

第六章

林教授2.PDF

GH1220 Hall Switch

14 建筑环境设计模拟分析软件DeST--辅助商业建筑设计应用实例.doc

bingdian001.com

Microsoft PowerPoint - CH 04 Techniques of Circuit Analysis

Microsoft Word - jenesys2009_groupreport_1a_sc.doc

PowerPoint Presentation

Chn 116 Neh.d.01.nis

Transcription:

樹德科技大學資訊工程系 Chapter 8: Counters Shi-Huang Chen Fall 2010 1 Outline Asynchronous Counter Operation Synchronous Counter Operation Up/Down Synchronous Counters Design of Synchronous Counters Cascaded Counters Counter Decoding Counter Applications 2 1

Counting in Binary As you know, the binary count sequence follows a familiar pattern of 0 s and 1 s as described in Section 2-2 of the text. The next bit changes on every fourth number. 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 LSB changes on every number. The next bit changes on every other number. 3 Counting in Binary A counter can form the same pattern of 0 s and 1 s with logic levels. The first stage in the counter represents the least significant bit notice that these waveforms follow the same pattern as counting in binary. LSB 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 MSB 0 0 0 0 1 1 1 1 4 2

2-Bit Asynchronous Counter 5 3-Bit Asynchronous Counter 6 3

3-Bit Asynchronous Counter 7 Propagation Delay Notice how delays are cumulative as each stage in a counter is clocked later than the previous stage. For certain applications requiring high clock rates, this is a major disadvantage. CLK 1 2 3 4 Q 0 Q 1 Q 2 Q 0 is delayed by 1 propagation delay, Q 2 by 2 delays and Q 3 by 3 delays. 8 4

4-Bit Asynchronous Counter 9 Asynchronous Decade Counter This counter uses partial decoding to recycle the count sequence to zero after the 1001 state. The flip-flops are trailingedge triggered, so clocks are derived from the Q outputs. Other truncated sequences can be obtained using a similar technique. 10 5

Asynchronous Modulus-12 Counter 11 4-Bit Asynchronous Binary Counter The 74LS93A 4-bit asynchronous binary counter logic diagram. All J and K inputs are connected internally HIGH 12 6

4-Bit Asynchronous Binary Counter Three configurations of the 74LS93A asynchronous counter. (c) 74LS93A connected as a modulus-12 counter. 13 2-Bit Synchronous Counter In a synchronous counter all flip-flops are clocked together with a common clock pulse. Synchronous counters overcome the disadvantage of accumulated propagation delays, but generally they require more circuitry to control states changes. 14 7

3-Bit Synchronous Counter 15 3-Bit Synchronous Counter 16 8

4-Bit Synchronous Counter Q 1 Q 0 Q 2 Q 1 Q 0 FF0 FF1 G1 G 2 FF2 FF3 HIGH J 0 Q 0 J 1 Q 1 J 2 Q 2 J 3 Q 3 CLK C C C C K 0 Q 0 K 1 Q 1 K 2 Q 2 K 3 Q 3 The 4-bit binary counter has one more AND gate than the 3-bit counter just described. The shaded areas show where the AND gate outputs are HIGH causing the next FF to toggle. Q 0 Q 1 Q 2 Q 3 17 Synchronous BCD Decade Counter This gate detects 1001 LSB 18 9

Synchronous BCD Decade Counter 19 4-bit Synchronous Binary Counter 74HC163 20 10

Synchronous BCD Decade Counter 74LS160 21 Up/Down Synchronous Counters UP UP 0, 1, 2, 3, 4, 5, 4, 3, 2, 3,4, 5, 6, 7, 6, 5, etc. DOWN DOWN 22 11

Up/Down Synchronous Counters A basic 3-bit up/down synchronous counter 23 Up/Down Synchronous Counters The 74HC190 up/down synchronous decade counter 24 12

Design of Synchronous Counter General clocked sequential circuit or state machine Flip-flop 25 Step 1: State Diagram State diagram for a 3-bit Gray code counter 26 13

Step 2: Next State Table 27 Step 3 Flip-Flop Transition Table 28 14

Step 4: Karnaugh Maps 29 Step 5: Logic Expressions for Flip-Flop Inputs 30 15

Step 6: Counter Implementation Three-bit Gray code counter 31 Example (1) 32 16

Example (2) 33 Example (3) 34 17

Example (4) 35 Cascaded Counters 36 18

Cascaded Counters A modulus-100 counter using two cascaded decade counters. 37 Cascaded Counters Three cascaded decade counters forming a divide-by- 1000 frequency divider with intermediate divide- by-10 and divide-by-100 outputs. 38 19

Cascaded Counters A divide-by-100 counter using two 74LS160 decade counters. 39 Cascaded Counters with Truncated Sequences A divide-by-40,000 counter using 74HC161 4-bit binary counters. Note that each of the parallel data inputs is shown in binary order (the right-most bit D 0 is the LSB in each counter). 40 20

Counter Decoding Decoding of state 6 (110) 41 Counter Applications Digital Clock 42 21

Counter Applications Digital Clock Logic diagram of typical divide-by-60 counter using 74LS160A synchronous decade counters. Note that the outputs are in binary order (the rightmost bit is the LSB). 43 Counter Applications Digital Clock Logic diagram for hours counter and decoders. 44 22

Counter Applications Functional block diagram for parking garage control. 45 Counter Applications Logic diagram for modulus-100 up/down counter for automobile parking control. 46 23