Nonvolatile BIOS memory
Encyclopedia
Nonvolatile BIOS memory refers to a small memory on PC
motherboard
s that is used to store BIOS
settings. It was traditionally called CMOS RAM because it used a low-power Complementary metal-oxide-semiconductor (CMOS)
SRAM
(such as the Motorola
MC146818 or similar) powered by a small battery when system power was off. The term remains in wide use but it has grown into a misnomer
: nonvolatile storage in contemporary computers is often in EEPROM
or flash memory
(like the BIOS code itself); the remaining usage for the battery is then to keep the real-time clock
going. The typical NVRAM
capacity is 512 byte
s, which is generally sufficient for all BIOS settings.
The CMOS RAM and the real-time clock
have been integrated as a part of the southbridge
chipset and it may not be a standalone chip on modern motherboard.
program:
are generally powered by a CR2032 lithium
coin cell. These cells last two to ten years, depending on the type of motherboard, ambient temperature and the length of time that the system is powered off, while other common cell types can last significantly longer or shorter periods, such as the CR2016 which will generally last about 40% as long. Higher temperatures and longer power-off time will shorten cell life. When replacing the cell, the system time and CMOS BIOS settings may revert to default values. This may be avoided by replacing the cell with the power supply master switch on. On ATX
motherboards, this will supply 3V standby power to the motherboard even if it is apparently "switched off", and keep the CMOS memory energized.
Some computer designs have used non-button cell batteries, such as the cylindrical "1/2 AA" used in the Power Mac G4
as well as some older IBM PC compatible
s, or a 3-cell NiCd CMOS battery that looks like a "barrel
" (common in Amiga
s and older IBM PC compatibles), which serves the same purpose.
or a reset button. In yet other cases, the EEPROM chip has to be desoldered and the data in it manually edited using a programmer
. Sometimes it is enough to ground the CLK or DTA line of the I²C
bus of the EEPROM at the right moment during boot, this requires some precise soldering on SMD
parts. If the machine lets you boot but does not want to let you into the BIOS setup, one possible recovery is to deliberately "damage" the CMOS checksum by doing direct port writes using DOS debug.exe
, corrupting some bytes of the checksum-protected area of the CMOS RAM; at the next boot, the computer typically resets its setting to factory defaults.
for example:
c:\debug
-o 70 10
-o 71 aa
-q
That will write to CMOS (Offset 10h) with the value 0AAh.
Personal computer
A personal computer is any general-purpose computer whose size, capabilities, and original sales price make it useful for individuals, and which is intended to be operated directly by an end-user with no intervening computer operator...
motherboard
Motherboard
In personal computers, a motherboard is the central printed circuit board in many modern computers and holds many of the crucial components of the system, providing connectors for other peripherals. The motherboard is sometimes alternatively known as the mainboard, system board, or, on Apple...
s that is used to store BIOS
BIOS
In IBM PC compatible computers, the basic input/output system , also known as the System BIOS or ROM BIOS , is a de facto standard defining a firmware interface....
settings. It was traditionally called CMOS RAM because it used a low-power Complementary metal-oxide-semiconductor (CMOS)
CMOS
Complementary metal–oxide–semiconductor is a technology for constructing integrated circuits. CMOS technology is used in microprocessors, microcontrollers, static RAM, and other digital logic circuits...
SRAM
Static random access memory
Static random-access memory is a type of semiconductor memory where the word static indicates that, unlike dynamic RAM , it does not need to be periodically refreshed, as SRAM uses bistable latching circuitry to store each bit...
(such as the Motorola
Motorola
Motorola, Inc. was an American multinational telecommunications company based in Schaumburg, Illinois, which was eventually divided into two independent public companies, Motorola Mobility and Motorola Solutions on January 4, 2011, after losing $4.3 billion from 2007 to 2009...
MC146818 or similar) powered by a small battery when system power was off. The term remains in wide use but it has grown into a misnomer
Misnomer
A misnomer is a term which suggests an interpretation that is known to be untrue. Such incorrect terms sometimes derive their names because of the form, action, or origin of the subject becoming named popularly or widely referenced—long before their true natures were known.- Sources of misnomers...
: nonvolatile storage in contemporary computers is often in EEPROM
EEPROM
EEPROM stands for Electrically Erasable Programmable Read-Only Memory and is a type of non-volatile memory used in computers and other electronic devices to store small amounts of data that must be saved when power is removed, e.g., calibration...
or flash memory
Flash memory
Flash memory is a non-volatile computer storage chip that can be electrically erased and reprogrammed. It was developed from EEPROM and must be erased in fairly large blocks before these can be rewritten with new data...
(like the BIOS code itself); the remaining usage for the battery is then to keep the real-time clock
Real-time clock
A real-time clock is a computer clock that keeps track of the current time. Although the term often refers to the devices in personal computers, servers and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time.-Terminology:The term is used to avoid...
going. The typical NVRAM
NVRAM
Non-volatile random-access memory is random-access memory that retains its information when power is turned off, which is described technically as being non-volatile...
capacity is 512 byte
Byte
The byte is a unit of digital information in computing and telecommunications that most commonly consists of eight bits. Historically, a byte was the number of bits used to encode a single character of text in a computer and for this reason it is the basic addressable element in many computer...
s, which is generally sufficient for all BIOS settings.
The CMOS RAM and the real-time clock
Real-time clock
A real-time clock is a computer clock that keeps track of the current time. Although the term often refers to the devices in personal computers, servers and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time.-Terminology:The term is used to avoid...
have been integrated as a part of the southbridge
Southbridge (computing)
The southbridge is one of the two chips in the core logic chipset on a personal computer motherboard, the other being the northbridge. The southbridge typically implements the slower capabilities of the motherboard in a northbridge/southbridge chipset computer architecture. In Intel chipset...
chipset and it may not be a standalone chip on modern motherboard.
CMOS mismatch
CMOS mismatch errors typically occur if the computer's power-on self-testPower-on self-test
Power-On Self-Test refers to routines run immediately after power is applied, by nearly all electronic devices. Perhaps the most widely-known usage pertains to computing devices...
program:
- Finds a device that is not recorded in the CMOS.
- Does not find a device that is recorded in the CMOS.
- Finds a device that has different settings than those recorded for it in CMOS.
- Detects a CMOS checksumChecksumA checksum or hash sum is a fixed-size datum computed from an arbitrary block of digital data for the purpose of detecting accidental errors that may have been introduced during its transmission or storage. The integrity of the data can be checked at any later time by recomputing the checksum and...
error.
CMOS battery
The memory and real-time clockReal-time clock
A real-time clock is a computer clock that keeps track of the current time. Although the term often refers to the devices in personal computers, servers and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time.-Terminology:The term is used to avoid...
are generally powered by a CR2032 lithium
Lithium battery
Lithium batteries are disposable batteries that have lithium metal or lithium compounds as an anode. Depending on the design and chemical compounds used, lithium cells can produce voltages from 1.5 V to about 3.7 V, over twice the voltage of an ordinary zinc–carbon battery or alkaline battery...
coin cell. These cells last two to ten years, depending on the type of motherboard, ambient temperature and the length of time that the system is powered off, while other common cell types can last significantly longer or shorter periods, such as the CR2016 which will generally last about 40% as long. Higher temperatures and longer power-off time will shorten cell life. When replacing the cell, the system time and CMOS BIOS settings may revert to default values. This may be avoided by replacing the cell with the power supply master switch on. On ATX
ATX
ATX is a motherboard form factor specification developed by Intel in 1995 to improve on previous de facto standards like the AT form factor. It was the first big change in computer case, motherboard, and power supply design in many years, improving standardization and interchangeability of parts...
motherboards, this will supply 3V standby power to the motherboard even if it is apparently "switched off", and keep the CMOS memory energized.
Some computer designs have used non-button cell batteries, such as the cylindrical "1/2 AA" used in the Power Mac G4
Power Mac G4
The Power Mac G4 was a series of personal computers that was designed, manufactured, and sold by Apple between 1999 and 2004. They used the PowerPC G4 series of microprocessors. They were heralded by Apple to be the first personal supercomputers, reaching speeds of 4 to 20 Gigaflops...
as well as some older IBM PC compatible
IBM PC compatible
IBM PC compatible computers are those generally similar to the original IBM PC, XT, and AT. Such computers used to be referred to as PC clones, or IBM clones since they almost exactly duplicated all the significant features of the PC architecture, facilitated by various manufacturers' ability to...
s, or a 3-cell NiCd CMOS battery that looks like a "barrel
Barrel
A barrel or cask is a hollow cylindrical container, traditionally made of vertical wooden staves and bound by wooden or metal hoops. Traditionally, the barrel was a standard size of measure referring to a set capacity or weight of a given commodity. A small barrel is called a keg.For example, a...
" (common in Amiga
Amiga
The Amiga is a family of personal computers that was sold by Commodore in the 1980s and 1990s. The first model was launched in 1985 as a high-end home computer and became popular for its graphical, audio and multi-tasking abilities...
s and older IBM PC compatibles), which serves the same purpose.
Resetting the CMOS settings
To access the BIOS setup when the machine fails to operate, occasionally a drastic move is required. In older computers with battery-backed RAM, removal of the battery and short circuiting the battery input terminals for a while did the job; in some more modern machines this move only resets the RTC. Some motherboards offer a CMOS-reset jumperJumper (computing)
In electronics and particularly computing, a jumper is a short length of conductor used to close a break in or bypass part of an electrical circuit...
or a reset button. In yet other cases, the EEPROM chip has to be desoldered and the data in it manually edited using a programmer
Programmer (hardware)
In field of computer hardware, the term programmer, chip programmer or device programmer refers to a hardware device that configures programmable non-volatile circuits such as EPROMs, EEPROMs, Flashs, PALs, FPGAs or programmable logic circuits....
. Sometimes it is enough to ground the CLK or DTA line of the I²C
I²C
I²C is a multi-master serial single-ended computer bus invented by Philips that is used to attach low-speed peripherals to a motherboard, embedded system, cellphone, or other electronic device. Since the mid 1990s, several competitors I²C ("i-squared cee" or "i-two cee"; Inter-Integrated Circuit;...
bus of the EEPROM at the right moment during boot, this requires some precise soldering on SMD
Surface-mount technology
Surface mount technology is a method for constructing electronic circuits in which the components are mounted directly onto the surface of printed circuit boards . An electronic device so made is called a surface mount device...
parts. If the machine lets you boot but does not want to let you into the BIOS setup, one possible recovery is to deliberately "damage" the CMOS checksum by doing direct port writes using DOS debug.exe
DEBUG (DOS Command)
debug is a command in DOS, MS-DOS, OS/2 and Microsoft Windows which runs the program debug.exe...
, corrupting some bytes of the checksum-protected area of the CMOS RAM; at the next boot, the computer typically resets its setting to factory defaults.
for example:
c:\debug
-o 70 10
-o 71 aa
-q
That will write to CMOS (Offset 10h) with the value 0AAh.
See also
- BIOSBIOSIn IBM PC compatible computers, the basic input/output system , also known as the System BIOS or ROM BIOS , is a de facto standard defining a firmware interface....
- Backup batteryBackup batteryA backup battery provides power to a system when the primary source of power is unavailable. Backup batteries range from small single cells to retain clock time and date in computers, up to large battery room facilities that power uninterruptible power supply systems for large data centers...
- Real-time clockReal-time clockA real-time clock is a computer clock that keeps track of the current time. Although the term often refers to the devices in personal computers, servers and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time.-Terminology:The term is used to avoid...
- Extended System Configuration DataExtended System Configuration DataESCD or Extended System Configuration Data is a part of nonvolatile BIOS memory on the motherboard of a personal computer, where information about ISA PnP devices is stored...
(ESCD)