1 / 28

RAM and Binary Numbers

RAM and Binary Numbers. Preview Questions:. What is 0000000101? What is 52 in binary? What is a file?. Random Access Memory (RAM) also called Main Memory or Primary Memory.

Download Presentation

RAM and Binary Numbers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. RAM and Binary Numbers Preview Questions: What is 0000000101? What is 52 in binary? What is a file?

  2. Random Access Memory (RAM) also called Main Memory or Primary Memory • Stores program instructions and data needed for processing--the working memory (short-term memory) of a computer (like a human’s memory) • The primary storage area for programs and data in active use - RAM • It is volatile.

  3. Analogy for RAM • Imagine you are sitting at a desk. • RAM is somewhat like the that surface – the number of applications that you can run is limited by the size of RAM. • RAM is good—get lots of it!

  4. Microprocessor • Brain of the computer • Brain of the cell phone • Brain of the PDA See Unit D in your textbook

  5. The Machine Cycle CPU Fetches, Sends back Main Memory Control Unit 1 Decode Fetch 2 RAM 4 Store 3 Execute Arithmetic/Logic Unit

  6. Digital Cell Phones, converting sound Digital phones convert your voice into binary information (1s and 0s) and then compress it CDs also convert analog to digital: • Sampling: http://communication.howstuffworks.com/analog-digital3.htm • Making a CD http://electronics.howstuffworks.com/cd5.htm

  7. Main Memory (RAM) • Is organized as a sequence of locations • Each location can contain a sequence of bits, representing data or an instruction • Locations are numbered with “addresses” from 0 to memory-size (can be huge, even gigabytes)

  8. Why use binary numbers? • We can build computers that operate in base-10, but they would be expensive. • What is easier than having a switch be ON or OFF? • We use electricity that way—low current or high current. • High voltages indicate 1 and low voltages indicate 0

  9. Data Representation: Bits The bit is the smallest unit of data; it is 1 or 0, that is, on or off work area 000 001 010 011 100 101 110 111

  10. Base Ten Numbers • fixed point(usually representing integers) • floating point (decimals) • In base 10, a decimal integermeans: 587 7 x 100 =7 8 x 101 =80 5 x 102 =500 587 _______

  11. 1 x 20 =1 0 x 21 =0 1 x 22 =4 5 ---------- Base Two • Likewise, in base 2, a binary integer means: 101 work area

  12. Base 2--another way to convert You can remember the places by exponentiation of 2: 1001 means you add 1 and 2^3, or 8 +1

  13. What is this number in decimal? work area

  14. What is this number in binary? 82 work area

  15. Characters, marks, and more Letters, numbers, line feeds, and non-printing characters ASCII-8. Pronounced “ass-key” ASCII stands for American Standard Code for Information Interchange, has 256 different symbols-all Operating Systems fully understand ASCII. UNICODE allows for up to 65,536 different characters. It is more complex and not implemented on many Operating Systems, but it is on Windows NT and Windows XP.

  16. Different characters held in RAM 00100001 = ???

  17. Why are these lists in alphabetical order?

  18. ASCII (link) ASCII can use 256 characters -- the foreign language possibilities are below:

  19. ASCII, Cont. • 32 is the ASCII code for a space. • So 32 = 00100000 in binary, and when the computer gets that data, it causes a space to appear. • Note: all the capital letters finish before the lower case letters appear • B = 66 • b = 98

  20. What is a file? • See page 116 in your Concepts book!! • A collection of data on a storage medium • Filename conventions • Filename extension .txt .jpg .exe .doc

  21. Seeing the three-letter extensions can save you from a virus!

  22. How to see the three-letter extensions on your files • .txt = Text file • .sql = MySQL-Front file

  23. In Windows XP, Go to Tools/Folder options/View tab • Do not hide file extensions

  24. Vista has the same problem, with a wrinkle You can move the mouse over a file and its extension will appear Not in our Course Guide

  25. How this looks in Vista Not in our Course Guide

  26. Instructions for Vista Show extensions for known files types. • In Windows Explorer, choose Organize > Folder and Search Options. • Click the View tab in the Folder Options dialog box. • In Advanced Settings, deselect Hide Extensions For Known File Types. • Click OK. Not in our Course Guide

  27. To Summarize: • What is 0000000101 in decimal? • What is 8 in binary? • What is a file? • Your moment of Zen http://youtube.com/watch?v=hut3VRL5XRE

More Related