Unit 1 - Microprocessor
Unit 1 - Microprocessor
Number System
• Computer treats everything in binary number.
Characteristics of any Number System are
• Base/Radix = number of digits in the system
• Four major of number systems are:
1. Decimal number system
2. Binary number system
3. Octal number system
4. Hexadecimal number system
Decimal number system Binary number system
• In decimal system, base is10 and 10 symbols (0-9) • The binary number system is a
are used. positional weighted system.
• The decimal number system contain ten unique • The base or radix of this number
digits: 0,1,2,3,4,5,6,7,8 and 9. system is 2 e.g. (10101)2
• e.g. (1245)10 • The symbols used are 0 and 1.
• The value attached to the symbol depends on its • A single binary digit is called a bit.
location with respect to the decimal point.
Example-3
Decimal to Binary Number
Example-1
Example-2
Example-3
Example-1
Example-2
Example-1
Example-1
Example-1
Practice Questions on Number System
Practice Questions
Convert the following numbers into corresponding number system
1. (A28.1F)16 = ( )10
2. (378.10)10 = ( )8
3. (431.6110)8 = ( )16
4. (1011000111)2= ( )GRAY CODE
5. (B65.6A)16 = ( )8
6. (101011.1001)2 = ( )16
7. (306.12)10 = ( )16
8. (101011.11)8= ( )2
9. 63 10 = ? 16
10. (001011100010100)2 = (? )16
11. 14 8 = ? 2
12. (𝐹4)16 = (? )2
Example-1
Example-1
Example-1
Example-1
Example:
Example:
LOGIC GATES
• Logic gates are the fundamental building blocks of digital
systems.
• There are 3 basic types of gates AND, OR and NOT.