1 / 14

Logic Experiment 4

Logic Experiment 4. 老師:伍紹勳 助教:邱麟凱 蔡東倫. BCD Adder. Equipment : IC : 7408 x 1 、 7432 x 1 、 7483 x 2 、 7447(DCBA) x 1 、 LED x 1 、 7-Segment LED x 1. BCD Adder. Hexadecimal 4bit 可表示數字 0~15 方便計算 Binary-Coded Decimal(BCD) 4bits 可表示數字 0~9 不方便計算 → 衍伸出數種表示和計算方式

Download Presentation

Logic Experiment 4

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. Logic Experiment 4 老師:伍紹勳 助教:邱麟凱 蔡東倫

  2. BCD Adder Equipment: IC:7408 x 1、7432 x 1、7483 x 2、7447(DCBA) x 1、LED x 1、7-Segment LED x 1

  3. BCD Adder • Hexadecimal • 4bit 可表示數字 0~15 • 方便計算 • Binary-Coded Decimal(BCD) • 4bits 可表示數字 0~9 • 不方便計算 → 衍伸出數種表示和計算方式 • 方便有關十進位的處理,如: 顯示數字。

  4. BCD Adder 十位數進位 Combinational Logic 4-bit Adder ∵BCD ∴輸入介於 0~10 個位數

  5. a b f g e c dp d 7-Segment LED • 共陽極七段顯示器 • A, k 連接到 VCC • 輸入為低電位,LED才會亮 LED 對應圖 電路腳位圖

  6. IC 7447 輸入順序(由高到低): D CB A 接1或空接

  7. 7-Segment LED 務必加上電阻 330Ω(橘橘棕)

  8. 四位元加法器

  9. 0≦A, B ≦9 → 0≦A+B ≦18 • 0~9 • 結果保持不動 • 10~18 • 將結果加6(10+6=16),使得十位數進位、個位數保留

  10. >9 => add 6 Tens digit Units digit ex: 7+8=15 BCD : 0 1 1 1 +1 0 0 0 1 1 1 1 +0 1 1 0 0 0 0 1 0 1 0 1

  11. Binary Sum BCD Sum K T8 T4 T2 T1C S8 S4 S2 S1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 2 0 0 0 1 0 0 0 0 1 0 2 3 0 0 0 1 1 0 0 0 1 1 3 4 0 0 1 0 0 0 0 1 0 0 4 5 0 0 1 0 1 0 0 1 0 1 5 6 0 0 1 1 0 0 0 1 1 0 6 7 0 0 1 1 1 0 0 1 1 1 7 8 0 1 0 0 0 0 1 0 0 0 8 9 0 1 0 0 1 0 1 0 0 1 9 A 0 1 0 1 0 1 0 0 0 0 10 B 0 1 0 1 1 1 0 0 0 1 11 C 0 1 1 0 0 1 0 0 1 0 12 D 0 1 1 0 1 1 0 0 1 1 13 E 0 1 1 1 0 1 0 1 0 0 14 F 0 1 1 1 1 1 0 1 0 1 15 10 1 0 0 0 0 1 0 1 1 0 16 11 1 0 0 0 1 1 0 1 1 1 17 12 1 0 0 1 0 1 1 0 0 0 18 13 1 0 0 1 1 1 1 0 0 1 19 T2T1 00 01 11 10 00 01 11 1 1 1 1 10 1 1 T8T4 When to add 6? 1. T8 T4 T2 T1 > 9 T8T4 + T8T2 2. Carry is 1 F = T8T4 + T8T2 + K

  12. T8T4 + T8T2 + K Add 6 or not

  13. Input T8T4 + T8T2 + K Add 6 or not A,K connect to +5V dp not connect Units Digit Tens Digit ( LED )

More Related