Week1 Lecture Chapter1
Week1 Lecture Chapter1
COMPOSITION
Course Information
Base or radix is 10
Ten characters(0, 1, 2, 3, 4, 5, 6, 7, 8, 9 )
The weights are powers of 10.
n
XnXn- 1…X1X0X- 1…X- m =
im
X i 10 i
1.1.1.1 Decimal Number
9
n
XnXn- 1…X1X0X- 1…X- m =
im
X i 10 i
1.1.1.1 Decimal Number
10
Base or radix is 2
Two characters(0, 1)
The weights are powers of 2.
1.1.1.2 Binary Number
12
1.1.1.3 Octal Number
13
Base or radix is 8
Eight characters(0, 1, 2, 3, 4, 5, 6, 7)
The weights are powers of 8.
1.1.1.3 Octal Number
14
1.1.1.4 Hexadecimal Number
15
Base or radix is 16
Sixteen characters(0, 1, 2, 3, 4, 5, 6,
7,8,9,A,B,C,D,E,F)
The weights are powers of 16.
1.1.1.4 Hexadecimal Number
16
1.1.2 Number Conversion
17
Integral part:
Step 1: Divide the decimal number by the radix
(number base).
Step 2: Save the remainder (first remainder is the least
significant digit).
Step 3: Repeat steps 1 and 2 until the quotient is zero.
1.1.2.2 Conversions from Decimal Numbers
23
1.1.2.2 Conversions from Decimal Numbers
24
1.1.2.2 Conversions from Decimal Numbers
25
1.1.2.3 Conversion between Hexadecimal
and binary numbers
26
27
1.1.2.3 Conversion between Hexadecimal
and binary numbers
28
0-9, 30H-39H
A-Z, 41H-5AH
a-z, 61H-7AH
1.3 Basic arithmetic operations
39
Arithmetic Operation
1.3.1 Operation of Binary
41
Binary addition
1.3.1 Operation of Binary
42
Binary subtraction
1.3.1 Operation of Binary
43
Binary multiplication
1.3.1 Operation of Binary
44
Binary division
1.3.1 Operation of Binary
45
Logical operation
1.3.1 Operation of Binary
46
Gates
1.3.1 Operation of Binary
47
Bit(0 or 1)
Byte(8 bits)
Word(16 bits)
Double word(32 bits).