DC Lab 3

Updated 4 Oct 2026

Seven-Segment LED Display

  • แบ่งออกเป็น 2 ประเภท

Common Anode (CA)

  • Requires an active low-output driver/decoder, such as IC 7447
  • When using a common anode LED, the common anode should to be connected to the power supply (VCC);
  • ใน Logic Works คือ 7-Seg Inverse

Common Cathode (CC)

  • Requires an active high-output driver/decoder, such as IC 7448
  • when using a common cathode LED, the common cathode should be connected to the ground (GND).
  • ใน Logic Works คือ 7-Seg ปกติ

The BCD-to-7-Segment Decoder

IC 7447

  • The 7447 takes 4 binary inputs that represent a Binary-Coded Decimal (BCD) value (ranging from 0000 to 1001, which corresponds to the decimal numbers 0 to 9). It then drives the segments of a 7-segment display to visually represent these numbers.
  • 7447: BCD to 7-segment decoder/driver designed for common-anode displays (the segments light up when their cathodes are pulled low).
  • Take active high inputs

IC 7448

  • 7448: BCD to 7-segment decoder/driver designed for common-cathode displays (the segments light up when their anodes are pulled high).
  • Take active high inputs

The Decimal-to-BCD Encoder

The Decimal-to-BCD Priority Encoder

  • The 74147 is a priority encoder IC with 10-line to 4-line functionality.

  • It takes 10 active-low inputs (from 0 to 9) and encodes the highest-priority active input

    • into a active low 4-bit binary code outputs.
      Key points about the 74147:
  • It has 10 inputs (labeled from 0 to 9), each corresponding to a decimal digit.

  • The inputs are active-low, meaning a '0' (low signal) indicates that the line is selected.

  • It provides a 4-bit binary output corresponding to the highest-priority input that is active. If multiple inputs are low, it prioritizes the highest number.
    For example:

  • If both inputs 3 and 6 are active (low), the output will be the binary encoding of 6, because it has a higher priority.

  • Input 9 has the highest priority, and input 0 has the lowest priority.

  • สรุปง่าย ๆ คือเข้าใจ 100% แล้ว

  • 74147 produces active low output แต่ 7447/7448 มันต้องการ active high input เลยต้องใส่ NOT ก่อน แล้วคือ ตอนเลือก 7-seg ใน Logic Works อย่าลืมดูด้วยว่ามันเป็น Common Anode/Common Cathode นะจ๊ะ

    • มัน Receive Active Low input ด้วยนะ