Sunday, May 20, 2012

ROM


In every computer system, there must be a portion of memory that is
stable and impervious to power loss. This kind of memory is called
Read Only Memory or ROM.

Once again, this term is a misnomer. If it was not possible to write to this type of memory, we could not store the code or data that is to be contained in it. It simply means that without special mechanisms in place, a processor cannot write to this type of memory. If through an error of some sort, the processor tries to write to
this memory, an error will be generated.

The most common application of ROM is to store the computer's
BIOS. Since the BIOS is the code that tells the processor how to access
its resources upon powering up, it must be present even when the
computer is powered down.

Another application is the code for embedded systems. For example, it is important for the code in your car's computer to remain even if the battery is disconnected.

There are some types of ROM that the microprocessor can write to,
but usually the time needed to write to them or the programming
requirements needed to do so make it unwise to write to them regularly.
Therefore, these memories are still considered read only.

In some cases, the processor cannot write to a ROM under any
circumstances. For example, the code in your car's computer should
never need to be modified. This ROM is programmed before it is
installed. To put a new program in the car's computer, the old ROM is
removed and discarded and a new ROM is installed in its place.