0% found this document useful (0 votes)
14 views7 pages

Computer Processing Operations Explained

The document discusses the basic functions of a computer: input, storage, processing, output, and control. It explains that computers use binary to represent data internally, storing information as bits that are either 0 or 1. The document also covers different number systems used in computing like binary, octal, decimal, and hexadecimal, explaining how values are represented in each system using a base and set of digits. It defines important terms like bit, byte, word, and discusses how many values can be represented using a certain number of bits.

Uploaded by

Priyank Rathore
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views7 pages

Computer Processing Operations Explained

The document discusses the basic functions of a computer: input, storage, processing, output, and control. It explains that computers use binary to represent data internally, storing information as bits that are either 0 or 1. The document also covers different number systems used in computing like binary, octal, decimal, and hexadecimal, explaining how values are represented in each system using a base and set of digits. It defines important terms like bit, byte, word, and discusses how many values can be represented using a certain number of bits.

Uploaded by

Priyank Rathore
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

st

processing
A computer as shown in Fig. 2.1 performs basically five major operations or functions irrespective of
their size and make. These are 1) it accepts data or instructions by way of input, 2) it stores data, 3) it can
process data as required by the user, 4) it gives results in the form of output, and 5) it controls all operations
inside a computer. We discuss below each of these operations.

1. Input: This is the process of entering data and programs in to the computer system. You should know
that computer is an electronic machine like any other machine which takes as inputs raw data and
performs some processing giving out processed data. Therefore, the input unit takes data from us to the
computer in an organized manner for processing.

Fig. 2 Basic computer processing

2. Storage: The process of saving data and instructions permanently is known as storage. Data has to be
fed into the system before the actual processing starts. It is because the processing speed of Central
Processing Unit (CPU) is so fast that the data has to be provided to CPU with the same speed. Therefore
the data is first stored in the storage unit for faster access and processing. This storage unit or the

21
primary storage of the computer system is designed to do the above functionality. It provides space for
storing data and instructions.

The storage unit performs the following major functions:


• All data and instructions are stored here before and after processing.
• Intermediate results of processing are also stored here.

3. Processing: The task of performing operations like arithmetic and logical operations is called
processing. The Central Processing Unit (CPU) takes data and instructions from the storage unit and makes
all sorts of calculations based on the instructions given and the type of data provided. It is then sent back to
the storage unit.
4. Output: This is the process of producing results from the data for getting useful information.
Similarly the output produced by the computer after processing must also be kept somewhere inside the
computer before being given to you in human readable form. Again the output is also stored inside the
computer for further processing.
5. Control: The manner how instructions are executed and the above operations are performed.
Controlling of all operations like input, processing and output are performed by control unit. It takes care of
step by step processing of all operations in side the computer.

Data representation.

The basic building block of personal computers is the transistor. A transistor is an electronic device for
controlling the flow of electrons in an electrical circuit. If electrons are allowed to flow, the circuit is on;
conversely, if electrons are not allowed to flow, the circuit is off. Thinking of a transistorized circuit as a
switch like a light switch at a home. The switch is either on or off and stays that way until it is flipped again.
When a circuit is on, we say it is in the marking state and assign a 1 to it. Conversely, when it is off, we
assign a 0 to it.
A modern digital computer is often said to be a binary computer because its most basic circuits can
remember either one of two states: 0 and 1. The binary digits 0 and 1 are called bits. Both the internal and
external memory of computer are nothing more than store-houses for bits.

Numbers systems.
The number systems that we discuss here are based on positional number systems. The decimal number
system that we are already familiar with is an example of a positional number system. In contrast, the Roman
numeral system is not a positional number system. Every positional number system has a radix or base, and

22
an alphabet. The base is a positive number. For example, the decimal system is a base-10 system. The
number of symbols in the alphabet is equal to the base of the number system. The alphabet of the decimal
system is 0 through 9, a total of 10 symbols or digits. There are four number systems that are relevant in the
context of computer systems and programming. These are the decimal (base-10), binary (base-2), octal (base-
8), and hexadecimal (base-16) number systems.

Note Computers internally use the binary system. The remaining two
number systems —octal and hexadecimal —are used mainly for
convenience to write a binary number even though theyare number
systems on their own. We would have ended up using these number
systems if wehad 8 or 16 fingers instead of 10.

System Base Digits Binary


Binary 2 01 0 0000
Octal 8 0 1 2 314 5 6 7 0001
Decimal 10 0 1 2 324 5 6 7 8 90010
Hexadecimal 16 0 1 2 334 5 6 7 8 90011
ABCDEF
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111

23
In a positional number system, a sequence of digits is used to represent a number. Each digit in this
sequence should be a symbol in the alphabet. There is a weight associated with each position. If we count
position numbers from right to left starting with zero, the weight of position n in a base b number system is
bn. For example, the number 579 in the decimal system is actually interpreted as

(Of course, 100=1). In other words, 9 is in unit’s place, 7 in 10’s place, and 5 in 100’s
place.

Binary System:

The key to understanding computers is the binary number system. The binary number system has only
two digits: 0 to 1. Just as decimal notation is based on places that represent powers of ten, binary notation is
based on power of two. For example, the decimal number 537 is really the sum of powers of ten:
537= (5×102) + (3×101) + (7×100)
= (5×100) + (3×10) + (7×1)
= 500 + 30 + 7 = 537

Binary numbers are sums of powers of two in the same way that decimal numbers are sums of powers
of ten. The following table shows the decimal numbers represented by some of more important powers of two
in personal computing:

2-2 = 0.25
2-1 = 0.5

20= 1
21= 2

22= 4
23= 8
24= 16
25= 32
26= 64
24
27= 128
28= 256
216 = 65.536
220 = 1.048.576
224 = 16.777.216

A binary number is a string of 1s and 0s, each indicating the presence or absence of a power of two.
For example, consider the binary number 101. This number is converted to its decimal equivalents as follows:
binary number 0 0 0 0 0 1 0 1 power
of two 7 6 5 4 3 2 1 0 decimal
number 0 0 0 0 0 4 0 1

101 binary = (1×22) + (0×21) + (1×20)


= (1×4) + (0×2) + (1×1)
= 4 + 0 + 1 = 5 decimal

Thus, 101 is the binary number representation of the decimal number 5. In a binary number such 101.1
the fractional number part is a sum of negative powers of 2. For example, 101.1 binary is converted to its
decimal equivalent as follows:

101.1 binary = (1×22) + (0×21) + (1×20) + (1×2-1)


= (1×4) + (0×2) + (1×1) + (1×(1/2))
= 4 + 0 + 1+ 1/2 = 5.5 decimal

Keep in mind that computers work exclusively with binary numbers because they can store only
either a 1 or a 0. To do arithmetic and word processing they must convert from binary to decimal and back
again.
In the binary system, using n bits, we can represent numbers from 0 through (2n-1) for a total of 2n different
values. We need m bits to represent X different values, where

for example, 150 different values can be represented by using

25
In fact, using 8 bits, we can represent 28=256 different values (i.e., from 0 through 255).

6- Basic Terms and Notation.


The alphabet of computers, more precisely digital computers, consists of 0 and 1. Each is called a bit,
which stands for the binary digit. The term byte is used to represent a group of 8 bits. The term word is used
to refer to a group of bytes that is processed simultaneously. The exact number of bytes that constitute a word
depends on the system. For example, in the Pentium, a word refers to four bytes or 32 bits. We use the
abbreviation “b” for bits, “B” for bytes, and “W” for words. Sometimes we also use doubleword and
quadword. A doubleword has twice the number of bits as the word and the quadword has four times the
number of bits in a word.

2-bit  2^2 = 4 possible states (00, 01, 10, 11)


3-bit  2^3 = 8 possible states (000, - - -, 111)
8-bit 2^8 = 256 possible states (00000000, - - - , 11111111)

Bits in a word are usually ordered from right to left, as you would write digits in a decimal number. The
rightmost bit is called the least significant bit (LSB), and the leftmost bit is called the most significant bit
(MSB).
We use standard terms such as kilo (K), mega (M), giga (G), and so on to represent large integers.
Unfortunately, we use two different versions of each, depending on the number system, decimal or binary.
Table 1 summarizes the differences between the two systems. Typically, computer-related attributes use the
binary version. For example, when we say 128 megabyte (MB) memory, we mean 128×2 20 bytes. Usually,
communication-related quantities and time units are expressed using the decimal system. For example, when
we say that the data transfer rate is 100 megabits/second (Mb/s), we mean 100×106 Mb/s.

26
Table 1 Terms to represent large integer values

27

Common questions

Powered by AI

Conversion from binary to decimal involves summing the powers of two corresponding to each '1' bit in the binary sequence. For example, binary '101' converts to decimal by applying powers of two: (1×2²) + (0×2¹) + (1×2⁰) = 4 + 0 + 1 = 5. Conversely, to convert decimal to binary, the number is repeatedly divided by two and remainders tracked. This conversion is critical for computers, as it bridges human-readable decimal data and machine-processable binary formats, allowing for accurate computation and processing internally .

The binary system, foundational for modern computers, uses two states represented as '0' and '1', facilitating simple and effective data representation and storage. These binary digits, or bits, function as the basic unit of data in computing. Both internal and external memory storehouses operate using bits. Transistors, the building blocks of computers, toggle between the on (1) and off (0) states. This binary state management allows for direct mapping of data into forms that computers can process. Consequently, binary serves as a universal language for machine instructions and user data across computing systems .

Control units manage the execution of instructions and synchronization of operations in a computer, ensuring efficient processing of data. They regulate the flow of data between the CPU, memory, and peripherals, directing the step-by-step workings of the system. This orchestration is crucial for maintaining order in data processing tasks, handling interruptions, and managing timing to prevent conflicts and crashes, ultimately ensuring a system operates smoothly and efficiently .

Hexadecimal (base-16) and octal (base-8) systems provide concise notation for binary numbers, reducing complexity in reading long binary sequences. One hexadecimal digit maps directly to four binary bits, and one octal digit to three, making conversions swift and less error-prone. This efficiency aids programmers and engineers in working with binary data, simplifying addressing, computation, and debugging in programming environments, which rely on brevity and clarity for complex system development and maintenance .

Primary storage, or main memory, is volatile and fast, designed for immediate access by the CPU for ongoing processing tasks. It stores data and instructions temporarily and directly influences computing speed due to its accessibility. In contrast, secondary storage like hard drives or SSDs is non-volatile, retaining data even when power is off, used for long-term data storage. While slower, it provides larger capacity for data storage compared to primary storage, optimizing system performance by balancing capacity and speed .

A computer performs five primary functions: input, storage, processing, output, and control. Input involves entering data into the system for processing. Storage involves saving input data and instructions in the storage unit before processing starts, as the CPU processes data much faster than humans can input it. Processing entails the CPU performing arithmetic and logical operations based on stored data and instructions, sending results back to storage. Output involves presenting processed data in a usable form, typically after being stored for post-processing activities. Finally, the control function manages all these operations, ensuring input, processing, and output operations occur in order and efficiently .

Positional number systems differ in their base, and each base uses a distinct set of digits or symbols equal to its value. The decimal system, with a base of 10, uses ten symbols (0 through 9), whereas the binary system uses base 2, with symbols '0' and '1'. The octal system (base 8) and hexadecimal system (base 16) similarly utilize distinct symbols. In computing, these systems convert data coherently for processing, with binary being most fundamental for direct machine interpretation. Hexadecimal and octal serve as shorthand for binary, facilitating human understanding and reducing error potential in reading long binary strings .

Understanding the binary number system enhances problem-solving by allowing a clearer conception of how computers process and store information. Recognizing binary's role in operations, such as data representation, logic gates, and calculation, empowers individuals to optimize algorithms and designs that align with machine logic. This understanding can inspire innovative coding solutions and architecture design, as binary mathematics underpin digital logic, compounding efficiency and performance improvements in computing solutions .

Byte and word sizes profoundly impact computer system design as they determine memory alignment, data throughput, and processing capabilities. Word size affects the width of data paths, registers, and ALU operations, thus influencing processing speed. Larger word sizes can facilitate faster data manipulation and extensive parallel processing. Byte size affects memory utilization efficiency; for instance, larger words might mean more substantial memory wasted when storing smaller data. Balancing these sizes is imperative for optimizing speed and resource efficiency in computing systems .

In computer architecture, a 'bit' is the smallest data unit, representing a binary state (0 or 1). A 'byte' consists of eight bits and serves as a fundamental unit for encoding data, such as characters. A 'word' represents a set of bytes processed as a single unit by the CPU; its size varies depending on architecture but typically is 16, 32, or 64 bits. These units underpin data processing as operations within the CPU involve manipulating these bits and bytes, forming the basis of data storage, computation, and transfer within a system .

You might also like