Showing posts with label The Basic Computing Knowledge. Show all posts
Showing posts with label The Basic Computing Knowledge. Show all posts

The Basic Architecture Of Computer – Part 2

Tuesday, April 12, 2011

In the first part of my articles about basic architecture of computer, I had explained to you about 4 main basic components that took responsibility to support the computer’s operation that transform data become usable information.

Now, in this second part article, I will try to explain how the data flow among these components until it being transformed to become the usable information. In other words, I will try to explain how computer transform data into usable information

How Computer Transform Data Into Usable Information

Capture 

  1. Based on the above picture, let say you type the words SAYA in your word processing program using your keyboard (input device).

  2. The data S, A, Y and A will flow to the RAM (primary memory). It will be kept in there temporarily. At this stage, if you powered off your computer, the data will disappear.

  3. The processor will fetch (take) the data from RAM (primary memory). Then it will decode and execute the data to be usable information. In this case, the information is SAYA.

  4. The information will be sent back to RAM (primary memory) and then will be displayed on your monitor or will be printed using printer (output devices) based on your needs.

  5. If you save the information (the words SAYA that you typed in your word processing program), it will be kept permanently in your hard disk (secondary memory). So, the information will not disappear even you powered off your computer.


Hyperlinks

The Basic Architecture Of Computer – Part 1

The Basic Architecture Of Computer - Part 1

Monday, April 11, 2011

The rapid evolution in computer technology allows us to see many types & shapes of computer in the market. For me, the today’s computer is more complicated than before. I think, it is quite difficult to learn about the computer architecture at present, without its basic knowledge. So, today I will try to explain to you about the basic architecture of computer
 
In my opinion, the basic architecture of computer should be based on the basic components that work together to execute computer's operation. Look the picture below 

Capture 

As you can see at the above picture, there are 4 main basic components that shape the basic architecture of computer. Let we look the functions of them

  1. INPUT DEVICES 
    It is the computer hardware that produce data. The data had been produced will be sent to the computer’s primary memory. Input devices usually used by end users. The most simple example of input devices is your keyboard and mouse

    Capture  Capture


  2. MEMORY 
    Memory in computer can be divided into 2 main types. There are primary memory and secondary memory.

    Primary Memory 

    It keeps data temporarily, so that it usually called the volatile memory. When I say the primary memory is volatile memory, it means data which had been kept in this type of memory disappeared when the computer is powered off. The example of primary memory is Random Access Memory (RAM)

    Capture  

    Secondary Memory 

    It keeps data permanently, so that it usually called non-volatile memory. When I say the secondary memory is non-volatile memory, it means data which had been kept in this type of memory not disappeared when the computer is powered off. The example of secondary memory in computer is hard disk

    Capture 


  3. PROCESSOR
    It is the “brain of computer” which play the most important roles. The processor will changes the data produced by input devices into usable information.

    Capture

    In order to change data into usable information, the processor will performs continuous Fetch-Decode-Execute (FDE) cycle. By performing this cycle, the processor will fetch the data from primary memory. Then, the data will be decoded and execute as usable information.


  4. OUTPUT DEVICES    
    It is the computer hardware that displays the information to the end users. The types of information that can be displayed by output devices are video, text, picture, animation, audio and many more. The information displayed can be softcopy or hardcopy

    Capture Capture

    The example of output device is your monitor which can display information in softcopy. The another output device is your printer which can display information in hardcopy.


Hyperlinks

The Basic Architecture Of Computer – Part 2

Conversion Of Hexadecimal Number To Binary Number

Tuesday, March 22, 2011

Yesterday, I posted my articles about the conversion of decimal number to binary number. But, one more things that I forgot to mention are computer system also uses hexadecimal number in its operation. Hexadecimal is base 16 numbering system that count from 0 to 9 then A to F. The meaning of counting 0 to 9 then A to F can be seen in example below


0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

which

  • A = 10
  • B = 11
  • C = 12
  • D = 13
  • E = 14
  • F = 15


It is much easier for computer system to work with large number using hexadecimal. Hexadecimal number has either 0x prefix or h suffix which both of them returned no value.




How To Convert Hexadecimal Value Into Binary Value

Let say, we have a hexadecimal value Ox3F7A. Because the Ox prefix will return no value, so the hexadecimal digit will be read as 3F7A.

To convert hexadecimal value 3F7A to binary number, we need to translate each of its number to 4 bits binary equivalent. Please refer the table below for better understanding

Capture

Based on table above, we can conclude the hexadecimal value 3F7A is equivalent to the binary value 0111 1111 0111 1010.


3F7A
= 0011 1111 0111 1010.

How To Convert From Decimal Number To Binary Number

Monday, March 21, 2011

The computer was built with the ability to understand the binary numbers. Meanwhile, the human use the decimal numbers to perform the mathematical operations, eg: addition, subtraction, multiplication, division etc. So here, we can see the significant differences between the human and the computer. This differences are refer to the numbering systems which used by both parties. However, we often find that the human (as the computer’s user) depend on the computer to carry out the certain tasks, eg: writing the documents, perform mathematical operations etc.

I personally see, the human dependence on the computer may arouse the compatibility issue between both of them. This compatibility issue is about how the computer can manage the human’s data, eg: decimal numbers, whereas the computer only can understand the binary numbers.

Through this article, I will try to answer this question by describing about the binary numbers and little explanations about the decimal numbers. Within this article, I will also explain the steps how to convert from decimal number to binary number. I think this conversion process is applied by the computer when managing the human’s data which enter into its system. 


The description about the binary numbers

Capture

Within the above picture, we can see the 2 different numbers which respectively are 0 and 1. Both of these numbers (0 and 1) are the binary numbers which by default, include in the base-2 numbering system.

The binary numbers had plays the significant role within the field of computing. Because the binary numbers only consists of the 2 different numbers, so it is easier to use them as the values to represent the logical conditions. By default, both of these values (the binary numbers) represent the logical conditions based on the following methods:

  • The binary 0 is assigned to the logical condition OFF.
  • The binary 1 is assigned to the logical condition ON.

The computer system use the digital signal to represent data and information. Meanwhile, the digital signal has only 2 discrete conditions that can be represented logically as ON and OFF. The ON condition is means the positive voltage level and the OFF condition is means the zero voltage level. Because the binary numbers only have two numbers, so they can be the most suitable numbers to represent the logical conditions (ON and OFF) on the digital signal. Usually, the logical conditions on the digital signal will be represented using the methods listed above.

Capture



How the computer see the human’s data?

As I previously mentioned, the computer use the digital signal to represent data and information. Meanwhile the logical conditions on the digital signal is represented using the binary numbers. However, the computer do not see human’s data in form of the digital signal. It usually see the human’s data in form of  the sequence of binary numbers with 8-bits values as shown within the picture below:

Capture

The picture above presents us the sequence of binary numbers which represent the data and information viewed by the computer system. What we can conclude about this picture are as follows:

  • The single bit of data is the smallest size of data which the computer can process. It can has either the binary number 0 (represent the OFF condition) or the binary number 1 (represent the ON condition). However by default, the computer does not process just the single bit of data at a time. For the purpose of performance, the computer will process data in the sequence of binary numbers that equal to 8-bits of data at a time. For your information, the early computer can process the 8-bits of data at a time. But nowadays, the modern computer can process the 64-bits of data at a time.

  • The 8-bits of data is equal to 1-byte of data, the 16-bits of data = 16/8 is equal to 2-bytes of data, the 32-bits of data = 32/8 is equal to 4-bytes of data, and the 64-bits of data = 64/8 is equal to 8-bytes of data. I think most of us are familiar with these bits and bytes’ values.

  • The 8-bits of data can represent 256 decimal numbers which can have the range of values from 0 to 255.Eg: 00000000 = 0 (the decimal number), 11111111 = 255, 10101010 = 170.

  • To translate the value of the 8-bits of data to the decimal number (human’s data), every single bit of data within the 8-bits of data must be paired with every single bit position. The bit positions have the range of numbers from 0 to 7. The arrangement of bit positions that paired together with every single bit of data within the 8-bits of data, can be described using the table below:

    Capture 

    Based on the table above, the numbers from 0 to 7 that represent the bit positions are the exponent numbers that become “power to the base number 2”. The number 2 is selected as the base number because the binary numbers have 2 numbers. The example below will enhance your understanding about the exponent numbers that become “power to the base number 2”:

    20, 21, 22, 23, 24, 25, 26, 27


    Below is the complete description related to the above examples:    

    Capture

    When you perform the mathematical exponentiation on the base numbers above you will get the decimal values like within the following table:

    Capture

    You will use the above table when you want to find out the binary values (8-bits of data) that equivalent to the decimal numbers which had been given to you. The decimal numbers will have the range of decimal values from 0 to 255. You will learn more about this in the next section entitled how to convert the decimal number to the binary number?



The brief description about the decimal numbers 
The human use the decimal numbers when perform the mathematical calculations. The decimal numbers is the group of numbers which form the base-10 numbering system. The base-10 numbering system consists of 10 numbers like the following:

0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Among the decimal numbers listed above, we can combine them to form a decimal number with larger value, for the example, we can combine the decimal numbers 3, 4, 5 and 6 to form a decimal number with value, 3456 which can be read as THREE THOUSANDS AND FOUR HUNDREDS AND FIFTY SIX.



How to convert the decimal number to the binary number?
If the computer’s user type the decimal number, how that number will look like in “the eyes of computer”? In order to answer this question, we need to learn how to convert the decimal number into the binary number.

Let say the computer’s user type the decimal number 22 on the Notepad program. By default, the computer system will view this number as the sequence of binary numbers with the 8-bits of data. So now, from this issues, the some simple questions can be raised:

  • How the patterns of the sequence of binary numbers with the 8-bits of data equivalent to the decimal number 22 will look like in “the eyes of computer”?
  • How many binary numbers 0 and 1 will appear within the 8-bits of data?
  • In which bit positions, both of the binary numbers will be paired within the 8-bits of data?

To answer the above questions, we should perform the following steps which will also teach us how to convert the decimal number to the binary number:

  1. First of all, we need to construct a table that contains the bit positions (the range of numbers from 0 to 7) together with the decimal numbers that assigned to every bit position. Look the table below:  

    Capture 

    From the table above, we can raise the following question:

    How the decimal numbers that paired to every bit position were determined?

    To answer the above question, we need to create the table similar to the above. Then we add one row that contains the sequence of binary numbers (8-bits of data). All the binary numbers within this row must have the binary number 1. See the following table: 

    Capture 

    Now, based on the above table, you can determine the decimal number for every bit position (remember, the bit position is the exponent number that become “power to the base number 2”) by performing the following mathematical operation (multiplication process)

    MULTIPLY the binary number (1) with the base number 2 power by the bit position.
    Eg: 1 * 20, 1 * 21, 1 * 22, 1 * 23, 1 * 24, 1 * 25, 1 * 26, 1 * 27.

    For more details information about the examples above, see the description below:  

    Capture

    THE IMPORTANT TASK FOR STEP 1:
    In this first step, the most important task that we have to do is to determine the decimal numbers that paired with every bit position.

  2. At this point, I hope you can understand what I try to deliver within the previous step (step 1). Now, you had acquire the table that display the bit positions (0 – 7) together with the decimal numbers. These numbers are produced from the mathematical operation which had been performed within the step 1.

    Now, in this step, we will perform the mathematical operation (the addition process) onto the decimal numbers within the table as shown below in order to get the decimal number 22 as the final amount:

    Capture 

    Based on the table above, we should perform the addition process onto the decimal numbers within the red cells. So, the process will look like the following:

    16 + 4 + 2 = 22    

    THE IMPORTANT TASK FOR STEP 2:
    Within this step, the most important task is we need to determine every decimal number involved within the addition process which will produce the desired decimal number (in this case is 22) as the final amount. In this case, the decimal numbers involved are 16, 4 and 2.

  3. In the previous step (step 2) we had determine the decimal numbers which involved in the addition process in order to get the decimal number 22 as the final amount. They are numbers 16, 4 and 2 which are inside the red cells within the table shown below:

    Capture

    So now, within this step and beyond, we will answer all the questions which had been raised regarding this issue. Before we proceed this step, it is good to recall those questions: 

    Capture

    To answer all the questions above, we need to use the above table. Then, we add one more row within this table This row represent the row of binary number. So that we will get the following table:

    Capture

    Then, within the row of binary number, we need to fill the suitable binary number into all of its cells. These binary numbers can be either 0 or 1 as long as this sequence of binary numbers (8-bits of data) is equal to the decimal number 22.

    Now, based on the row of binary number within the table above, we will fill up the binary number 1 into the cells that locate below the red cells (contains the decimal numbers 16, 4 and 2). See the table below:

    Capture

    The reason, why we should fill the binary number 1 within these cells is based on the previous mathematical operation (multiplication process) within the step 1. For the example, if we want to produce the decimal number 16, we need to perform the following multiplication process: 

    MULTIPLY the binary number 1 with the base number 2 power by the number of bit position 4. Eg: 1 * 24 = 1 * 16 = 16

    Logically if we fill the binary number 0 within the cell below the red cell that contains the decimal number 16, we will return the decimal number 0 as the final result. The following multiplication process will enhance you understanding about what I said:

    MULTIPLY the binary number 0 with the base number 2 power by the number of bit position 4. Eg: 0 * 24 = 0 * 16 = 0

    THE IMPORTANT TASK FOR STEP 3:
    Within this step, the most important task is we need to fill up the certain cells belong to the row of binary number with the binary number 1. The purpose of this task is to produce some decimal numbers (in this case is the numbers 16, 4 and 2) which when we totalize them, we will get the desired decimal number (in this case is the number 22) as the final amount.

  4. This is the final step which can be the easiest step. So far, you had determine and fill up the binary number 1 into the related cells belong to the row of binary number. See the table below:

    Capture

    Now in this step, you will fill up the remaining cells (empty cells) with the binary number 0 within the row of binary number as shown within the table above. After we fill up all these cells, the sequence of binary numbers (that contains the 8-bits of data) will formed. See the row of binary number (contains the light blue cells) within the table below:

    Capture

    If we take out and rearrange this sequence of binary numbers (inside the light blue cells) within the above table, we will see the following patterns of the 8-bits of data:

    00010110 = 22

    So, if the people ask you what is the value of 8-bits of data that equal to the decimal number 22? The answer in the sequence of binary number with 8-bits of data will be 00010110.

    THE IMPORTANT TASK FOR STEP 4:
    Within this step, the most important task is we need to fill up the remaining cells within the row of binary number with the binary number 0. When this final step is accomplished, we will get the sequence of binary numbers (that contains the 8-bits of data) that equal to the desired decimal number. In this case we get the 8-bits of data, 00010110 that equal to the decimal number 22.

Related Posts Plugin for WordPress, Blogger...