Professional Documents
Culture Documents
Course Introduction,
Number Systems,
Conversion between Bases,
and
Basic Binary Arithmetic
(Lecture #1)
Course Introduction
(see syllabus)
2
Numbers
3
52
4
1011001.101
5
Number Systems
6
Number Systems
R is the radix or base of the number system
Must be a positive number
R digits in the number system: [0 .. R-1]
7
Number Systems
Positional Notation
D = [a4a3a2a1a0.a-1a-2a-3]R
D = decimal value
a i = ith position in the number
R = radix or base of the number
D = an x R4 + an-1 x + + a0 x
R3 R0
Example:
Binary Addition
0 0 1 1
+ 0 + 1 + 0 + 1
0 1 1 10
Carry Sum
Sum
Examples:
Binary Subtraction
Borrow
0 10 1 1
- 0 - 1 - 0 - 1
0 1 1 0
Difference
Examples:
0 0 0 0 0 0 0
0 1 0 1 0 1 1
1 0 0 1 1 0 1
1 1 1 0 1 1 0
0 0 1 1
x 0 x 1 x 0 x 1
0 0 0 1
Product
Examples:
10110001 00111100
x 01101101 x 10101100
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=8&cad=
rja&uact=8&ved=0ahUKEwiZkrSmyaHPAhWEax4KHaQsAvYQFghKMAc&url
=http%3A%2F%2Fece.gmu.edu%2F~clorie%2FSpring10%2FECE-
301%2FLectures%2FLecture_1.ppt&usg=AFQjCNEW0PgAMvRS-
WiuK_KbEd5bpEIPIw&sig2=7npfl__kS8XINE3y-JkZcA
References: