Nonvolatile BIOS memory explained

Nonvolatile BIOS memory refers to a small memory on PC motherboards that is used to store BIOS settings. It is traditionally called CMOS RAM because it uses a volatile, low-power complementary metal–oxide–semiconductor (CMOS) SRAM (such as the Motorola MC146818 or similar) powered by a small "CMOS" battery when system and standby power is off.[1] It is referred to as non-volatile memory or NVRAM because, after the system loses power, it does retain state by virtue of the CMOS battery.

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 motherboards.[2] [3] In turn, the southbridge have been integrated into a single Platform Controller Hub.

The chipset built-in NVRAM capacity is typically 256 bytes. For this reason, later BIOS implementations may use a small portion of BIOS flash ROM as NVRAM, to store setup data.[4]

Today's UEFI motherboards use NVRAM to store configuration data (NVRAM is a portion of the UEFI flash ROM), but by many OEMs' design, the UEFI settings are still lost if the CMOS battery fails.[5] [6]

CMOS battery

The memory battery (aka motherboard, CMOS, real-time clock (RTC), clock battery)[7] is generally a CR2032 lithium coin cell. This cell battery has an estimated life of three years when power supply unit (PSU) is unplugged or when the PSU power switch is turned off.[8] This battery type, unlike the lithium-ion battery, is not rechargeable and trying to do so may result in an explosion. Motherboards have circuitry preventing batteries from being charged and discharged when a motherboard is powered on. Other common battery cell types can last significantly longer or shorter periods, such as the smaller CR2016 which will generally last about 40% less time than CR2032. Higher temperatures and longer power-off time will shorten battery cell life. When replacing the battery cell, the system time and CMOS BIOS settings may revert to default values. Unwanted BIOS reset may be avoided by replacing the battery cell with the PSU power switch turned on and plugged into an electric wall socket. On ATX motherboards, the PSU will supply 5V standby power to the motherboard to keep CMOS memory energized while the system is off.

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 compatibles, or a 3-cell nickel–cadmium (Ni–Cd) CMOS battery that looks like a "barrel" (common in Amiga and older IBM PC compatibles), which serves the same purpose. These motherboards often have a four pin straight header, with pin 2 missing, for connecting to an external 3.6v battery, such as the Tadiran TL-5242/W, when their soldered-on batteries run out. Ni–Cd batteries have a tendency to leak devastatingly after a period of disuse, damaging components and traces on the circuit board near the battery.[9]

See also

External links

Notes and References

  1. Web site: What is CMOS? (CMOS & CMOS Battery Definition) . . Tim . Fisher . 2 September 2015 . 9 August 2016 . https://web.archive.org/web/20160809082556/http://pcsupport.about.com/od/termsc/g/cmos.htm . dead .
  2. Web site: Intel 100 Series Chipset Family PCH Datasheet. Intel . August 2015 . 16 April 2016.
  3. Web site: 82430FX PCISET Data Sheet. Intel. 23 January 2023.
  4. http://rom.by/files/AMIBIOS8-Flash-Recovery-Whitepaper.pdf
  5. Web site: UEFI NVRAM - OSDev Wiki. 2020-09-11. wiki.osdev.org. dmy-all.
  6. Book: https://media.springernature.com/original/springer-static/image/chp%3A10.1007%2F978-1-4842-6106-4_4/MediaObjects/488723_1_En_4_Fig6_HTML.png. 10.1007/978-1-4842-6106-4_4. Firmware Resiliency: Detection. Building Secure Firmware. 2020. Yao. Jiewen. Zimmer. Vincent. 115–162. 978-1-4842-6105-7. 242541772 .
  7. http://en.kioskea.net/faq/625-replacing-the-battery-of-your-motherboard-cmos-battery Ask a question » Replacing the battery of your motherboard (CMOS battery)
  8. Web site: CMOS Battery on the Intel NUC . 24 August 2020 . Intel .
  9. Web site: Williams . Al . July 8, 2018 . Amiga 2000 Emergency Repair . Hackaday . https://web.archive.org/web/20180708201017/https://hackaday.com/2018/07/08/amiga-2000-emergency-repair/ . July 8, 2018.