Posts

Showing posts with the label bcd

Binary Coded Decimal (BCD) — TechAmbitionX | Mr. BILRED | Basic Stuff

Image
Binary Coded Decimal (BCD) — TechAmbitionX 🔹 1. What is BCD? BCD (Binary Coded Decimal) is a way of representing decimal numbers (0–9) in binary form using 4 bits for each digit . Example: Decimal 59 → BCD = 0101 1001 Pure Binary 59 → 111011 Notice how in BCD, each digit is separate (5 = 0101, 9 = 1001). This makes it easier for circuits to display numbers. 🔹 2. Why use BCD? Normal binary is compact, but BCD is better when numbers need to be shown to humans (digit by digit). 💡 Devices like digital clocks, calculators, counters , and 7-segment displays often use BCD internally. 🔹 3. Rules of BCD Each digit = 4 bits (nibble). Valid range = 0000 (0) to 1001 (9). 1010–1111 are invalid in standard BCD. 🔹 4. BCD Truth Table (0–9) Decimal BCD (8421) 0 0...