background image

6

Documentation Number PCRTC2095 Manual

B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350

PH (815) 433-5100 -- FAX (815) 433-5105

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. The batch file RTCSET.BAT included in the
Timeset directory should be used in conjunction with Timeset.
Running the batch file will execute the following operations. Note
that the device driver PCRTCDD.SYS must be installed to run the
batch file. Before running Timeset or the batch file, you will need to
configure Timeset for your modem and preferences. Documentation
files are included in the Timeset directory.

1.

Update the DOS time to the PCRTC time

2.

Disable the device driver

3.

Run Timeset

4.

Update the PCRTC to the corrected DOS time

5.

Enable the device driver

Using Timeset allows the PCRTC time to be updated to within

0.1

seconds of the atomic clock selected. The small discrepancy in time
is dependent on the speed of the host computer and background
activities on the host computer.

Replacing the battery

The PCRTC uses a lithium AA 3.6V battery to maintain its

clock while the host computer is off. Replacement batteries must be
rated between 3 and 4 volts. Batteries can be ordered through B&B
as part number 3345. After replacing the battery, the PCRTC needs
to be reinitialized. If the device driver loads in your config.sys file,
the card will automatically be initialized, otherwise, the command
line option PCRTC {address} /I can be used. After replacing the
battery, the time and date must be reset.

Programming with the PCRTC

If you are writing your own application, you may wish to

access the status features of the PCRTC in addition to accurate
timekeeping. An “include” file for C, Pascal, and QuickBASIC is
provided to allow simple function calls to check battery status
and the time of last power down or reset. Sample programs
demonstrating how to make these calls are provided in each of the
three languages. The device driver keeps the DOS clock updated to
the correct time, so accurate time can be obtained using the
standard DOS calls.

Summary of Contents for PCRTC

Page 1: ...C2095 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 43...

Page 2: ...HARDWARE SETUP 2 TABLE 1 ADDRESS SWITCH SETTINGS 2 HARDWARE INSTALLATION 3 SOFTWARE SETUP 3 CHAPTER 3 OPERATION 4 OVERVIEW 4 USING THE DEVICE DRIVER 4 COMMAND LINE OPTIONS 5 SETTING THE PCRTC TIME AND...

Page 3: ...reset Packing List Examine the shipping carton and contents for physical damage The following items should be in the shipping carton 1 PCRTC unit 2 One PCRTC 3 5 disk 3 This instruction manual If any...

Page 4: ...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 If the PCRTC does not operate properly select a new a...

Page 5: ...n Chapter 3 of this manual or by the device driver If you are using the device driver it will automatically initialize the PCRTC when it loads Upon initialization a warning will appear stating that th...

Page 6: ...take action on a low battery before the time is corrupted The second function is the time of last power loss or reset By checking this function the time of the last host computer power loss or system...

Page 7: ...CRTC c address Display PCRTC and DOS clock PCRTC u address Set PCRTC date time to DOS date time PCRTC n address Set DOS date time to PCRTC date time PCRTC h address Increment hours 1 for Daylight Savi...

Page 8: ...time to be updated to within 0 1 seconds of the atomic clock selected The small discrepancy in time is dependent on the speed of the host computer and background activities on the host computer Replac...

Page 9: ...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 Returns 0 d...

Page 10: ..._T far gt Pascal TYPE GetTime_T RECORD hours WORD min WORD seconds WORD h_seconds WORD END TYPE GetTime_Ptr GetTime_T FUNCTION Get_RTC_Time time GetTime_Ptr WORD BASIC TYPE GetTimeT hours AS INTEGER m...

Page 11: ...ve_T far ts Pascal TYPE TimeSave_T RECORD month WORD day WORD hour WORD minute WORD second WORD END TYPE TimeSave_Ptr TimeSave_T FUNCTION Last_Power_Down_RTC timeSave TimeSave_Ptr WORD BASIC TYPE Time...

Page 12: ...imeS day PRINT at timeS hour timeS minute timeS second END IF IF BatteryRTC THEN Check Battery Status PRINT Battery Status GOOD ELSE PRINT Battery Status LOW END IF ELSE PRINT Device Driver PCRTCDD SY...

Page 13: ...gned 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 tim...

Page 14: ...dependent on the quality of the oscillator circuit There are three sources of error in the oscillator and understanding them will allow you to estimate the precision of the PCRTC in your application...

Page 15: ...he 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...

Page 16: ...ontroller 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 expansion unit 2E8 2EF COM4 seri...

Page 17: ...ller 2 8237A 0F0 0FF 80287 math coprocessor 1F0 1F8 hard disk 200 20F game port joystick controller 258 25F Intel Above Board 278 27F parallel printer port 2 2E8 2EF COM4 serial port 2F8 2FF COM2 seri...

Reviews: