Article View: comp.os.msdos.programmer
Article #1245reading CMOS (was Re: Read BIOS - whoops)
From: phys169
Date: Thu, 03 Sep 1992 02:47
Date: Thu, 03 Sep 1992 02:47
28 lines
1678 bytes
1678 bytes
Yes, it is possible to read the CMOS clock and RAM quite easily, but do you mean a PC or an AT? (the original, 8088, PC CMOS is totally different). For an 8088 PC, to read the CMOS (assuming it has it), you need to know the starting port address, which varies from board to board. The best idea is to try some likely ports, avoiding known system ports of course, and see if one has a valid hex number seems to be cycling 1000 times a second (or something like that). For an AT, there is always ports 70h and 71h, and you use them like this... output a number (0 to 3Fh) to port 70h, saying which CMOS clock/RAM cell you want, then read or write port 71h (1 byte of data). Be careful not to access port 70h without also accessing port 71h - apparently it can ruin the chip. Also be aware that you can get "false" readings (255) from the clock registers at times. The PC/XT CMOS RAM has a separate port addresses for each cell (but has less cells, and the clock cells are in a different order. For more information, have a look at the documenation file that comes with my program CMOS299.ZIP, or at the INFOPLUS package, that has sources. (Actually, you can get the sources to my CMOS setup program too if you ask nicely). Hope this helps, Mark Aitchison, University of Canterbury.
Technical Details
Message-ID:
<1992Sep3.144719.634@csc.canterbury.ac.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!waikato.ac.nz!canterbury.ac.nz!phys169Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!waikato.ac.nz!canterbury.ac.nz!phys169 Newsgroups: comp.os.msdos.programmer Subject: reading CMOS (was Re: Read BIOS - whoops) Message-ID: <1992Sep3.144719.634@csc.canterbury.ac.nz> From: phys169@csc.canterbury.ac.nz Date: 3 Sep 92 14:47:19 +1200 Organization: University of Canterbury, Christchurch, New Zealand Lines: 28