Primary Memory is RAM and ROM

Computer data storage or Computer memory is mainly divided into two types. First is Primary Storage also known as Primary Memory or Main Memory or Online Memory. It consists of RAM and ROM. Random Access Memory (RAM) is the temporary (volatile) storage area whereas Read-Only Memory (ROM) is the permanent (non-volatile) memory. In the hierarchy of storage, Secondary Storage or Secondary Memory or Offline Memory comes next. Secondary Storage include hard disk, floppy disk, CD, DVD etc.

ROM

ROM chip stores BIOS program containing system settings and needs 24 hrs power supply which is provided by CMOS battery (3V) even when the computer is switched off. CMOS stand for Complimentary Metal Oxide Semiconductor.

ROM identification is done through manufactures name and they are – American Megatrends Incorporated (AMI), Award, Pheonix and Flash. ROM is classified into following types:

Mask ROM is the first ROM chip. Circuit is integrated and manufacturer is the programmer on Mask ROM.

Programmable Read-Only Memory (PROM) is blank ROM chip which can be programmed. PROM programmers program the blank ROM chip.

Erasable Programmable Read-Only Memory (EPROM) as the name suggests is capable of erasing first time program and reprogram it. 20 minutes passage of UV rays causes erasing. On top of EPROM there’s transparent window and after first programming when programmers erase it and reprogram it is covered with an opaque layer on transparent window. The main disadvantage of EPROM is exposing to sunlight may erase the program.

Electrically Erasable Programmable Read-Only Memory (EEPROM) erases the program in ROM when voltage more than normal is given. But particular location erasability feature is not available and the entire program has to be erased if we want to erase. Switch Mode Power Supply (SMPS) plays a very important role in EEPROM.

Electrically Alterable Read-Only Memory (EAROM) is same as EEPROM but there are extra features enabled using which erasability according to locations is possible. EAROM is less used due to very slow writing or running process.

Flash ROM is the modern type of EEPROM and also called as flash EEPROM or flash memory which can be erased and rewritten faster.

RAM

In Random Access Memory (RAM) there is Static Random-Access Memory (SRAM) and Dynamic Random-Access Memory (DRAM). SRAM is fast and costly compared to DRAM which is slow and cheap. SRAM uses transistors and is used in processors i.e, cache memory which will do prefetch function. DRAM uses capacitors which must be periodically refreshed. The refresh circuit prevents data to discharge when the power in ON.