II YEAR B.
Sc III SEMESTER
PAPER III: DIGITAL ELECTRONICS
UNIT I: NUMBER SYSTEM AND CODES:
Decimal, Binary, Hexadecimal, Octal, BCD, Conversions, Complements (1s, 2s,9s and 10s), Addition, Subtraction,
Gray, Excess-3 Code conversion from one to another, ASCII code.
NUMBER SYSTEM
A digital system can understand positional number system only where there are a few symbols called digits and
these symbols represent different values depending on the position they occupy in the number.
A value of each digit in a number can be determined using
The digit
The position of the digit in the number
The base of the number system wherebaseisdefinedasthetotalnumberofdigitsavailableinthenumbersystem.
Decimal Number System
The number system that we use in our day-to-day life is the decimal number system. Decimal number system
has base 10 as it uses 10 digits from 0 to 9. In decimal number system, the successive positions to the left of the
decimal point represents units, tens, hundreds, thousands and so on.
Each position represents a specific power of the base 10. For example, the decimal number 1234 consists of the digit 4
in the units position, 3 in the tens position, 2 in the hundreds position, and 1 in the thousands position, and its value can
be written as
1X103+2X102+3X101+4X100
a number with a decimal point is represented by a series of coefficients:
a5a4a3a2a1a0 . a-1a-2a-3
The coefficients aj are any of the 10 digits (0, 1, 2, 3 9), and the subscript value j gives the place value and,
hence, the power of 10 by which the coefficient must be multiplied. Thus, the preceding decimal number can be expressed
as
105a5 + 104a4 + 103a3 + 102a2 + 101a1 + 100a0 + 10-1a-1 + 10-2a-2 + 10-3a-3
The decimal number system is said to be of base, or radix, 10 because it uses 10 digits and the coefficients are multiplied
by powers of 10.