Академический Документы
Профессиональный Документы
Культура Документы
Digital System
1
Digital vs. Analog Systems
Digital Analog
Basic elements i.e. AND, OR, NOT Basic elements i.e. resistors,
capacitors, transistors
Examples: digital watch, ipod, Example: audio amplifiers,
CD/DVD player, digital computers microphone, radio
2
Digital vs. Analog Systems
• Analog information is made up of a continuum of values within
a given range
3
ADC and DAC
• Analog to digital converter (ADC)
- capable of converting analog signals to digital signals
• Digital to analog converter (DAC)
- capable of converting digital signals to analog signals
4
Number System
Octal 8 0,1,……7 No No
hexadecimal 16 0,1,…….9, No No
A,B,……..F
5
Binary System
• Digital systems represent information using a binary
system, where data can assume one of only two possible
values: zero or one.
6
Number System
Decimal Binary Octal Hexadecimal
(base 10) (base 2) (base 8) (base 16)
00 0000 00 0
01 0001 01 1
02 0010 02 2
03 0011 03 3
04 0100 04 4
05 0101 05 5
06 0110 06 6
07 0111 07 7
08 1000 10 8
09 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D 7
14 1110 16 E
15 1111 17 F
Conversion Among Bases
• The possibilities
Decimal Octal
Binary Hexadecimal
8
Conversion Among Bases
Decimal to Decimal
• Multiply each bit by 10 , where n is the weight of the bit
• The weight is the position of the bit, starting from 5 on the
right
325 =>
5 x 10 = 5
2 x 10 = 20
3 x 10 = 300
325
9
Conversion Among Bases
Binary to Decimal
• Multiply each bit by 2 , where n is the weight of the bit
• The weight is the position of the bit, starting from 0 on the
right
Example:
110010 =>
0x2 = 0
1x2 = 2
0x2 = 0
0x2 = 0
1x2 = 16
1x2 = 32
50 10
Conversion Among Bases
Octal to decimal
• Multiply each bit by 8 , where n is the weight of the
bit
• The weight is the position of the bit, starting from 0
on the right
Example:
750 =>
0x8 = 0
5x8 = 40
7 x 8 = 448
488
11
Conversion Among Bases
Hexadecimal to decimal
• Multiply each bit by 16 , where n is the weight of the
bit
• The weight is the position of the bit, starting from F
on the right
Example:
A5F =>
F x 16 = 15 x 1 = 15
5 x 16 = 5 x 16 = 80
A x 16 = 10 x 256 = 2560
2655
12
Conversion Among Bases
Decimal to binary
• Divide by two, keep track of the remainder
Example:
850 =>
2 850
2 425 0
2 212 1
2 106 0
2 53 0
2 26 1
2 13 0
2 6 1
2 3 0
2 1 1
0 1
Example:
750 =>
7 5 0
Example:
17BC =>
1 7 B C