Professional Documents
Culture Documents
Introduction To Digital Concept
Introduction To Digital Concept
DIGITAL CONCEPT
ANALOGUE AND DIGITAL
Learning outcomes (LO)
◦ Define analogue and digital concepts.
◦ Compare differentiation between analogue and
digital signal .
ANALOGUE AND DIGITAL
Analogue is a system that deals with
continuous varying quantities such as
voltage, temperature, pressure, velocity. Most
quantities in nature occur in analogue,
yielding an infinite number of different levels.
ANALOGUE AND DIGITAL
ANALOGUE AND DIGITAL
Examples
Mercury-filled tube thermometer.
A baseball player swings a bat in an analogue motion.
Velocity and force with which a musician strikes a
piano key.
ANALOGUE AND DIGITAL
Digital refers to a system that deals with
discrete digits or quantities. Digital
electronics deals exclusively with 1s and 0s,
or ONs and OFFs. Digital codes such as ASCII
are then used to convert the 1s and 0s to a
meaningful number, letter or symbol for
some output display.
ANALOGUE AND DIGITAL
ANALOGUE AND DIGITAL
Examples
Compact disks (CD)
Digital audio tapes (DAT’s)
Digital watch
ANALOGUE AND DIGITAL
Analogue Signal
Higher quality than digital if noise does not interface.
Can also receive the information.
Complexity of circuit design.
Expensive equipment and larger size.
Digital Signal
Immune to noise
Flexibility storage
Either 1’s or 0’s only.
Easy to design.
Cheaper equipment and smaller size.
NUMBERING SYSTEM
Learning outcomes (LO)
◦ Understand basic numbering system format.
Binary (base-2)
◦ Used widely in Digital Technologies. E.g. 000, 001, 010,
011, 100 etc
◦ There is a need to convert the binary and decimal
interchangeably in our current digital technology
Type of numbering system
Octal (base-8) & Hexadecimal (base-16)
◦ as ‘shorthand’ to represent binary value as it is not
practical to list out or remember the long sequence of
binary digits.
Octal
◦ Base 8 number system i.e. 8 digit symbols – 0, 1, 2, 3, 4,
5, 6, 7
◦ Weight based on position (8 to the power of its
positional value) as follows:
84 83 82 81 80 · 8-1 8-2 8-3
Type of Numbering System
Hexadecimal
◦ Base 16 number system i.e. 16 digit symbols – 0, 1,
2 …8, 9, A, B, C, D, E, F
Decimal Binary
◦ 2 ways:
Reverse the above process
Repeated division
Conversion
Reverse process
◦ 7610 = 26 + 0 + 0 + 23 + 22 + 0 + 0 = 1001100 2
◦ 3910 = Try this!
Counting Range
◦ For N bits – can count up to 2N different decimal
numbers ranging from 0 to 2N – 1
= 20.75
= 25010 = 20
Octal Binary
◦ Group the binary number into 3 digits according to
the value of each octal digit. Refer table below:
Octal 0 1 2 3 4 5 6 7
Binary 000 001 010 011 100 101 110 111
Conversion
Example:
4728 = 4 7 2 Convert the following into
? ? ? binary digits:
100 111 010 2618
54318 = 5 4 3 1
? ? ? ? 7358
101 100 011 001
◦ E.g. calculation:
1D216 = 1 x 162 + 13 x 161 + 2 x 160 = 46610
ADF16 = Try this!
Decimal Hex
◦ Repeated division by 16 (the same as the binary
repeated division by 2). Obtain the remainder (least
15 = F) until the quotient is 0
Conversion
E.g. Calculation
◦ Convert 12310 to hex
◦ e.g. calculation
2F16 ??
BA616 ??
Conversion
Binary Hex
◦ Reverse the process above – grouping into 4-bits
and converts each group-bits to its respective hex
number.
A6 A5 A4 A3 A2 A1 A0
1 1 1 0 1 0 0 = -5210
? Magnitude = 5210
Sign bit (-)
A6 A5 A4 A3 A2 A1 A0
◦ For1 - 45100 1 0 0 1 1
? Magnitude = 4510 (2’s complement)
Sign bit (-)
1010011 = -4510
Addition in 2’s Complement System
Case 1: Two positive numbers
◦ Consider the addition of +9 and + 4
+9 0 1001 (augend)
+4 0 0100 (addend)
+13 0 1101 (sum = +13)
Case 2: Positive
+9 number
0 and
1001 smaller negative number
◦ Consider the–4
addition1 of 1100
+9 and –4
+5 1 0 0101
Addition in 2’s Complement System
Case 3: Positive number and larger negative number
◦ Consider the addition of –9 and +4
–9 1 0111
+4 0 0100
–5 1 1011
–9 1 0111
+9 0 1001
0 1 0 0000
Subtraction in The 2’s Complement
System
The number subtracted (subtrahend) is
negated