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 ...

Excess sound may damage your laptop speaker

Hello friends here I share one impotent thing Don't increase the sound in VLC media player to avoid speaker stop, do not listen more than 100% Volume in VLC Media player it will damages your Laptop speaker and it should not be repaired you need to replace new one. Share this Thank you. 

Essential softwares for Windows

After installing Windows some softwares needed to run your system safe and compatable Drivers - it support and allows hardware function like sound, wifi, display etc Antivirus (I prefer ESET) MS Office - to open .doc .xls .ppt   Adobe Reader - to open pdf Adobe Flash Player - to play videos online Google chrome - browses faster K-Lite Codec Pack - applies codec to media files so you can play any type of video . uTorrent client - to download via torrent websites Winrar - to open the compress files & also to compress the files Internet Download Manager - to boost the download speed . net frame work - it support Run time for some applications Java - it support run time for java pagesc Thank you.