DL Unit 1
DL Unit 1
- I/II
COURSE CODE: IT233
1.1 Digital Signals and wave forms
A signal is a function, that represents the variation of a physical
quantity with respect to any parameter.
In electronics circuits and systems, signal can be divided into two
broad categories:
I. ANALOG SIGNAL
II. DIGITAL SIGNAL
CPU
Control Unit
Memory
VH(max)
HIGH (Binary 1)
VH(low)
Forbidden state
VL(max)
LOW (Binary 0)
VL(low)
• In digital system, two digits ‘0’ and ‘1’ are used, called bits (binary digits).
• In digital circuit, two voltage levels are used:
• High == logic ‘1’
• Low == logic ‘0’
• High is normally +5 volt and low is 0 volt in positive logic and opposite in case of
negative logic system.
Disadvantage:
• Requires high bandwidth.
• Requires synchronization in case of synchronous modulation.
St.Xavier. @ Kiran Bagale 7/13/2023 10
Computer communicates and operates in binary digit ‘0’ and ‘1’.
Human beings generally use decimal system (0–9).
Other system can be used: Octal (0-7), Hexadecimal (0-15) where 10-
15, we use A-F letters.
A positional scheme is used to represent a number in any of the
number system.
Radix or base; for example 2 for binary, 10 for decimal etc.
⇒ (58) 10 = (111010) 2
St.Xavier. @ Kiran Bagale 7/13/2023 16
Step 2 − Multiplication of 0.25 and successive fractions with base 2.
Example
Consider the decimal number 58.25. Here, the integer part is 58 and fractional part is 0.25.
Step 1 − Division of 58 and successive quotients with base 8.
Example: Consider the decimal number 58.25. Here, the integer part is 58 and
decimal part is 0.25.
Step 1 − Division of 58 and successive quotients with base 16.
⇒ 58 = 3A
Therefore, the integer part of equivalent Hexa-decimal number is 3A.
⇒ .25 10 = .4 16
Therefore, the fractional part of equivalent Hexa-decimal number is .4.
⇒58.25 10 = 3A.4 16
Three bits of binary number is equivalent to one octal digit, since 2^3 = 8.
Two steps:
step-1: Start from the binary point and make the groups of 3 bits on both sides of binary point. If one or two bits are
less while making the group of 3 bits, then include required number of zeros on extreme sides.
101 110.011 01
Here, on right side of binary point, the last group is having only 2 bits. So, include one zero on extreme side in
order to make it as group of 3 bits.
⇒ 101110.011010 2 = 56.32 8
1. Signed Numbers
Contain both sign and magnitude of the number.
The sign is placed in front of number. So, we have to consider the positive sign for
positive numbers and negative sign for negative numbers.
2. Unsigned Numbers
Contain only magnitude of the number.
They don’t have any sign. That means all unsigned binary numbers are positive including
Zero.
Representation of a positive number in all these 3 forms is same. But, only the
representation of negative number will differ in each form.
• subtract a number B from number A, then take 2’s complement of B and add it to A.
A - B = A + 2′ s complement of B
• subtract a number A from number B, then take 2’s complement of A and add it to B.
B - A = B + 2′ s complement of A
• So, the subtraction of two signed binary numbers is similar to the addition of two
signed binary numbers. But, we have to take 2’s complement of the number, which
is supposed to be subtracted.
+7 10 − +4 10 = +7 10 + −4 10.
• The 2’s complement representation of +7 and -4 with 5 bits each are shown below:
+7 10 = 00111 2
-4 10 = 11100 2
⇒+7 10 + -4 10 = 00111 2 + 11100 2 = 100011 2
Here, the carry obtained from sign bit. So, we can remove it. The resultant sum after removing
carry is,
+7 10 + -4 10 = 00011 2
• The sign bit ‘0’ indicates that the resultant sum is positive. So, the magnitude of it is 3 in
decimal number system. Therefore, subtraction of two decimal numbers +7 and +4 is +3.
Decimal Digit 8421 Code 2421 Code 84-2-1 Code Excess 3 Code
9
St.Xavier. @ Kiran Bagale 1001 1111 1111 11007/13/2023 37
8 4 2 1 code
• There are 12 bits in BCD representation, since each BCD code of decimal digit
has 4 bits.
Step 1 − By placing zero to the left of MSB, the binary code will be 11101.
Step 2 − By comparing successive two bits of new binary code, we will get
the gray code as 10011.
Parity Code:
A parity bit(s) is an extra bit that is added with original message
to detect error in the message during data transmission.
This is a simplest method for error detection.
Odd Parity
One bit is attached to the information so that the total number of 1 bit is an
odd number.
Message Parity
1011001 1
1010010 0