CS 150



 

Chapter 2 Processor and Hardware

 

The Chips

CPU

Next

I will bring in a computer to class, take apart the computer and explain how the computer is put together and where all the components are located in the computer.
.
Binary systems: Using two states
  • Representations
  •           Look at the panel 2.26 in the book. Those are the binary representations of numbers

    ENCODING SYSTEMS - Interepeting the 1's and 0's

                        The Chinese need a 16-bit encoding system to represent there 13000 characters.
     

    Hightech stuff --Reading binary numbers


         00000000 = 8 bits = one byte
         each digit starting from right to left is equal to a number
              The first digit is 2^0 (2 raised to the 0 exponent).
                   This means if this is the only digit that is represented by a 1 you get
                   00000001 which is equal to 1 because 2^0 = 1.
              The second digit represents 2^1 so
                    00000010 = 2
              The third digit represents 2^2
                   00000100 = 4
              The fourth digit represents 2^3
              The fifth digit represents 2^4
              The sixth digit represents 2^5
              The seventh digit represents 2^6
              The last digit represents 2^7
                   1000000 = 128
                   1111111 = 128+64+32+16+8+4+2+1 = 255
                   0111111 = 64+32+16+8+4+2+1=127
         127 is how you get 128 representations in ascii code (remember 0000000=0 so 127 and 0 makes
         128). Because Ascii doesn't use the last digit.
     

    Machine Language


    Why won't word processing software that runs on an Apple Macintosh run on my IBM Compatible
    computer?

         Machine Language -

    Insides of a computer

    In the class I am going to show insides of a computer and how they fit together.  If you are in the online class the parts of the computer I'm bringing into class are listed in chapter 2.  Page 2.5, figure 2.4 and 2.5 show a motherboard with expansion slots, CPU connectors, and memory slots.  Then those components are defined over the next five or six pages. Make sure you read and understand these sections. In the next lecture I'm going to bring in a whole computer and take it apart and show you how to put it back together.