Site icon ComputerKnowledge

Components of Computer (Input, Output, CPU & Memory)

A computer is an electronic device that accepts data, performs operations, displays results, and stores the data or results as needed. It is a combination of hardware and software resources that integrate and provide various functionalities to the user.

Here are the main components of computer:

1. Input Unit:

The input unit consists of input devices that are attached to the computer. These devices take input and convert it into binary language that the computer understands. Some of the common input devices are keyboard, mouse, joystick, scanner etc.

2. Central Processing Unit:

The CPU (Central Processing Unit) is the brain of the computer because it controls everything the computer does. When you enter information using an input device, the CPU processes it. First, it fetches instructions from memory, then decodes them to understand what needs to be done. If needed, it retrieves data from memory or an input device. After that, the CPU executes the task and either stores the result or displays it on an output device. The CPU has three main parts: the Arithmetic Logic Unit (ALU), which handles calculations and logic; the Control Unit (CU), which directs operations; and Memory Registers, which store temporary data.

A. Arithmetic and Logic Unit (ALU)The ALU, as its name suggests performs mathematical calculations and takes logical decisions. Arithmetic calculations include addition, subtraction, multiplication and division. Logical decisions involve the comparison of two data items to see which one is larger or smaller or equal. 

B. Control Unit: The Control unit coordinates and controls the data flow in and out of the CPU, and also controls all the operations of ALU, memory registers and also input/output units. It is also responsible for carrying out all the instructions stored in the program. It decodes the fetched instruction, interprets it and sends control signals to input/output devices until the required operation is done properly by ALU and memory.

C. Memory Registers: A register is a small, temporary memory inside the CPU. The processor uses it to store data that it is currently working on. Registers come in different sizes, such as 16-bit, 32-bit, and 64-bit, and each has a specific role. Some store data, some store instructions, and others hold memory addresses.

For example, the Accumulator (ACC) is an important register in the CPU. It holds one of the values used in calculations inside the Arithmetic and Logic Unit (ALU).

Apart from registers, the internal memory (also called primary memory or main memory) is where data and instructions are stored temporarily while a program runs. This memory is called RAM (Random Access Memory). Every piece of data in RAM is stored at a unique location with an address, so the processor can access it quickly without searching the entire memory. Since RAM provides direct access to any data location, it is called Random Access Memory.

3. Output Unit : 

The output unit consists of output devices that are attached to the computer. It converts the binary data coming from the CPU to human understandable form. The common output devices are monitor, printer, plotter, etc.

also read about:
hardware
software
artificial intelligence
cybersecurity

Exit mobile version