home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 12891 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!caen!destroyer!ais.org!draper
  3. From: draper@ais.org (Patrick Draper)
  4. Subject: Re: Reading PC CMOS using Borland C
  5. Message-ID: <BtnyoB.7CE@ais.org>
  6. Keywords: CMOS C
  7. Organization: UMCC
  8. References: <$dougn.8.0@sasb.byu.edu>
  9. Date: Thu, 27 Aug 1992 22:33:45 GMT
  10. Lines: 32
  11.  
  12. In article <$dougn.8.0@sasb.byu.edu> $dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS) writes:
  13. >Hello 
  14. >
  15. >I posted this earlier, but asked the wrong question--my appologies to those 
  16. >that read it...here's the real thing:
  17. >
  18. >I am using Borland C and trying to read the CMOS in my PC.  Does anyone have 
  19. >any experience doing this?  Do I need to read from a port?  Any hints or 
  20. >help would be very welcome.
  21. >
  22. >Thanks
  23. >
  24. >___
  25. >Douglas R. Nebeker                             Internet: $dougn@sasb.byu.edu
  26. >Brigham Young University
  27. >SAS Computer Support
  28.  
  29. One thing that helps is to put extra intructions in the code to take up
  30. time. The CMOS is read by sending data out a port, then reading aonther
  31. port. Right after you send the first byte out your port, delay a couple
  32. milliseconds to let things settle down in the hardware, then go ahead and do
  33. your read.
  34.  
  35. Ahhhhhh! The things that just aren't written in books will astound you!
  36.  
  37.  
  38. ------------------////////////////////\\\\\\\\\\\\\\\\\\\\------------------
  39. | Patrick Draper           Disclaimer:  I can't control my fingers,        |
  40. | draper@umcc.ais.org                   I can't control my toes! - Ramones |
  41. | University of Michigan                                                   |
  42. | Computer Club                We are a nation of laws, not people         |
  43. ------------------\\\\\\\\\\\\\\\\\\\\////////////////////------------------
  44.