Professional Documents
Culture Documents
Why digital?
digital systems are easier to design information storage is easy accuracy and precision is better operation can be programmed digital circuits are less affected by noise Example: digital camera
4
Digital Systems
Digital age Digital systems telephone switching exchanges digital camera electronic calculators, PDA's digital TV, digital broadcast Digital computers many scientific, industrial and commercial applications Generality Discrete information-processing systems
5
(DAC)
Signals: physical quantities, e.g. voltages and currents, to represent discrete elements of information in a digital system predominately implemented by transistors most use just two discrete values, said to be binary A binary digit, called a bit, has two values: 0 and 1 Binary codes: groups of bits Why binary? reliability: a transistor circuit is either on or off (two stable states)
Base-r System
Base-r system (coefficients multiplied by powers of r) (4021.2)5, (127.4)8, (B65F)16 Base-r Decimal (4021.2)5 = (511.4)10 Octal (127.4)8 = (87.5)10 Hexadecimal (B65F)16=(46,687)10 Binary (110101)2=(53)10
10
Binary Numbers
Powers of Two
K(kilo)=210, M(mega)=220, G(giga)=230, T(tera)=240
20, 21, 22, 23, 24, 25, 26, 27, 28, 110101, 100111
11
12
14
15
1-5 Complements
Used for simplifying the subtraction operation and for logical manipulation Two types of complement
diminished radix complement: (r-1)s complement
(rn-1)-N
Decimal number
10s complement and 9s complement
Binary number
2s complement and 1s complement
16
Examples
Diminished Radix Complement The 9s complement of 546700 is 999999 546700 = 453299 The 9s complement of 012398 is 999999 012398 = 987601 The 1s complement of 1011000 is 0100111 The 1s complement of 0101101 is 1010010 Radix Complement The 10s complement of 546700 is 453300 The 10s complement of 012398 is 987602 The 2s complement of 1101100 is 0010100 The 2s complement of 0110111 is 1001001
17
19
Examples
20
21
22
Arithmetic Addition
Arithmetic Subtraction (A) (+B) = (A) + (B) (A) (B) = (A) + (+B)
23
BCD addition
Get the binary sum If the sum > 9, add 6 to the sum Obtain the correct BCD digit sum and a carry
24
BCD Addition
26
27
Gray Code
only one bit change between two consecutive numbers useful in Analog-to-Digital Converter
28
29
Error-Detecting Code
Parity bit: an extra bit included with a message to make the total number of 1s either even or odd
30
A register
Register Transfer
31
Transfer of information
32
33
Logical operations
34
Logic Gates
Binary signals
Electrical signals: voltages or currents two separate voltage levels: logic-1 and logic-0 the intermediate region is crossed only during state transition circuits = logical manipulation paths
Logic gates
electronic circuits that operate on one or more input signals to produce an output signal
35
36
37
Summary
Chapter 1. Binary Systems
1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 1-9 Digital Systems Binary Numbers Number Base Conversions Octal and Hexadecimal Numbers Complements Signed Binary Numbers Binary Codes Binary Storage and Registers Binary Logic
38