Linea said:
Deaming further on about this while driving my car today, I wondered
wouldn't it be better if they used a non-volatile memory, something like
an SD card, for keeping all the settings, and perhaps also the BIOS code
itself? No current of any sort needed to keep the information available?
Absolutely. The current practice is "barbaric"
*******
But consider that, they want to run a real time clock, even
when the computer is not powered. So the computer always
has a local time_of_day reference for stamping file
system entries. The computer must "work properly", with
no network connection to use NTP protocol.
An RTC draws around 2 microamps, if implemented in the
Southbridge. You need the battery, to power that clock
time piece. The clock runs off a 32768 Hertz quartz crystal
(just like your digital watch), and will drift a bit in
terms of time keeping. (It's not "atomic clock" quality
in any case.)
Adding the 256 bytes of RAM, doesn't change things
all that much. The total power is 10 microamps,
with both RTC and CMOS RAM. Part of that is likely
to be "CMOS well" transmission gate leakage, through the
stuff that prevents the battery powered portion of
the Southbridge, leaking into the larger part of the chip.
If transmission gates were not used, for electrical isolation,
current from the CR2032 would "leak" into the rest of the
Southbridge, and the battery would drain in no time. The usage
of transmission gates, helps make this "chip emulation" inside
the Southbridge a practical possibility. Where the letter "T"
is like a moat, they "lift the drawbridge" so the little
island stays electrically isolated, when the computer
is powered off. When the chip is fully powered, the OS
reads the registers of the RTC, via some sort of
transmission gate protected path.
+--------------------------------------+
| Southbridge - SATA, PCI, LPC I/O etc |
| |
| | | | | The letter "T" is
| T T T | where transmission gates
| | | | | for I/O, are located.
| +----------+ |
| | RTC and |--------------------------- CR2032 3V power
| | CMOS RAM |--------------------------- 32768Hz crystal
| +----------+ |
| |
+--------------------------------------+
The end result, with a CR2032, is you can power that
time piece (and the 256 byte RAM sitting next to it),
for about three years with no AC power.
So if we replaced the 256 byte RAM with 256 bytes or
NOR flash, we still need a clock function, we still
need a battery, and the battery lasts a bit longer.
At one time, this function was a separate chip, and
the emulation that puts it into the Southbridge,
is intended to make PCs cheaper to build. You might
have had a Dallas chip in really old PCs. And the problem
with the old solution to this problem, is the entire
Dallas chip needed to be replaced, when the internal
battery in the chip went flat. At least the battery
is easy to replace now. Dallas used to pot the whole
thing in epoxy, so you couldn't repair it. It was
"Dremel time", for the people who used to retrofit
an external battery to their Dallas.
http://classic-computers.org.nz/blog/2009-10-10-renovating-a-dallas-battery-chip.htm
Paul