Stufin
Home Quick Cart Profile

CD4543 - BCD to 7 Segment Decoder IC

Buy Now

Pin Configuration

  • CD4543 BCD to 7 Segment Decoder IC Pinout Description
  • The CD4543 is a BCD (Binary Coded Decimal) to 7 Segment Decoder IC that converts 4-bit binary input data into 7-segment display outputs. Here's a detailed explanation of each pin:
  • Pin 1: VCC (Positive Power Supply)
  • Supply voltage for the IC (typically 5V)
  • Connect to a positive power supply voltage source
  • Pin 2: A (Binary Coded Decimal Input - Most Significant Bit)
  • Input pin for the most significant bit (MSB) of the 4-bit BCD input
  • Connect to a digital output of a microcontroller or a logic circuit
  • Pin 3: B (Binary Coded Decimal Input - Second Most Significant Bit)
  • Input pin for the second most significant bit of the 4-bit BCD input
  • Connect to a digital output of a microcontroller or a logic circuit
  • Pin 4: C (Binary Coded Decimal Input - Second Least Significant Bit)
  • Input pin for the second least significant bit of the 4-bit BCD input
  • Connect to a digital output of a microcontroller or a logic circuit
  • Pin 5: D (Binary Coded Decimal Input - Least Significant Bit)
  • Input pin for the least significant bit (LSB) of the 4-bit BCD input
  • Connect to a digital output of a microcontroller or a logic circuit
  • Pin 6: RBI (Ripple Blank Input)
  • Input pin for controlling the blanking of the 7-segment display
  • Typically connected to VCC or a logic high to enable the display
  • Connecting to GND or a logic low blanks the display
  • Pin 7: LT (Lamp Test Input)
  • Input pin for lamp test function
  • Connecting to VCC or a logic high turns on all segments of the display
  • Typically used for display testing and debugging purposes
  • Pin 8: GND (Ground)
  • Ground pin for the IC
  • Connect to a common ground point in the circuit
  • Pin 9: a (Segment a Output)
  • Output pin for segment a of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Pin 10: b (Segment b Output)
  • Output pin for segment b of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Pin 11: c (Segment c Output)
  • Output pin for segment c of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Pin 12: d (Segment d Output)
  • Output pin for segment d of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Pin 13: e (Segment e Output)
  • Output pin for segment e of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Pin 14: f (Segment f Output)
  • Output pin for segment f of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Pin 15: g (Segment g Output)
  • Output pin for segment g of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Pin 16: DP (Decimal Point Output)
  • Output pin for the decimal point of the 7-segment display
  • Connect to the corresponding segment of the display (typically an LED or LCD)
  • Connection Structure:
  • 1. Connect VCC (Pin 1) to a positive power supply voltage source.
  • 2. Connect GND (Pin 8) to a common ground point in the circuit.
  • 3. Connect the BCD input pins (A - Pin 2, B - Pin 3, C - Pin 4, D - Pin 5) to the digital outputs of a microcontroller or a logic circuit.
  • 4. Connect RBI (Pin 6) to VCC or a logic high to enable the display. Connect to GND or a logic low to blank the display.
  • 5. Connect LT (Pin 7) to VCC or a logic high for lamp test function. Typically used for display testing and debugging purposes.
  • 6. Connect the segment output pins (a - Pin 9, b - Pin 10, c - Pin 11, d - Pin 12, e - Pin 13, f - Pin 14, g - Pin 15) to the corresponding segments of the 7-segment display (typically LEDs or LCDs).
  • 7. Connect the decimal point output pin (DP - Pin 16) to the decimal point segment of the 7-segment display (typically an LED or LCD).
  • Note: Make sure to follow proper power supply decoupling and signal routing techniques to ensure reliable operation of the CD4543 IC and the 7-segment display.

Code Examples

CD4543 - BCD to 7 Segment Decoder IC
Overview
The CD4543 is a BCD (Binary Coded Decimal) to 7-segment decoder/driver integrated circuit (IC) designed to drive common-cathode 7-segment displays. It can be used to display decimal digits, letters, and special characters. The CD4543 is a popular choice for many digital display applications, including clocks, timers, and metering devices.
Pinout
The CD4543 has 16 pins, with the following pinout:
Pins 1-4: BCD input (A, B, C, D)
 Pin 5: Lamp Test (LT)
 Pin 6: Blank Input (BI)
 Pin 7: Ripple Blanking Input (RBI)
 Pin 8: Ripple Blanking Output (RBO)
 Pins 9-15: 7-segment output (a, b, c, d, e, f, g)
 Pin 16: VCC (Supply Voltage)
Functional Description
The CD4543 takes a 4-bit BCD input and decodes it to drive a 7-segment display. The IC can be used in either a common-cathode or common-anode configuration. The Lamp Test input (LT) is used to test the display for faulty segments, while the Blank Input (BI) can be used to blank the display. The Ripple Blanking Input (RBI) and Ripple Blanking Output (RBO) are used to connect multiple displays in a ripple-blanking configuration.
Code Examples
### Example 1: Counter Display using Arduino
In this example, we'll use an Arduino board to display a counter value on a 7-segment display using the CD4543.
Hardware:
Arduino Uno board
 CD4543 IC
 Common-cathode 7-segment display
 Breadboard and jumper wires
Software:
```c
const int clockPin = 2;  // Clock input pin
const int dataPin = 3;  // Data input pin
const int latchPin = 4;  // Latch input pin
int counter = 0;
void setup() {
  pinMode(clockPin, OUTPUT);
  pinMode(dataPin, OUTPUT);
  pinMode(latchPin, OUTPUT);
}
void loop() {
  // Increment counter value
  counter++;
// Convert counter value to BCD
  int bcd[4];
  bcd[0] = (counter >> 3) & 0x01;
  bcd[1] = (counter >> 2) & 0x01;
  bcd[2] = (counter >> 1) & 0x01;
  bcd[3] = counter & 0x01;
// Send BCD data to CD4543
  digitalWrite(latchPin, LOW);
  shiftOut(dataPin, clockPin, MSBFIRST, bcd[0]);
  shiftOut(dataPin, clockPin, MSBFIRST, bcd[1]);
  shiftOut(dataPin, clockPin, MSBFIRST, bcd[2]);
  shiftOut(dataPin, clockPin, MSBFIRST, bcd[3]);
  digitalWrite(latchPin, HIGH);
// Wait for 1 second before incrementing counter again
  delay(1000);
}
```
### Example 2: Digital Clock using Raspberry Pi
In this example, we'll use a Raspberry Pi to display the current time on a 7-segment display using the CD4543.
Hardware:
Raspberry Pi board
 CD4543 IC
 Common-cathode 7-segment display
 Breadboard and jumper wires
Software:
```python
import time
import RPi.GPIO as GPIO
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define GPIO pins for CD4543 inputs
A_PIN = 17
B_PIN = 23
C_PIN = 24
D_PIN = 25
# Set up GPIO pins as outputs
GPIO.setup(A_PIN, GPIO.OUT)
GPIO.setup(B_PIN, GPIO.OUT)
GPIO.setup(C_PIN, GPIO.OUT)
GPIO.setup(D_PIN, GPIO.OUT)
while True:
    # Get current time
    current_time = time.localtime()
    hours = current_time.tm_hour
    minutes = current_time.tm_min
    seconds = current_time.tm_sec
# Convert time to BCD
    bcd_hours = [((hours / 10) >> 3) & 0x01, ((hours / 10) >> 2) & 0x01, ((hours / 10) >> 1) & 0x01, (hours / 10) & 0x01]
    bcd_minutes = [(minutes / 10) >> 3) & 0x01, ((minutes / 10) >> 2) & 0x01, ((minutes / 10) >> 1) & 0x01, (minutes / 10) & 0x01]
    bcd_seconds = [(seconds / 10) >> 3) & 0x01, ((seconds / 10) >> 2) & 0x01, ((seconds / 10) >> 1) & 0x01, (seconds / 10) & 0x01]
# Send BCD data to CD4543
    GPIO.output(A_PIN, bcd_hours[0])
    GPIO.output(B_PIN, bcd_hours[1])
    GPIO.output(C_PIN, bcd_hours[2])
    GPIO.output(D_PIN, bcd_hours[3])
# Wait for 1 second before updating display again
    time.sleep(1)
```
Note: These examples are for illustrative purposes only and may require additional hardware and software setup.