B&B Electronics PCRTC manual StartRTCAPI, BatteryRTC

Page 9

Start_RTC_API

Purpose: Initializes API, must be the first PCRTC function called in the program.

C: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.

Returns: 0 = device driver is not installed. non zero = address of PCRTC.

Example: See below.

Battery_RTC

Purpose: Check battery status of PCRTC

C:int Battery_RTC(void);

Pascal: FUNCTION Battery_RTC: WORD;

BASIC: FUNCTION BatteryRTC%

Returns: 1 if battery is good 0 if battery is low

Example: See below.

Documentation Number PCRTC2095 Manual

7

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

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

Image 9
Contents Electronics Mfg. Co. Inc Designed and Manufactured Ottawa, IllinoisInternet Table of Contents General Information SpecificationsIntroduction Packing ListHardware Setup SetupSoftware Setup Hardware InstallationUsing the Device Driver OperationOverview Setting the Pcrtc Time and Date Command Line OptionsProgramming with the Pcrtc Replacing the batteryStartRTCAPI BatteryRTCWord GetRTCTimeLastPowerDownRTC Pascal Programming Example QuickBASIC ExampleProgramming Example Calculating Error Oscillator ErrorPPM Terminology Aging Map of XT Class Machines Appendix A. Hardware I/O MapHardware I/O Map of AT Class Machines