How microprocessors work?
December 5, 2020
What is digital code?
December 5, 2020
Show all

What is binary code?

As electricity moves through the circuits in the computer, millions of tiny switches are turned on and off. The computer reads a code of zeros and ones. Think of the code as switches in a line. The ones are switches that are turned on, the zeros are switches that are turned off.

The code is called digital. Because it uses only two numbers in different patterns, it is also called binary code. When you type an A on the keyboard, the computer stores the A in its memory as 01000001. Each time you click the mouse, or press a key, it is changed to binary code and stored in the computer’s memory.

It’s not only numbers and text — binary is used for the most complex data. From images to video frames, at the most granular level of the data, it is binary code.

For example, an image is built up of hundreds of thousands of pixels, with each pixel containing an RGB value stored in binary code.

These binary codes fill RGB and according to the intensity generated from those codes, the intensity numbers are thrown at a video driver program. That program distributes those colors to the million crystals on your screen — and an image is seen by us!

 

Picture Credit : Google

Comments are closed.