## Why Computer Use Binary Number System ?

### Binary Number System | Instruction Set Architecture

In order to understand why computer use binary number system, we need toÂ  first understand the computer system architecture and the CPU micro-architecture.

All of us know that computer understands the language of only two numbers that is Binary 0 ( zero ) and 1 ( one ) . Â The binary number system Â is a base 2 number systemÂ  that uses only two numbers 0 and 1 to represent any number.

You may be Â wondering , why computer use binary number system instead of using human friendly decimal number system which we are all familiarÂ  and commonly use it in our daily life. Â

It is a legitimate question to ask why computer understands and execute Â programs only in binary machine code. It is also the most important and commonly asked questions in the technical interview.

In this article , we are going to discuss the reasons why computer use only binary number system in detail . And the answer to this question lies in the computer system architecture.

## Why Computer Use Binary Number System ?

The computer system use binary number system due to computer system architecture and the micro-architecture of the processor chip.

In order to understand the technical reasons why computer understands only binary ( 0 and 1 ) , we need to first study computer system architecture .

The microprocessor ( CPU ) Â functions as a brain of the computer system . The processor chip is designed Â to implement the Â micro-architecture which defines the set of binary operations supported by the CPU.

Further , the computer programs are also required to be converted to binary machine code that computer processor can directly interpret and execute .

Let us now discuss, each of these topic in detail to understand , why computer use binary number system at the hardware level.

## Why Computer System Is Called A Digital Device ?

The modern computer Â has evolved over a period of last few decades . However , Â despite major advancements in the computer technology , the computer use program instructions in binary to perform any task at the hardware level.

The computer system is an electronic device that can be programmed to perform user specified operations . However , the computer system needs to be directed by using a set of instructions called program in binary code.

The computer system consists of both software and hardware components . Â The software provides a set of program instructions to perform any task.

## What Is Binary Number System ?

In mathematics Â a binary number is used to represent any Â number using only two numerical numbers that is 0 and 1 . And therefore , the binary number system is said be a base 2 number system.

The binary numberÂ  system is extensively used in the field of digital electronics due to ease of Â its straight forward implementation . The computer system is also an digital electronic device.

In digital electronics , it becomes very easy to define two states ON and OFF using binary . The number 1 is used to indicate ON whereas the number 0 represents OFF state.

## Why Computer Program Needs To be Converted To Binary ?

The computer system consist of both software and hardware components . Â The software is a computer program designed to solve a specific problem .

The computer programs are written by using a human friendly high level programming language such as C , C++ , Java , Python and so on.

The computer system is a digital electronic device that can interpret and execute only machine code instructions in binary .

However , writing a program code in binary is not only Â difficult but also confusing because the program code in binary consist of patterns only two numbers that is 0 ( zero ) and 1 ( one ).

And therefore , theÂ  computer programs are written using any high level programming language such as C , C++ , Java And Python. These programming languages Â offer much easier interface similar to English language.

So , it doesnâ€™t really matter which high level programming language you choose to write the program because eventually, all high level programs are required to be converted to binary code by using a special program called compiler.

During the program compilation process the high level programs are first concerted by the compiler into machine code in binary that can be directly executed by the computer processor ( CPU ).

## Computer System Architecture

In order to understand the reasons why computer use only binary code , we need to first understand the computer system architectureÂ  and also the micro-architecture of the central processing unit ( CPU ).

It is the CPU that provides the processing power to the computer system and executes the program to perform any task .

## Microprocessor Architecture

The central processing unit ( CPU ) is the brain of the computer system which controls all the components , CPU operations and the program execution.

The software consist of set of program instructions executed by the CPU which directs the computer system to perform the desired operations.

The Microprocessor chip ( CPU ) Â internally consist ofÂ  millions ofÂ  Integrated Circuits ( IC ) packed in a processor chip . This technology is referred as very large scale integration used in the processor chip.

Each integrated circuit inside the processor chip consists of millions of Â tiny component called transistor . The transistor is a fundamental building block for all microprocessor chips .

## Microprocessor Architecture And Binary Number System

The transistor is made up of silicon which is a semi conductor material. The transistors Â inside the Â CPU function as a micro-switch that can be programmed to be either switched ON or switched OFF state.

When the transistor is in ON state, it represents the binary number 1 ( one ) and when the transistor is in OFF state , it represents the binary number 0 ( zero ).

And for this reason, the microprocessor ( CPU ) within a computer system can be programmed to execute program instructions in binary. The CPU can interpret the machine code instructions in binary .

## Microprocessor Instruction Set Architecture ( ISA )

Each microprocessor chip implements aÂ  micro-architecture Â called as Instruction Set Architecture ( ISA ). The ISA defines the set of commands in binary which processor chip supports.

The processor manufacturing companies design the processor chip based on specific Instruction Set Architecture ( ISA ). During the manufacturing process the ISA micro architecture is implemented by embedding these set of commands right into the processor chip.

The microprocessor can DECODE Â the program instructions as per the instruction format andÂ  corresponding operation code ( OPCODE ) and operate on the data ( OPERAND ) to perform the desired operation.

And therefore , due to this architectural constrains, the processor inside a computer can interpret and execute only binary commands.

## Why Computer Use Binary Number System ?

CONCLUSION

The Computer use binary number system because the processor inside the computer can execute only binary commands.

The microprocessor chip implements a micro architecture in terms of Instruction Set Architecture ( ISA ). The ISA is a set of binary commands that processor chip supports and these commands are hardwired into the processor chip.

The microprocessor is the main component in a computer system executes the program and performs operations as per the ISA. And for this reason Â the Computer use binary number system.

Join The Best Seller

## Learn Computer Science And Programming Fundamentals

This is the most comprehensiveÂ  and uniqueÂ  Computer ScienceÂ  And Programming Fundamentals course Online which will give you in depth understanding of most important fundamental concepts in computer science And Programming .

Sharing is caring!

Don`t copy text!