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.
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...
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.
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.
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.
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.
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.
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;...
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)) <>...
(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.
Need help?
Do you have a question about the PCRTC and is the answer not in the manual?
Questions and answers