Académique Documents
Professionnel Documents
Culture Documents
Training Unit
Digital Technique 1
Theory
No: EE 088
Training Unit
Digital Technique 1
Theoretical Part
No.: EE 088
Edition:
2008
All Rights Reserved
Editor:
DIGITAL TECHNIQUE 1
CONTENTS
Page
INTRODUCTION ..........................................................................................................4
1.1
1.2
1.2.1
Analogue signals..............................................................................................5
1.2.2
1.3
Bit.........................................................................................................................6
1.3.1
Binary digital.....................................................................................................6
NUMBER SYSTEMS....................................................................................................7
2.1
Representation of numbers..................................................................................7
2.2
2.2.1
2.2.2
System of five:..................................................................................................9
2.2.3
2.2.4
2.2.5
2.2.6
2.2.7
2.2.8
2.2.9
2.2.10
Addition ..............................................................................................................20
3.2
Multiplication ......................................................................................................25
3.3
Subtraction .........................................................................................................31
3.4
Division ..............................................................................................................34
3.5
3.5.1
Decimal system..............................................................................................36
3.5.2
3.6
DIGITAL TECHNIQUE 1
LEARNING OBJECTIVES
DIGITAL TECHNIQUE 1
1.1
INTRODUCTION
The digital technology includes automation technology which deals with the design and
the construction of control systems where information is being transmitted by means of
digital signals.
The term "digital" is derived from the Latin word "digitus" which means "finger or
"number. Since people formerly just used their fingers for counting, the term "digital"
simply means "related to figures".
NOTE:
In digital technology, all signals must therefore be understood as number!
1.2
Types of signals
1.2.1
Analogue signals
Analogue signals may take any intermediate values within their technical limits (range).
Examples:
1.2.2
Digital signals
Digital technology operates almost exclusively with binary signals. Only two different
values may be assumed ("0" or "1").
Examples:
1.3
1.3.1
Bit
Binary digital
The signal change from 0 -> 1 or from 1 -> 0 contains the information (Information
quantity) of 1 bit.
NUMBER SYSTEMS
2.1
Representation of numbers
Task:
Draw circles around identical quantities and allocate a defined symbol to every quantity.
Solution:
Different quantities are expressed by different "numbers".
A digit is the symbol for a defined quantity. Yet, since a quantity may be of any desired
value one would need also any desired number of symbols (digits) for it to be clearly
recognized.
This will not be necessary as soon as larger quantities are systematically bundled. Digits
which represent quantitative bundles must be specially identified to allow their
differentiation. This is done by the spatial position of the digit.
2.2
Decimal System
Task:
Bundle this quantity to packages of ten, allocate symbols and determine the total quantity:
Solution:
In everyday life, the decimal system is used. It is based on the 10. In every position of a
number ten different conditions are possible, namely, the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and
9. Additionally, each position is allocated to a value (weight), for example, units, tens,
hundreds, etc.
2.2.1
Decimal System
Basis 10
Numbers (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
Example:
NOTE:
In the decimal system, the total quantity is calculated from the sum of the products of
digits and positional values.
For the representation of numbers, other basic digits may be used as well. The procedure
is the same as for the decimal system.
2.2.2
System of five:
Basis 5
Numbers (0, 1, 2, 3, 4)
Example:
2.2.3
Octal system
Basis 8
Numbers (0, 1, 2, 3, 4, 5, 6, 7)
Example:
2.2.4
Hexadecimal system:
Basis 16
10
Example:
2.2.5
Dual system
(Latin "duo" = 2)
In the dual system, the Basis digit is 2. Only the binary digits 0 and 1 are needed. It is the
ideal system to be used in electronic equipment as there are only two logical states to
which the two possible digits are allocated.
Example:
The configuration of a multi-digit, number is done according to the same laws that govern
the decimal system.
11
2.2.6
Task:
Continue the dual numbers until 49:
Solution:
There are procedures which are used to convert decimals Info dual numbers, and vice
versa.
12
2.2.7
The decimal is continually divided by 2 (division procedure). The rest (0 or 1), read from
left to right, is the dual number.
Decimal 47
Examples:
1. Decimal 53
2. Decimal 56
13
3. Decimal 84 =
4. Decimal 103 =
5. Decimal 128 =
2.2.8
The decimals behind the comma are continually multiplied by 2 (multiplication procedure)
until the value becomes greater than 1.
A value < 1 is expressed by "0".
A value > 1 is expressed by "1" which is then always subtracted from the product.
Decimal 0.65625 =
14
Examples:
1. Decimal 0,321 =
2. Decimal 0,125 =
3. Decimal 0,034 =
4. Decimal 0,5 =
5. Decimal 0,25 =
15
2.2.9
The conversion procedure for decimals into dual is inverted. Instead of dividing by 2 it is
now multiplied by 2. Starting from left, the first digit of the dual number is multiplied by 2,
then the next digit (0 or 1) is added, and the total again multiplied by 2.
Examples:
1.
2.
16
3.
4.
5.
6.
17
The dual digits behind the comma are continually divided by 2, starting from right to left.
The dual digit before the comma is always added.
Dual 0,10101 =
Examples:
1. Dual 0.001 =
18
3. Dual 0,01
4. Dual 0,01011
5. Dual 0,1011
19
Calculating in the dual system follows the same rules as for the decimal system. As there
are only two dual digits these rules are particularly simple. The tour fundamental
operations can be carried out on the basis of one addition procedure.
3.1
Addition
20
Examples:
1.
2.
21
3.
4.
22
5.
6.
23
7.
8.
24
3.2
Multiplication
25
It happens quite frequently that several units (1) have to be added to form a sum. This will
result in several units (1) to be carried over to the next higher dual number.
Examples:
1.
26
2.
3.
27
4.
5.
28
6.
Especially for larger multiplications it may become difficult to perform by straight binary
coding addition.
The procedure is facilitated if a partial product is formed.
29
Example:
7.
30
3.3
Subtraction
31
Examples:
1.
2.
32
3.
4.
33
3.4
Division
Divisions are performed on the basis of individual subtractions. The divisor is subtracted
from a digit of the dividend which must be great enough to give 0 as a result. The next
lower digit of the dividend is then pulled down to the resulting difference and divides again
by the divisor.
Dividend: divisor quotient
Examples:
1.
34
2.
3.
4.
35
5.
3.5
NOTE:
The complement of a number is the supplement of this number to any other desired
number.
3.5.1
Decimal system
Nines complement:
Here, every decimal digit is completed to the next high decimal digit 9 - which is called a
"nines complement".
36
As the nines complement is always less by 1 than the tenths complement, that 1 must be
added after the addition of the complement in order to obtain a correct result.
Nines complement of 17 = 82
3.5.2
Dual system
As there are only 2 dual digits for each dual number (0, 1), completion towards the highest
dual digit is as simple as it can be.
For 0 -> 1 (0 + 1 = 1)
For 1->a0 (1 + 0 = 1)
NOTE:
Only one inversion needs to be carried out. Analogously to the nines complement this is
called "ONE'S COMPLEMENT".
37
3.6
One's complement
The one's complement of a binary digit is obtained by negating the individual dual
numbers
38
Theoretical Test
39
DIGITAL TECHNIQUE 1
TEST 1
4. Convert the decimal number 156.33 into a dual number with four decimals after the
comma.
5. Convert the dual number 1000111, 0110011 into a dual number with four decimals
behind the comma.
40
8. Multiply the following binary number and write the carries when making the additions.
1011 . 1101
10. Subtract the following binary numbers using the one's complement:
110111
- 1000
14. Convert the decimal number 253.77 into a binary number with 4 decimals behind the
comma.
15. Convert the binary number 101100.101 into a decimal number with 3 decimals behind
the comma.
16. Add the following binary number and write the carries:
11011011
+ 10111101
17. Subtract the following binary number and write the borrowers:
1111001
- 1011101
41
18. Multiply the following binary number and write the carries when making the addition:
1101 . 1011
20. Subtract the following binary number using the one's complement:
111010
- 10000
42
DIGITAL TECHNIQUE 1
TEST 1
(Solution)
1. It is calculated from the sum of the products of digits and positional values.
2.
3.
4.
5.
43
6.
7.
8.
9.
10.
44
12.
13.
14.
15.
45
16.
17.
18.
19.
20.
46
KEY TO EVALUATION
PER CENT
MARK
88 100
75 87
62 74
50 61
0 49
47