This document summarizes key concepts in digital systems and binary numbers. It discusses why digital systems are preferred over analog, how to convert between number bases, signed and complement number representations, overflow, binary and decimal codes, BCD addition, Gray code, and parity checks. Digital systems are more cost effective, reliable, programmable and selective compared to analog. Number conversions involve grouping bits or dividing decimals. Signed number systems use complement representations to indicate positive and negative values.
2. Key Concepts :
● Why digital Over Analog Systems ?
● Number - Base Conversions
● Complements of Numbers
● Signed Binary Number Systems
● OverFlow Concept
● Binary and Decimal Codes
● BCD Addition
● Gray Code
● Parity Check
3. Why Digital Over Analog ?
1. Reduced Cost
2. More Reliable
3. Programmable (so has major application)
4. Selective ( Akin to a Research Scientist vs
a Payroll Schedule)
5. Implemented via Electronic Components
4. Number Conversions
Convert From X ---- > Y Method
Any System(r) To Decimal Multiply Coefficients before Decimal by r ^
index. And Coefficients after Decimal by r^(-
index) where index starts from -1 after
decimal and 0 before.
Decimal to Any System (r) Divide Decimal by r Repeatedly and Collect
remainders. The Final Answer is From Last
Remainder Collected to First.
Binary To Octal Group in 3s
Binary To Hexadecimal Group in 4s
7. *
Signed Binary Numbers
We need to represent these symbols using bits
– Convention:
• 0 positive
1 negative
• The leftmost bit position is used as a sign bit
– In signed representation, bits to the right of sign bit is
the number
– In unsigned representation, the leftmost bit is a part of
the number (the most significant bit (MSB))
8. *
Example
– 01011 → (unsigned binary)
– → (signed binary)
– 11011 → (unsigned binary)
– → (signed binary)
– This method is called “signed-magnitude” and is rarely used in digital
systems (if at all)
• In computers, a negative number is represented by the complement of its
absolute value.
• Signed-complement system
– positive numbers have always “0” in the MSB position
– negative numbers have always “1” in the MSB position
10. 8,4,2,1 and Excess Three Coding
● BCD : Involves each digit being
assigned appropriate binary code.
Eg : 123 = 0001-0010-0011
● In BCD Addition if sum is greater
than 10, then 0110 (6) added .
● 8,4,2,1 Coding is a Weighted
Code
● Excess 3 Code: Is Binary Code
+3 . Therefore it is NOT A
weighted Code.
● Excess 3 is a SELF
COMPLIMENTING CODE.
11. GRAY CODE
● Used when digital data to analog data
is converted
● Only one bit in group changes from
one number to another
● Used in cases where normal binary
sequence may produce error
● Non Weighted Code
12. Parity Check
Used Often in Transmission Of
Messages.
If message is received : ACK
returned.
Else ,
NAK returned.