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

Wired Equivalent Privacy

Wired Equivalent Privacy (WEP) is a security used in IEEE 802.11 wireless networks introduced in year Sep 1999, it was available on Router Configuration In WEP there are 2 Formats Hexadecimal ASCII

Installing A Printer

Go to Control Panel Click Printer Option Click Add a Printer Click Add Local Printer Select Port Select The Printer & click Next Click Next Installation Wizard Appears Now The Printer is Successfully Installed You can see your installed Printer icon in printer wizard in control panel

Intel Microprocessor History

List of the Microprocessors from Intel family from beggining Intel 4004 - 4 bit processors Intel 4040 Intel 8008 - 8 bit processors Intel 8080 Intel 8085 Intel 8048 - Microcontrollers Intel 8051 Intel 80151 Intel 80251 MCS 96 Family 3000 Familytect Intel 8086 - 16 bit Processors Intel 8088 Intel 80186 Intel 80188 Intel 80286 iAPX 432 - 32 bit Processors, non-x86 i960 aka 80960 i860 aka 80860 Xscale 80386DX - 32 bit processors 80386SX 80376 80386SL 80386EX 80486DX 80486SX 80486DX2 80486SL 80486DX4 Original Pentium - P5 micro-architecture Pentium with MMX Technology Pentium Pro - P6 / pentium M micro-architecture Pentium II Celeron (Pentium II-based) Pentium III Pentium II and III Xeon Celeron (Pentium III Coppermine-based) Celeron (Pentium III Tualatin-based) Pentium M Celeron M Intel Core Dual-Core Xeon LV Pentium 4 - NetBurst microarchitecture Xeon Mobile Pentium 4-M Pentium 4 EE Pentium 4E Pentium 4F Itanium - 64-bi...