Home
Artisan Technology Group is your source for quality new and
Contents
1. Input Parameter Description Sends command to the bc620AT int command requested command action Note The following are defined in beutil h define CMD _WARMSTART 0x01 define CMD_COLDSTART 0x02 define CMD_JAM 0x03 define CMD_NO_JAM 0x04 define CMD_SYNC_RTC 0x05 RC_OK on Success RC_ERROR on Failure bcSetDac Prototype int bcSetDac int dacval Packet TD Input Parameter int dacval new d a value to modify frequency of internal oscillator Allowed values 0x0000 Oxffff RC_OK on Success RC_ERROR on Failure Description Set new dac value Note This command is not required for standard operation of the device Be sure to understand the effects of this operation before utilizing this command Datum Inc bc620AT Developer s Kit 3 3 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER THREE bcSetHbt Prototype int beSetHbt char mode int cnt1 int cnt2 Input Parameter char mode requested mode int cntl divisor 1 int cnt2 divisor 2 Returns RC_OK on Success RC_ERROR on Failure Description Program a periodic output synchronous or asynchronous to 1pps int bcSetPDelay long int delay RC_ERROR on Failure Description Program a propagation delay into the timing engine to account for delays introduced by long cable runs Note Usage of a propagation delay value with an absolute value larger than one millisecond or 10000 s
2. define PATH_TIME_UTC O lt lt 5 define PATH_DC_MOVING 1 lt lt 6 define PATH_DC_STATIC O lt lt 6 define PATH_FMT_BIN 1 lt lt 7 define PATH_FMT_BCD O lt lt 7 RC_ERROR on Failure Description Sets path bits which modify default operation of the bc620AT Refer to the hardware manual for more information on the use and effects of this function Note While this command works for all revisions of the bc620AT some firmware versions return the path value incorrectly in request packet 0 3 programmable data Please contact the factory for a firmware upgrade if you encounter problems reading back path data with nibble values higher than nine This does not affect operation of the device bcSetGain Prototype int beSetGain int gain Packet COE Input Parameter int gain digital to analog converter value for disciplining internal oscillator independent of selected reference source Returns RC_OK on Success RC ERROR on Failure Description Modifies the internal oscillator frequency Note This command is not required for standard operation of the device Be sure to understand the effects of this operation before utilizing this command 3 8 bc620AT Developer s Kit Datum Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com LIBRARY DEFINITION bcSetGenOff int beSetGenOff int offset PR RC_ERROR on Failure Note The function is only valid when th
3. A rtisan Artisan Technology Group is your source for quality TecmoogyGroup new and certified used pre owned equipment FAST SHIPPING AND SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT DELIVERY Experienced engineers and technicians on staff Sell your excess underutilized and idle used equipment TENS OF THOUSANDS OF at our full service in house repair center We also offer credit for buy backs and trade ins IN STOCK ITEMS www artisantg com WeBuyEquipment 7 EQUIPMENT DEMOS HUNDREDS OF InstraV ea REMOTE INSPECTION LOOKING FOR MORE INFORMATION MANUFACTURERS Remotely inspect equipment before purchasing with Visit us on the web at www artisantg com 7 for more our interactive website at www instraview com information on price quotations drivers technical LEASING MONTHLY specifications manuals and documentation RENTALS ITAR CERTIFIED D a gaa tia Contact us 888 88 SOURCE sales artisantg com www artisantg com bc620AT Developer s Kit 8500 0086 User s Guide November 1998 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER ONE INTRODUCTION 1 0 GENERAL The bc620AT Developer s Kit is designed to provide a suite of tools useful in the development of applications which access features of the Datum bc620AT Time amp Frequency Processor This kit has been designed to provide an interface between the bc620AT and applications developed for Wi
4. Returns RC_OK on Success RC_ERROR on Failure Description Sets the time code generator format Datum Inc bc620AT Developer s Kit 3 5 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER THREE bcSetRTC Prototype int beSetRTC char year char month char mday char hour char min char sec Input Parameter char year year 1980 2079 4 characters char month month Jan 1 2 characters char mday month day e g Jan 1 01 2 characters char hour hour 2 characters char min minute 2 characters char sec second 2 characters Note These are fixed length fields passed exactly as given to the be620AT It is not necessary to null terminate the arrays Returns RC_OK on Success RC_ERROR on Failure Description Set the time in the Real Time Clock chip Note This does not effect the time in the time buffers unless the bc620AT is operating in RTC mode Mode Three The time in the RTC chip is initialized to Jan 1 1900 each time the hardware is reset and this time is NOT used in any other mode of operation beSetLocOff int bcSetLocOff int offset Input Parameter int offset hours from input time source 11 12 Returns RC_OK on Success RC_ERROR on Failure Description Programs the bc620AT to operate at an offset from UTC Note The function is only valid when the bc620AT is operating in GPS mode Mode Four 3 6
5. register keys The registry utility needs to know the base address set on the be620AT hardware and an interrupt level if any interrupt jumpers were set The command syntax can be queried by executing the program with no parameters bereg 0x300 0 In this example the base address is set to hex 300 and the interrupt is ignored A sample of the output from the command is shown below C gt bereg 0x300 0 Using Windows 95 Using base address 0x300 Interrupt disabled Registry info set up If this key were being set up for the first time a message would be displayed indicating that the system must be rebooted before the changes will take effect 2 4 TEST INSTALLATION Use the compiled version of the example program supplied in the Developer s Kit to test the installation 2 2 bc620AT Developer s Kit Datum Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com INSTALLATION If a device open error is received the hardware interface was not installed or configured properly Verify that the correct driver was installed according to the guidelines above hardware interface was not configured correctly Verify the base address of the installed bc620AT and use the registry utility in the utils subdirectory to reconfigure the driver If the error persists an address conflict may exist with some other piece of hardware in the system Try changing the hardware address of the bc620AT and
6. bc620AT Developer s Kit Datum Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com LIBRARY DEFINITION bcRequest Prototype int bcRequest unsigned char reqno char sout Packet OO S O Input Parameter unsigned char reqno requested data packet char sout buffer to data packet requested Note The following are defined in bcutil h define REQ_RTC_TIME 0x00 define REQ DAC_VALUE 0x01 define REQ LEAP _SEC 0x02 define REQ PROG_DATA 0x03 define REQ MOD_VER 0x04 define REQ _ YEAR 0x05 Returns RC_OK on Success RC_ERROR on Failure Description Returns requested data packet from bc620AT Note Return packets two leap seconds and five year are only valid when the bc620AT is operating in GPS mode Mode Four Datum Inc bc620AT Developer s Kit 3 7 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER THREE Packet PO Input Parameter int path requested path value in lower 8 bits Note The following are defined in beutil h define PATH_DIAG_OFF 1 lt lt 0 define PATH_DIAG_ON 0 lt lt 0 define PATH_LEAP_ON 1 lt lt 1 define PATH_LEAP_OFF 0 lt lt 1 define PATH_JAM_OFF 1 lt lt 2 define PATH_JAM_ON 0 lt lt 2 define PATH_DISC_OFF 1 lt lt 3 define PATH_DISC_ON 0 lt lt 3 define PATH_ECHO_ON 1 lt lt 4 define PATH_ECHO_OFF O lt lt 4 define PATH_TIME_GPS 1 lt lt 5
7. both Windows 95 and Windows NT This is made possible by the use of the Blue Waters Systems WinRT package as a hardware abstraction layer A discrete 32 bit console application is provided in the Developer s Kit which can be distributed to end users to configure registry keys to access the hardware interface Datum Inc bc620AT Developer s Kit 1 1 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER TWO INSTALLATION 2 0 GENERAL Installation of the Developer s Kit is handled by the installer program Following the installation the user must set up the appropriate hardware driver and registry key information for the operating system The following steps are required for a full system installation e Use the setup exe program on the Developer s Kit to install the kit e Copy the appropriate hardware driver to the system location e Use the supplied registry utility to configure the registry keys e Use the compiled example programs to test the system Note A reboot is necessary after configuring the registry entries for the first time 2 1 CONFIGURATION Directory structures are created in the specified location These structures contains all required files to develop 32 bit user applications In addition copies of the hardware driver files and configuration utilities are provided for redistribution with user developed 32 bit applications Directory of dist E
8. e bc620AT is operating in GPS mode Mode Four Datum Inc bc620AT Developer s Kit 3 9 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com A rtisan Artisan Technology Group is your source for quality TecmoogyGroup new and certified used pre owned equipment FAST SHIPPING AND SERVICE CENTER REPAIRS WE BUY USED EQUIPMENT DELIVERY Experienced engineers and technicians on staff Sell your excess underutilized and idle used equipment TENS OF THOUSANDS OF at our full service in house repair center We also offer credit for buy backs and trade ins IN STOCK ITEMS www artisantg com WeBuyEquipment 7 EQUIPMENT DEMOS HUNDREDS OF InstraV ea REMOTE INSPECTION LOOKING FOR MORE INFORMATION MANUFACTURERS Remotely inspect equipment before purchasing with Visit us on the web at www artisantg com 7 for more our interactive website at www instraview com information on price quotations drivers technical LEASING MONTHLY specifications manuals and documentation RENTALS ITAR CERTIFIED D a gaa tia Contact us 888 88 SOURCE sales artisantg com www artisantg com
9. ndows 95 and Windows NT environments In addition to the interface DLL two example programs are provided complete with source code in order to provide a better understanding of the kit features and benefits 1 1 FEATURES The salient features of the Developer s Kit include e Interface library with access to all features of the bc620AT Hardware driver for Windows NT and VxD for Windows 95 Example programs with source utilizing the interface library Console application to configure registry keys User s Guide providing a library definition 1 2 OVERVIEW The Developer s Kit was designed to provide an interface to the bc620AT Time amp Frequency Processor in the 32 bit environments of Windows 95 and Windows NT The example programs were developed under Microsoft Visual C 5 0 The example programs provides sample code which exercise the interface DLL as well as examples of converting many of the ASCII format data objects passed to and from the device into a binary format suitable for operation and conversion The example programs were developed using discrete functions for each operation which allows the developer to clip any useful code and use it in their own applications A resource file is included with interface dialogs to allow the operator of a program to set any configurable parameters for operating the bc620AT hardware Application programs developed using the 32 bit interface DLL are binary compatible with
10. reconfiguring the driver before executing the example program again 2 5 PROJECT CREATION You can easily rebuild Bc620atDemoCpp exe and bc620atClockCpp exe by opening the corresponding project file with Visual C 5 0 If you want to use beutil dll in your own MFC project you may follow the instructions below 1 Insert beutil lib into your project 2 If building a new project similar to be620atDemoCpp you don t need to change the default settings of the project 3 If building a new project similar to bc620atClockCpp you may need to change the project settings a For both debug version and release version go to C C tab select Precompiled Headers category and then check Not using precompiled headers button Next go to the Link tab select General category and add beutil lib lib to Object Library Module edit box b For release version Link tab select Customize category and then check Force File Output box Datum Inc bc620AT Developer s Kit 2 3 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER THREE LIBRARY DEFINITIONS 3 0 GENERAL The interface library provides functions for each of the programming packets supported by the bc620AT Time and Frequency Processor with the exception of the GPS packet J In addition functions are provided to both read and write individual registers on the card To understand the usage and effects of each of
11. ted register bcReadTime Prototype int bcReadTime unsigned char sout Input Parameter unsigned char pointer to output string This string will be filled with eight bytes corresponding to TIME0 TIME7 Note This array is NOT null terminated Returns RC_OK on Success RC_ERROR on Failure Description Latches and returns time captured from the time registers bcSetMode Prototype int beSetMode unsigned char mode Input Parameter unsigned char indicating requested operating mode Note The following are defined in beutil h define MODE IRIG 0x00 define MODE_FREE 0x01 define MODE_lIpps 0x02 define MODE _RTC 0x03 define MODE _GPS 0x04 Returns RC_OK on Success RC_ERROR on Failure Description Sets the operating mode of the bc620AT 3 2 bc620AT Developer s Kit Datum Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com LIBRARY DEFINITION Prototype int bcSetTime char day char hour char min char sec Packet BO Input Parameter Returns char day Julian day number Jan 1 001 3 characters char hour hour 2 characters char min minute 2 characters char sec second 2 characters Note These are fixed length fields passed exactly as given to the be620AT It is not necessary to null terminate the arrays RC_OK on Success RC_ERROR on Failure Description Set the major time buffer Prototype int beCommand int command
12. teps requires first that the user disable jamsynchs Refer to the hardware manual for more information bcSetTcIn Prototype int bcSetTcIn int format int type Input Parameter int format time code format int type modulation type of time code Note The following are defined in beutil h format define TCODE_IRIG_A 0x00 define TCODE_IRIG_B 0x01 define TCODE_2137 0x02 define TCODE_NASA36 0x03 define TCODE_XR3 0x04 type define TCODE_MOD_AM 0x10 define TCODE_MOD_DC 0x11 RC_OK on Success RC_ERROR on Failure Description Sets time code type and format for operating mode 0 time code mode 3 4 bc620AT Developer s Kit Datum Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com LIBRARY DEFINITION bceSetClkSrc int bcSetClkSre int which Input Parameter int which which clock source internal external Note The following are defined in beutil h define CLK_INT 0x00 define CLK_EXT 0x01 Returns RC_OK on Success RC_ERROR on Failure Description Sets the 1OMHz clock source for the bc620AT Note This command is not required for standard operation of the device Be sure to understand the effects of this operation before utilizing this command bcSetGenCode Prototype int beSetGenCode int format Input Parameter int format time code format Note The following are defined in beutil h define GEN_IRIG_B 0x00 define GEN_IRIG_H DC 0x01
13. these functions please refer to the User s Guides provided with the hardware 3 1 FUNCTIONS Note Library functions beOpen and bcClose are not applicable for 16 bit applications Prototype int bcOpen int devno N A Device Number Note This value must be set to 0 RC_OK on Success RC_ERROR on Failure Description This opens the underlying hardware layer The developer s kit currently only supports one hardware device per application int beClose void N A Input Parameter None Returns RC_OK on Success RC_ERROR on Failure Description Closes the underlying hardware layer bcGetByte Prototype int bcGetByte unsigned char page int offset unsigned char value N A Input Parameter page bc620AT Page Register offset 0 Based Offset of Requested Register value Pointer to Unsigned Char to Return Value Requested Returns RC_OK on Success RC_ERROR on Failure Description Returns the contents of the requested register Datum Inc bc620AT Developer s Kit 3 1 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER THREE bcSetByte Prototype int bcSetByte unsigned char page int offset unsigned char value Input Parameter page bc620AT Page Register offset 0 Based Offset of Requested Register value Pointer to Unsigned Char to Value to be Set Returns RC_OK on Success RC_ERROR on Failure Description Sets the contents of the reques
14. xample Programs Bc620atDemoCpp This directory contains all the files for rebuilding the example program Directory of dist Example Programs Bc620atClockCpp This directory contains all files for rebuilding the example program Directory of dist Example Programs Hardware Libraries This directory contains compiled dll and lib files Directory of dist Hardware Drivers This directory contains Windows 95 and WinNT Drivres Directory of dist Utility Programs This directory contains three exe programs Directory of dist Documentation This directory contains the manual for the software developer s kit Datum Inc bc620AT Developer s Kit 2 1 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com CHAPTER TWO 2 2 HARDWARE DRIVER INSTALLATION A hardware driver handles the underlying I O space access in the Developer s Kit routines A service is used for Windows NT and a virtual device driver for Windows 95 Copy the appropriate file for the host platform from the Developer s Kit util subdirectory into the defined location Windows NT WINRT SYS windir S YSTEM32 DRIVERS Windows 95 WRTDEVO0 VXD windir S YSTEM VMM32 2 3 BOARD ADDRESS CONFIGRATION Use the supplied registry utility bcreg exe to configure the registry keys The keys differ with the host OS The utility will determine the correct operating system and create and or modify the appropriate
Download Pdf Manuals
Related Search
Related Contents
F200CET`06(6AL1) FL200CET`06(6AM1) CUMA de Gabriac ISTRUZIONI PER L`USO Projet Philo sur La classe Scuba Series 720P Samsung HMX-H300BP User Manual manuals/induktion/PRO 3000 Win-GRAF-User-Manual-english V1.01 Dachrinnen- Reinigungsroboter Architectural Mailboxes 2480W Installation Guide Copyright © All rights reserved.
Failed to retrieve file