Digital Systems NV Conversions
Digital Systems NV Conversions
Digital Systems NV Conversions
UNIT I
8/23/2012
Analog Quantities
Most natural quantities that we see are analog and vary continuously. Analog systems can generally handle higher power than digital systems.
Temperature (F) 100 95 90 85 80 75 70 Time of day 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4
A .M .
5 6 7 8 9 10 11 12
P.M .
Digital systems can process, store, and transmit data more efficiently but can only assign discrete values to each point.
8/23/2012 BEEE101 UNIT III Digital Systems Nithya /VITCC
Digital-to-analog converter
8/23/2012
In binary, a single number is called a bit (for binary digit). A bit can have the value of either a 0 or a 1, depending on if the voltage is HIGH or LOW.
HIGH
VH(min)
Invalid
VL(max)
LOW
VL(min)
8/23/2012
Digital Waveforms
Digital waveforms change between the LOW and HIGH levels. A positive going pulse is one that goes from a normally LOW logic level to a HIGH level and then back again. Digital waveforms are made up of a series of pulses.
HIGH Rising or leading edge LOW Falling or trailing edge HIGH Falling or leading edge LOW Rising or trailing edge
t0
t1
t0
t1
8/23/2012
Timing Diagrams
A timing diagram is used to show the relationship between two or more digital waveforms,
Clock
A B C
t0
Computer
t1
t2
t3
t 4 t5
t6
t7
Modem
1
Com puter
0 1 1 0 0 1 0
Printer
t0
t1
8/23/2012
General statement
In general , Analog is Continuous Digital is Discrete or step by step
8/23/2012
8/23/2012
Advantage contd.,
Operation can be programmed easily. Digital circuits are less affected by noise. More digital circuitry can be fabricated on IC chips so that cost is less
8/23/2012
8/23/2012
Decimal Numbers
The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal numbers is ten, because only ten symbols (0 through 9) are used to represent any number. The column weights of decimal numbers are powers of ten that increase from right to left beginning with 100 =1: 105 104 103 102 101 100. For fractional decimal numbers, the column weights are negative powers of ten that decrease from left to right: 102 101 100. 10-1 10-2 10-3 10-4
8/23/2012 BEEE101 UNIT III Digital Systems Nithya /VITCC
Decimal Numbers
Decimal numbers can be expressed as the sum of the products of each digit times the column value for that digit. Thus, the number 9240 can be expressed as (9 x 103) + (2 x 102) + (4 x 101) + (0 x 100) or 9 x 1,000 + 2 x 100 + 4 x 10 + 0 x 1
Express the number 480.52 as the sum of values of each digit.
8/23/2012
Binary Systems
In this system any number is represented using digits: 0 and 1 only , Ex : In computers all calculations are done internally using binary Combinations of 0 and 1 only like 110102 , 11100.102 Base 2 , Powers of 2n It can be called as High or Low , True or False , Yes or No , On and Off and 1 and 0.
8/23/2012
Binary Numbers
A binary counting sequence for numbers from zero to fifteen is shown. Notice the pattern of zeros and ones in each column. Digital counters frequently have this same pattern of digits:
Counter 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 0 0 0 1 0 1 0 1 0 0 1 1 0 1 1 1 0 0 0 0 1 1 0 0 1 Decoder
Decimal Number
Binary Number
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
8/23/2012
Octal Numbers
Octal is also a weighted number system. The column weights are powers of 8, which increase from right to left.
Column weights
8 {512
3
Decimal
Octal
Binary
82 81 64 8
80 . 1 .
Express 37028 in decimal. Start by writing the column weights: 512 64 8 1 3 7 0 28 3(512) + 7(64) +0(8) +2(1) = 198610
8/23/2012 BEEE101 UNIT III Digital Systems Nithya /VITCC
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
Hexadecimal Numbers
Hexadecimal uses sixteen characters to represent numbers: the numbers 0 through 9 and the alphabetic characters A through F. Large binary number can easily be converted to hexadecimal by grouping bits 4 at a time and writing the equivalent hexadecimal character.
Express 1001 0110 0000 11102 in hexadecimal: Group the binary number by 4-bits starting from the right. Thus, 960E
8/23/2012 BEEE101 UNIT III Digital Systems Nithya /VITCC
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 1 2 3 4 5 6 7 8 9 A B C D E F
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
Hexadecimal Numbers
Hexadecimal is a weighted number system. The column weights are powers of 16, which increase from right to left.
Column weights
16 16 16 16 . {4096 256 16 1 .
3 2 1 0
Express 1A2F16 in decimal. Start by writing the column weights: 4096 256 16 1 1 A 2 F16 1(4096) + 10(256) +2(16) +15(1) =
8/23/2012
670310
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 1 2 3 4 5 6 7 8 9 A B C D E F
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
(34)10 = (100010)2
MSB LSB
8/23/2012
carry
1 0 1
8/23/2012
Example 1 : 37 8 37
4-5 (37)10 = ( 45)8
8/23/2012
1 6 0
(0.220)10 = ( 0.160)8
8/23/2012
3580
223 - 12 13 - 15 13 = D 15 = F 12 = C
8/23/2012
1 X 2 5 = 32 34
BEEE101 UNIT III Digital Systems Nithya /VITCC
8/23/2012
Conversion contd.,
Ex 2 : 100010.1 0 1
1 X 2 -3 = 0.125 0 X 2 -2 = 0 1 X 2 -1 = 0.5 0X 1X 0X 0X 0X 1X
8/23/2012
20 21 22 23 24 25
= = = = = =
0 2 0 0 0 32 34
(100010.101)2 = (34.625)10
8/23/2012
8/23/2012
0X 21 = 0 1X 2 2 = 4
0X 23 = 0 0X 24
8/23/2012 BEEE101 UNIT III Digital Systems Nithya /VITCC
= 0
1 X 2 5 = 32 37
6
110
7
111
4
100
8/23/2012
F 0011
E 1111 1110
8/23/2012