B&B Electronics PCRTC Owner's Manual

Stable real time clock for pcs

Advertisement

Quick Links

Not Recommended for New Installations.
Please contact Technical Support for more information.
Stable Real Time Clock for PCs
Model PCRTC
Documentation Number PCRTC2095
This product
Designed and Manufactured
In Ottawa, Illinois
USA
of domestic and imported parts by
B&B Electronics Mfg. Co. Inc.
707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
Internet:
http://www.bb-elec.com
orders@bb-elec.com
support@bb.elec.com
B&B Electronics March 1995
Documentation Number PCRTC2095 Manual
Cover Page
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PCRTC and is the answer not in the manual?

Questions and answers

Summary of Contents for B&B Electronics PCRTC

  • Page 1 Not Recommended for New Installations. Please contact Technical Support for more information. Stable Real Time Clock for PCs Model PCRTC Documentation Number PCRTC2095 This product Designed and Manufactured In Ottawa, Illinois of domestic and imported parts by B&B Electronics Mfg. Co. Inc.
  • Page 2: Table Of Contents

    ARDWARE NSTALLATION ...3 OFTWARE ETUP CHAPTER 3. OPERATION...4 ...4 VERVIEW SING THE EVICE RIVER OMMAND PTIONS PCRTC T ETTING THE EPLACING THE ATTERY ROGRAMMING WITH THE BASIC P UICK ROGRAMMING ASCAL ROGRAMMING ROGRAMMING XAMPLE CHAPTER 4. CALCULATING ERROR...12 PPM T ...12...
  • Page 3: Chapter 1. General Information

    Chapter 1. General Information Introduction The PCRTC is real time clock for PCs based on a highly stable oscillator circuit. Using the software driver provided, the PCRTC will update the DOS clock every minute, ensuring that all applications have access to accurate time information.
  • Page 4: Chapter 2. Setup

    The address settings are listed in Table 1, and are also printed on the PCRTC card. The PCRTC is shipped from the factory set for 200h. If you need to change this address, select one from the table which will not conflict with another device in the host computer.
  • Page 5: Hardware Installation

    Timeset and three example files written in C, Pascal, and QuickBASIC. These files demonstrate how to make function calls to the PCRTC from within a program and are listed in Chapter 3. The device driver will also be automatically installed in your CONFIG.SYS file and set for address 200.
  • Page 6: Chapter 3. Operation

    Loading the device driver in the CONFIG.SYS file will accomplish this function by setting the DOS clock to the PCRTC clock time once every minute. This allows the user and all applications access to the correct time without any special commands or function calls.
  • Page 7: Command Line Options

    DATE commands to first set the DOS clock, then use the /u command line option to set the PCRTC time and date to be equal to the DOS time and date. The time and date can also be set manually using the command PCRTC /t and PCRTC /d.
  • Page 8: Replacing The Battery

    The best method of updating the PCRTC time is to use the shareware program Timeset. Note that although this program is included on the PCRTC diskette, it is shareware and should be registered with its author. Timeset uses your modem to obtain the precise time from one of five atomic clocks in two continents, then sets your DOS time.
  • Page 9 Start_RTC_API Purpose: Initializes API, must be the first PCRTC function called in the program. int Start_RTC_API(unsigned int address); Pascal: FUNCTION Start_RTC_API(address: WORD): WORD; BASIC: FUNCTION StartRTCAPI% (BYVAL address AS INTEGER) Remarks: Start_RTC_API takes the address at which the PCRTC is installed at. The device driver must be installed.
  • Page 10 Get_RTC_Time Purpose : Returns the RTC time within a structure. struct GetTime_T { unsigned int hours; unsigned int min; unsigned int seconds; unsigned int h_seconds; int Get_RTC_Time(GetTime_T far *gt); Pascal : TYPE GetTime_T = RECORD hours: WORD; min: WORD; seconds: WORD; h_seconds: WORD;...
  • Page 11 Last_Power_Down_RTC Purpose: Returns date and time of last power down within a structure. struct TimeSave_T { unsigned int month; unsigned int day; unsigned int hour; unsigned int minute; unsigned int second; int Last_Power_Down_RTC(TimeSave_T far *ts); Pascal: TYPE TimeSave_T = RECORD month: WORD;...
  • Page 12: Pascal Programming Example

    QuickBASIC Example: '$INCLUDE: 'RTC_API.BI' DIM timeS AS TimeSaveT DIM time AS GetTimeT address% = StartRTCAPI(0) ‘Initialize API IF (address% <> 0) THEN IF (GetRTCTime(VARSEG(time), VARPTR(time)) <> 0) THEN PRINT “RTC time: “; time.hours; “:”; time.min; “:”; time.seconds; “.”; PRINT time.hseconds END IF IF (LastPowerDownRTC(VARSEG(timeS), VARPTR(timeS)) <>...
  • Page 13: C Programming Example

    { TimeSave_T *ts = (TimeSave_T *) malloc(sizeof(TimeSave_T)); GetTime_T *time = (GetTime_T *) malloc(sizeof(GetTime_T)); unsigned int battery; unsigned int address; cprintf("Demo (PCRTC-c) v1.00, (c) Copyright 1994, B&B Electronics Mfg. Co.\r\n\r\n"); address = Start_RTC_API(0); if (address) { if (Get_RTC_Time(time)) cprintf(“RTC time: %u:%u:%u.%u\r\n”, time->hours, time->min, time>seconds, time->h_seconds);...
  • Page 14: Chapter 4. Calculating Error

    (23 C), it will only exhibit 1 ppm error if its environment is held to this temperature. The worst case condition is if the temperature of the PCRTC is held at one of the extremes, 0 or 50 C. At these points, there will be an error of 5 ppm. If the temperature variation covers a smaller span, less error will be exhibited.
  • Page 15 Aging All crystal oscillators have an aging characteristic. The crystal used in the PCRTC uses the coldweld manufacturing technique, which exhibits the lowest aging characteristic of 1 ppm/year. In practice, this aging rate improves significantly with time, but for practical purposes the value of 1 ppm is adequate.
  • Page 16: B&B Electronics -- Po Box 1040 -- Ottawa, Il

    Appendix A. Hardware I/O Map I/O Map of XT Class Machines Hex Address Address Function in XT Class Machines 000-00F DMA controller (8237A) 020-021 interrupt controller (8259A) 040-043 timer (8253) 060-063 PPI(8255A) 080-083 DMA page register (74LS612) 0A0-0AF NMI - non maskable interrupt 200-20F game port joystick controller 210-217...
  • Page 17 Hardware I/O Map of AT Class Machines Hex Address Address Function in AT Class Machines 000-01F DMA controller #1 (8237A-5) 020-03F interrupt controller #1 (8259A) 040-05F timer (8254) 060-06F keyboard (8042) 070-07F NMI - non maskable interrupt & CMOS RAM 080-09F DMA page register (74LS612) 0A0-0BF...

Table of Contents

Save PDF