Professional Documents
Culture Documents
Number Systems and Digital Devices
Number Systems and Digital Devices
Microprocessor &
Assembly Language
Decimal 10 0, 1, … 9 Yes No
Hexa- 16 0, 1, … 9, No No
decimal A, B, … F
4
Base
Quick Example
Assembly Language
Weight
12510 => 5 x 10 0 = 5
2 x 10 1 = 20
1 x 10 2 = 100
Base
6
Quantities/Counting (1 of 3)
Hexa-
Decimal Binary decimal
0 0 0
1 1 1
Multiplexers
◦ Minuend 10110
◦ Subtrahend - 10010
◦ Difference 00100
.
13
Hexadecimal (Hex)
Numbering System
• Base: 16
• Digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
= (1 x 16 2 ) + (F x 16 1) + (4 x 160)
Hexadecimal (Hex)
Extra Digits
Assembly Language
Binary to Decimal
Decimal Octal
Hexadeci
Binary
mal
17
1010112 => 1 x 20 = 1
1 x 21 = 2
18
Hexadecimal to Decimal
Decimal Octal
19
Example
ABC16 => C x 16 0 = 12 x 1 = 12
20
Decimal to Binary
Decimal Octal
21
Example
12510 = ?2 2 125
2 62 1
2 31 0
2 15 1
2 7 1
12510 = 1111101 2
22
Hexadecimal to Binary
Decimal Octal
23
Example
10AF16 = ?2
1 0 A F
10AF16 = 00010000101011112
24
Decimal to Hexadecimal
Decimal Octal
25
Example
123410 = ?16
16 1234
16 77 2
123410 = 4D2 16
26
Binary to Hexadecimal
Decimal Octal
27
Example
1010111011 2 = ?16
10 1011 1011
1010111011 2 = 2BB 16 28
Exercise – Convert ...
Hexa-
Decimal Binary decimal
33
Don’t use a
calculator!
29
Basic Digital Devices
• Latch
• Flip Flop
• Register
• RAM
30
Latch
• What is a Latch?
A latch is a circuit that has two stable states and can
31
Latch
Assembly Language
Flip Flop
• What is a Flip Flop?
• flip-flop is a bistable multivibrator. The circuit
can be made to change state by signals applied
to one or more control inputs and will have one
33
Register
• What is a Register?
34
RAM
• Random Access Memory (RAM)
• SRAM
• Static RAM
• DRAM
35
Static & Dynamic RAM
● Static RAM (SRAM) and Dynamic RAM (DRAM) are two
types of RAM.
● They both are different in many contexts like speed,
capacity.
● DRAM makes use of single transistor and capacitor for
37
ALU
Arithmetic and Logic Unit
➢ ALU is the part of a computer processor (CPU)
that carries out arithmetic and logic operations
38
Reference Book
- Douglas V. Hall, “Microprocessors and