Solved

regarding CMOS of the PC

Posted on 2002-04-04
3
186 Views
Last Modified: 2010-04-02
HI,
   i want to write datainto the CMOS mem of the PC. How can i do that?
0
Comment
Question by:ttsenis
3 Comments
 
LVL 4

Accepted Solution

by:
pagladasu earned 100 total points
ID: 6918775
You access the data in CMOS by outputting to port 70h the offset of the byte you wish to read. The value can then be read from port 71h.
This is the way your application can detect particular values of CMOS settings. To write to CMOS you have to output a value to port 71h.

for eg -

Out 70h, 4 <----- 4 is offset of current hour  
In 71h, variable <----- variable contains current hour
Out 71h, 7 <----- change current hour in CMOS to 7
Make sure that you take the precaution of disabling all interrupts before reading or writing CMOS data. Use the assembly instructions CLI and STI before and after your block of code to do the read/write from CMOS.
0
 

Author Comment

by:ttsenis
ID: 6940299
the comment from paqladasu works but the following problem appears, on reboot the cmos checksum error appears (how do i avoid that), and by the way whats the length of cmos mem.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6979360
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder or Mindphaser will return to finalize these if they are still open in 7 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.11528958.html
http://www.experts-exchange.com/questions/Q.20027069.html
http://www.experts-exchange.com/questions/Q.20109793.html
http://www.experts-exchange.com/questions/Q.20109788.html
http://www.experts-exchange.com/questions/Q.20284952.html
http://www.experts-exchange.com/questions/Q.20289305.html
http://www.experts-exchange.com/questions/Q.20289308.html
http://www.experts-exchange.com/questions/Q.20293636.html
http://www.experts-exchange.com/questions/Q.20293637.html



*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
POINTS FOR EXPERTS awaiting comments are listed in the link below
http://www.experts-exchange.com/commspt/Q.20277028.html
 
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now