Skip to main content

RAM & ROM

The previous section talked about the address and data buses, as well as the RD and WR lines. These buses and lines connect either to RAM or ROM generally both. In our sample microprocessor, we have an address bus 8 bits wide and a data bus 8 bits wide. That means that the microprocessor can address (28) 256 bytes of memory, and it can read or write 8 bits of the memory at a time. Let's assume that this simple microprocessor has 128 bytes of ROM starting at address 0 and 128 bytes of RAM starting at address 128.

ROM stands for read-only memory. A ROM chip is programmed with a permanent collection of pre-set bytes. The address bus tells the ROM chip which byte to get and place on the data bus. When the RD line changes state, the ROM chip presents the selected byte onto the data bus.

RAM stands for random-access memory. RAM contains bytes of information, and the microprocessor can read or write to those bytes depending on whether the RD or WR line is signaled. One problem with today's RAM chips is that they forget everything once the power goes off. That is why the computer needs ROM.

By the way, nearly all computers contain some amount of ROM (it is possible to create a simple computer that contains no RAM many microcontrollers do this by placing a handful of RAM bytes on the processor chip itself but generally impossible to create one that contains no ROM). On a PC, the ROM is called the BIOS (Basic Input/Output System). When the microprocessor starts, it begins executing instructions it finds in the BIOS. The BIOS instructions do things like test the hardware in the machine, and then it goes to the hard disk to fetch the boot sector. This boot sector is another small program, and the BIOS stores it in RAM after reading it off the disk. The microprocessor then begins executing the boot sector's instructions from RAM. The boot sector program will tell the microprocessor to fetch something else from the hard disk into RAM, which the microprocessor then executes, and so on. This is how the microprocessor loads and executes the entire operating system.

Comments

Popular posts from this blog

Computer Network

What is a Network? A network is a connection between terminals, computers, servers, and components which allows for the easy flow of data and use of resources between one another. Different networks that we come across in our day to day life are telephone network, cable T.V network, transport network of a city etc. Understanding the Concept of Networking The idea of networking has been around for a long time and has taken on many meanings. If you were to look up "network" in your dictionary, you might find any of the following definitions: An openwork fabric; netting A system of interlacing lines, tracks, or channels Any interconnected system; for example, a television-broadcasting network A system in which a number of independent computers are linked together to share data and peripherals, such as hard disks and printers Obviously, the last definition is the one we are concerned with in this course. The key word in the definition is "share." Sharing is the purpose ...

Boostup up your Computer when got slow down.

Few checkups to speed your PC Disable the startup programs Scandisk and do disk defragmentation Free Some Space if Insufficent drive space Clean registry Check for viruses on your hard drive using any legal antivirus software. Clean Temporary Files,

map network drive in windows 7

Map Network drive is very useful in networking, it helps to access regular usable folder on one click on My Computer. This feature is used in LAN Steps to Map a Network drive Step1 go to Computer select Tools (Alt+F) -> Map Network Drive Step 2 Select the Drive letter which u want to assign for Ex H: Browse the Folder which you want to Map the drive  Then ok It will be appeared in My Computer or Computer