Home
Check-MATE USER`S MANUAL
Contents
1. g gu A Be LE pm Wey EFS SIN3PTTHLERI LASTI ob et FII i a c mr Lar oS pr HALL HEE 4 Lic m E is PS na3 m D x i Ln ee ler E di i T zm wr Fai Lo 22 www chk mate info Overton Instruments CHECK MATE USER S MANUAL Appendix C Mechanical Dimensions 4 40 x4 Hex Pan Head Screws Overton Instruments 23 www chk mate info
2. clear transmit buffer Get device prompt sprintf send data Y s r PutString port send_data send CR if resp_len GetString port sizeof read_data read_data 0 printf Time out error n exit 1 if stremp read data printf Incorrect promt n exit 1 Master Clear sprintf send data s r master clear PutString port send data send CK MC Overton Instruments Set DIO direction amp weak pull up sprintf send data s s r set dio dir 10000000 PutString port send data send CK PD10000000 sprintf send data s s r set dio pullup 10000000 PutString port send data send CK PU10000000 Execute test sequence for dut ch 0 dut ch gt 7 dut_ch exercise DUT gain performance for gain sel 0 gt 3 gain_sel if gain sel 0 dut gain 4095 1 range if gain_sel 1 dut_gain 409 x10 if gain_sel 2 dut_gain 40 x100 if gain_sel 3 dut_gain 4 x1000 build dio control byte a_byte dut_ch gain_sel 8 for idx 0 idx lt 7 idx dio_bit idx a byte 2 a_byte 2 sprintf dio byte idx d dio bit idx Select DUT gain amp amp ch sprintf send data s s r set dio port dio byte PutString port esend data send do Get DIO input check DUT ready sprintf send data Jos W get dio port PutStr
3. Oi BUS interface which is a 10 pin header that includes a 3 wire SPl bus chip select logic power and ground In PC applications connector J1 is replaced with the USB MATE The USB MATE contains a USB connector for the PC and a dual set of 7 headers that mount to the Check MATE The USB MATE is designed to interpret a set of ASCII commands sent from the PC and then per form various Check MATE functions For more information on the Check MATE command set go to Appendix A To support embedded applications a complete driver for the Check MATE is provided in TES MATE or Test Executive Suite After power is applied to the Check MATE the analog inputs are configured for single ended 0 5V range the analog output is set to zero range is 0 10V and the digital I O circuit is cleared all bits inputs _ Combinations of Changing the 1 4 Differential 8 Single Ended Differential and Single Ended MUX Assignment On the Fly CHANNEL CHANNEL CHANNEL 011 UNLSED 7 jST CONVERSION 7 CONVERSION 19557 Overton Instruments 7 www chk mate info CHECK MATE USER S MANUAL 2 2 Board Layout J5 5 Pin Terminal Provides access to SPI bus control signals J4 2 Pin Terminal DAC output Pin 1 E Pin 2 14 Dcm FAD J2 10 Pin Terminal Provides access to the digital I O J4 9 Pin Te
4. 1LSB no missing codes 12 bit 0 10V 10V 5mA max 4uS max to 1 2 LSB 1 LSB 8 bits bidirectional TTL x25mA source sink Oi Bus interface Optional USB module 5VDC 10 3mA 0 50 C 25 X25 6 www chk mate info CHECK MATE USER S MANUAL 2 Description 2 1 Hardware Details Access to Check MATE hardware is made possible through a convenient set of screw terminal connections J2 J5 and J6 which consolidates all signals into a single 40 pin header The analog inputs or channels can be programmed for any combination of sin gle ended or differential operation The diagram below shows examples of vari ous configurations You will also note the polarity of connections related to differ ential operation can be transposed as well Each channel can be programmed for anyone of 4 different range modes i e 0 5V 5 0 10V and 10V Keep in mind the circuit provides 25V protection on each channel The single analog output channel can be programmed for either unipolar 0 10V or bipolar 10V operation The digital circuit includes 8 independent I O bits Each bit can be programmed for either input or output While in the input mode a bit can be programmed to provide a weak pull up 10K Each bit provides a TTL logic level and can source sink 25mA External control of the Check MATE can be provided by a embedded controller such as the Micro MATE or with a PC Embedded control is supported by J1
5. Input CH 7 A TTL active low input signal that determines unipolar 1 bipolar 0 for the DAC Input CH 8 UNI BIP Analog Ground Digital Ground A TTL active low output signal that indicates the ADC is busy converting a measurement Description 5 Power Part of a 3 wire SPI Bus Use with DIO for possible external control in Ir Description Part of a 3 wire SPI Bus Use with DIO for possible external control 1 DAC OUT O Voltage Output 2 AGND Analog Ground Part of a 3 wire SPI Bus Use with DIO for possible external control Digital Ground Overton Instruments 9 www chk mate info CHECK MATE USER S MANUAL 2 4 J6 Consolidated Description 5V Power Bit Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Digital Ground DAC OUT Voltage Output AGND Analog Ground Input CH 1 Input CH 2 Input CH 3 Input CH 4 Input CH 5 Input CH 6 Input CH 7 Input CH 8 Overton Instruments 10 www chk mate info CHECK MATE USER S MANUAL 3 Operation 3 1 Embedded Control In section 3 1 1 on the next page the Check MATE is shown integrated with other ETS Series components that collectively form a complete Embedded Test oolution The diagram shows the Check MATE being driven by the Micro MATE The Micro MATE is a low cost Embedded Test Controller which stores a spe cial program that is designed to exercise the device under test and generate Go No Go t
6. Communications Pork vi Communications Pork COMz 5 ECP Printer Port LPT1 29 Ol Serial Interface COM3 4 Processors e Sound video and game controllers d System devices Universal Serial Bus controllers Intel R 8260144 USB Universal Host Controller 2 OI USB Interface lt 4 USE Root Hub Overton Instruments 16 www chk mate info CHECK MATE USER S MANUAL 3 2 1 2 Virtual Instrument Panel The Virtual Instrument Panel or Control GUI removes the hassle of manually typing ASCII commands and provides the User a more efficient method to inter act and control the Check MATE Download the panel from our website at www check mate com click on downloads and select Check Matexxx exe Third Step After initializing the module Second Step Push the Initialize should send back a unique ID code If no First Step The User must select a COM Port Refer to the Device Manage to iden tify an available COM port This Range function selects 1 of 4 specific analog input modes Each Analog Input CH can be set to a different range setting The Analog Input CH func tion selects an individual analog channel 1 to 8 This Range function selects either Unipolar or Bipolar operation The Enable function updates The DIO Trigger function updates the DIO configura the analog output settings tion settings button This will cause the module
7. Get module ID lt CHECK MATE vx x gt Get current identification and version number lt gt lt gt lt gt CK_MR Reset amp initialize the module Set single ended channel configuration c ADC channel number 1 to 8 CK SScr Set single ended r ADC range 1 5 2 5V 10V 4 configuration 10V If 0 then all channels are set to same range Set differential channel configuration c ADC channel number 1 to 4 p ADC polarity 0 1 CK_SDcpr Set differential r ADC range 1 5V 2 5 10V 4 configuration 10V If c 0 then all channels are set to p and same polarity and range Overton Instruments 19 www chk mate info CHECK MATE USER S MANUAL Appendix A Serial Command Set cont Function Response Description Configure and read a specific ADC channel c ADC channel number 1 to 8 SE or 1 to 4 Diff m ADC mode S Single Ended D Differential Configure channel p ADC polarity 0 1 and get voltage r ADC range 1 5V 2 5 10V 4 measurement 10V f Data format D Decimal H Hexa decimal The voltage measurement contains a series of ASCII bytes representing a 12 bit value which is expressed in counts 0 4095 or 000 FFF CK_RC cmprf Auto scan all ADC channels and return read ings based on presets from channel configu ration commands CK SS and CK SD The me
8. and determines the PASS FAIL results The Check MATE is controlled by a remote PC via a USB interface define MSWIN serial comm libraries from define MSWINDLL www wcscnet com include lt comm h gt include lt stdlib h gt include lt stddio h gt int stat 0 byte 0 a cnt 0 int idx 0 int dut_ch 0 dut_gain 0 gain_sel 0 int dio bit 10 0 long value 0 limit 0 char dio byte 10 dir byte 10 results 64 char send data 64 read data 64 char get adc volts CK RC configure amp read a single ADC channel char set dac range CK DM set DAC voltage range char set dac out CK SA set DAC output voltage char set dio dir CK PD set DIO port direction char set_dio_pullup PU set DIO port pull up char set dio port set DIO port write char get dio PB get DIO port char get device id CK_ID get module ID char master clear MC master clear main i port OpenComPort 1 256 64 Open COM 1 rx buff 256 bytes tx buff 64 if stat SetPortCharacteristics port BAUD19200 PAR EVEN LENGTH 8 STOPBIT 1 PROT RS232bERR NONE printf Error d setting characteristics Wn stat exit 1 CdrvSetTimerResolution port 1 1 msec ticks SetTimeout port 2000 2000 ticks 2 sec time out FlushReceiveBuffer port clear receiver buffer FlushTransmitBuffer port
9. hardware accord ingly In order to be recognized by the PC the USB MATE module requires a set of Windows drivers be installed To do so go to www Check MATE info click Download select the Ol VCP Interface file and follow the prompts The letters VCP stands for Virtual COM Port and is a method by which the USB interface can appear to the PC as a standard serial COM port With the drivers installed and the USB MATE connected to the PC go to the Device Manager click on Ports and verify Ol Serial Interface COM is included The diagram below provides a basic illustration of a PC driven configuration As shown the Check MATE is used to stimulate a hybrid module in a test amp meas urement application The hybrid module is a mix signal device that requires Ana log I O as well as Digital to function properly PC Control 4LYW HAIIHD 4 B GOES Analog In Digital I O Analog Out po er eee Control GUI Add a USB Hub sto drive multiple Check MATEs and or other Typical H it M OI instruments ypical Hybrid Circuit Module Overton Instruments 15 www chk mate info CHECK MATE USER S MANUAL 3 2 1 PC Programming The starting point for developing code to control the Check MATE begins with acquainting yourself with its Serial Command Set The serial commands are a sequence of ASCII characters that originate from the PC and are designed t
10. to initialize itself and attempt to establish a communications link Check MATE CONTROL GUI DEVICE ID Check MATE 01 Hange Analog Input CH Volt Meter 4 5 2 50 Wde 5vdc 0 10de FT de 0 ACQUIRE Range Output Voltage 1 400 6 00 0 00 210 4 200 IET Enable d 0 00 10 00 STATUS Get Device ID The STATUS message box summarizes results of the serial commands Overton Instruments 17 response has occurred within 10 seconds the program will time out and generate a No Response message The Volt Meter displays a voltage measurement based the current analog channel and range setting The ACQUIRE function updates the analog con figuration settings and displays a measurement every 100msec The Output Voltage func tion updates the analog configuration settings and displays a measurement every 100msec This function panel allows the User to control the DIO circuit The top section provides a tool for setting the bit direction A blank circle indicates input and a dot circle indicates out put The middle section includes a set of eight LED s which indicate input status The bottom section includes eight push button switches which allow the setting of output bits When the switch is the out position that represents a logic 0 When the switch is in the in position that re
11. EMBEDDED TEST SOLUTIONS CHECK MATE Multifunction DAQ Module HC Dea UNIVERSAL SERIAL BUS 4ILYW AISIHD 22 USER S MANAUAL Overton Instruments overton 5431 Auburn Blvd 196 INSTRUMENTS Sacramento CA 95841 www microATE net CHECK MATE USER S MANUAL NOTICE The information contained in this document is subject to change without notice To the extent allowed by local law Overton Instru ments Ol shall not be liable for errors contained herein or for incidental or consequential damages in connection with the fur nishing performance or use of this material No part of this docu ment may be photocopied reproduced or translated to another language without the prior written consent of Ol WARNING The instrument you have purchased and are about to use may NOT be an ISOLATED product This means that it may be sus ceptible to common mode voltages that could cause damage to the instrument SUCH DAMAGE IS NOT COVERED BY THE PRODUCT S WARRANTY Please read the following carefully before deploying the product Contact Ol for all questions WARRANTY Ol warrants that this instrument will be free from defects in materi als and workmanship under normal use and service for a period of 90 days from the date of shipment OI obligations under this war ranty shall not arise until the defective material is shipped freight prepaid to Ol The only responsibility o
12. L MM 2 an MM 3 MM 4 _ MM 5 MM 6 MM 7 MM 8 MM 9 10 MM 11 MM 12 MM 13 MM 14 MM 15 16 MM 17 _ MM 18 MM 19 MM 20 Overton Instruments 11 www chk mate info CHECK MATE USER S MANUAL 3 1 1 Embedded Configuration Mechanical Test Fixture Device Under Test Bar Code Scanner Test Results Ticket BED OF NAILS COM 1 DUT SOURCE lt 53 instrument 9Vdc zz EE rc ES OZO Se usa LZA 2 O Universal Test Control Panel POWER START TEST MODE SELECT Q RUN PASS FAIL LCD oee Oi Bus Interface Oi Bus Interface COMA MATE Interface TCI MATE E O 0 0 Test Control Interface MICRO MATE EMBEDDED TEST CONTROLLER Automated Test No PC Required Overton Instruments 12 www chk mate info CHECK MATE USER S MANUAL 3 1 2 Embedded Programming To build on the PCB board test example shown in section 3 1 1 we have con structed a demo program using BASCOM BASCOM is a BASIC language com piler that includes a powerful Windows IDE Integrated Development Environ ment and a full suite of QuickBASIC like commands and statements demo program which is outlined in section 3 2 3 illustrates the ease of control ling the Check MATE via the Micro MATE microcontroller The program starts by initialing the Micro
13. MATE for proper operation You will note that the BASCOM software provides excellent bit manipulation capabilities as evident by the use of the ALIAS statement The Micro MATE P1 7 amp P1 6 port bits are assigned unique label names i e SCLK DOUT which are used to support various Check MATE functions In the Main program section the Micro MATE receives high level serial commands from a host PC parses them and then executes accordingly When for example the 4501 com mand is entered the program selects analog channel number 4 S for single ended 0 for polarity 1 for 5V range and returns the results a character hexadecimal ASCII string Independent of the microcontroller hardware or programming language you choose the program sequence described above will likely resemble the way you implement your Check MATE application For this reason we suggest that you go to our website and download the Check MATE zip file In the Documents folder will contain more extensive examples of routines to control the Check MATE Overton Instruments 13 www chk mate info CHECK MATE USER S MANUAL 3 1 3 Embedded Program Example Program CHECK MATE Demo Initialization large romstart amp H2000 default Xram Dim A_word Chk_word Chk_val As Word Dim A_num A_byte A_cnt A_ch Chk_cntl_byte Chk_loop Chk_m_cnts As By
14. NVERTER OUTPUT EMBEDDED INTERFACE lt DIGITAL a 8 BITS e Overton Instruments 4 www chk mate info CHECK MATE USER S MANUAL 1 2 Highlights BENEFITS e A flexible low cost alterna tive to expensive PC based DAQ cards e Supports a wide array of mix signal test applications e Great for embedded solu tions place inside mechani cal test fixtures instrument boxes or rack mount enclo sures APPLICATIONS Burn In Engineering Depot Repair Production Test QA QC Quality Control OEM Test Instruments FEATURES e 8 SE 4 DIFF Analog Input Channels 12 bit Resolution 100ksps sample rate 1 Channel Digital to Analog converter 12 bit Resolution Unipolar Bipolar modes 8 Digital Input Output Bits Independently programmable USB or embedded control interface Low Cost Compact size a 2 5 x 2 5 PCB with four 4 mounting holes in each corner Spacers and hardware included Overton Instruments www chk mate info 1 3 Specifications Overton Instruments Analog Inputs Number of inputs Input Ranges Resolution Sample Rate Nonlinearity Analog Output Resolution Range Current settling Time Relative Accuracy Digital I O Number of lines Logic Levels Input Control Embedded USB Interface General Power Supply Operating Temp Dimensions CHECK MATE USER S MANUAL 8 SE 4 DIFF programmable 0 5V 0 10V 5V 10V 12 bit 100ksps
15. X A SERIAL COMMAND SET 19 APPENDIX B SCHEMATIC 21 APPENDIX C MECHANICAL DIMENSIONS 22 Overton Instruments 3 www chk mate info CHECK MATE USER S MANUAL 1 Introduction 1 1 Overview The Check MATE has all the primary features you expect in a general purpose data acquisition board but for a fraction of the cost It offers 8 single or 4 differ ential analog inputs with 12 bit resolution and a sampling rate of 100ksps Each of the analog inputs can be programmed for unipolar or bipolar operation Likewise the analog output uses a 12 bit DAC and operates in unipolar or bi polar modes In addition there are 8 digital input output lines which are inde pendently programmable The Check MATE is made available in two versions a standard model or with a USB option The standard model is designed for embedded applications and provides a simple Oi BUS interface for control by a external microcontroller With the USB option many test solutions can be quickly built by connecting the Check MATE to a PC laptop or desktop and then running our GUI software No external power source is required since power is supplied through the USB interface Any either case easy access to the hardware is made available through a convenient collection of screw terminal connectors CHECK MATE BLOCK DIAGRAM 12 BIT A D EE 8 SE 4 DIFF EU 15V 5 gt DC DC prs USB INTERFACE OPTIONAL CONTROL 12 BIT D A ANALOG INTERFACE t CO
16. a tions link between the two The default protocol is 19200 baud rate no parity 1 stop bit and no flow con trol The Check MATE will respond to a unique set of ASCII serial data commands listed below The first three bytes of the command string starts with the prefix followed by a code that represents the actual command All commands are upper case sensitive and are terminated with a carriage return If the command is valid the Check MATE will return either lt gt or a bracketed result i e lt OF4 gt If the Check MATE receives a carriage return or line feed alone without a command then a lt gt is re turned this response is a prompt to signal the Check MATE is ready If the Check MATE detects an incorrect command then one of three error symbols will be generated 1 invalid command then a gt lt is returned 2 a command that is out of limits then a gt gt is returned and 3 a command that prematurely times out then a is returned In some cases the error symbol will include a bracketed result i e gt 1 lt which defines a specific error code Function Response Description Select one of 4 different baud rates by chang ing n code 0 1200 1 2400 2 9600 amp 3 ERR PE PAUC TAIE GONS 19200 Baud will remain set Default code is 3 19200 n CK BR Gat hand E Get current baud rate code n is the return code 0 to 3 CK ID
17. ar If Chk ch gt 8 Then Err trap True A char Mid s 8 1 If A char lt gt D And A char lt gt S Then Err trap True Else If A char D Then Chk mode 0 If A char S Then Chk mode 1 End If A char Mid s 9 1 If A char lt gt 0 And A char lt gt 1 Then Err trap True Else char 0 Then Chk pol 0 char 1 Then Chk pol 1 End If If Chk ch gt 4 And Chk mode 0 Then Err trap True A char 10 1 Chk range Val a char If Chk range lt 1 Or Chk range gt 4 Then Err trap True If Err trap False Then Call Chk rd adc chk Chk Chk mode Chk pol Chk range Printhex Chk val gt Else Call Print oor End If Else Call Print ic End If Overton Instruments 14 Sub Chk rd adc chk val As Word Chk ch As Byte Chk mode As Byte Chk pol As Byte Chk range As Byte Select analog channel Chk long 0 If Chk mode 1 Then Chk ch Chk ch buf chk ch Else Chk ch Chk ch buf d chk ch If Chk pol 0 Then Chk num 6 0 If Chk pol 1 Then Chk num 6 1 End If Chk range Chk range buf chk range Chk cntl byte Chk range Or Chk ch Reset Sclk take X measurements For Chk loop 0 To Chk m cnts Chk word 0 While Adc busy 0 check busy flag Wend Reset Adc cs Select device For Chk cnt 15 Downto 0 If Chk cnt gt 8 Then Chk num Chk cnt 8 Dout Chk cntl byte chk num End If Set Reset Sclk Next Chk cnt Set Adc cs Whi
18. asured data is returned in one of two forms Basic or Extended In Extended each channel is identified including the mode po larity and range codes The voltage meas urements are a series of ASCII bytes repre senting a 12 bit value that is expressed in counts 0 4095 decimal or 000 FFF hex A comma is used to separate each channel reading In Basic mode the measured data is provided alone When n 0 Basic mode is active and n 1 Extended mode is active When f D decimal data f H hexadecimal data Scan all channels lt 1 and return voltage CH2mpr2nnnn measurements CH8mpr nnnn gt CK_AS nf Analog inputs can be averaged with a meas urement sample count The sample count value nnn must be a 3 byte ASCII decimal from 000 to 255 Set ADC measure CK_MSnnn ment sample count Get ADC measure CK MS Get the current ADC sample count ment sample count Set the DAC output voltage level The DAC 25 value nnnn must 4 byte ASCII decimal bp number from 0000 to 4095 In bipolar mode 0000 10Vdc CK SAnnnn CK SA Get voltage output CK DMn Set DAC mode CK DM Get DAC mode Get the current DAC range mode Overton Instruments 20 www chk mate info Get the current DAC output voltage Set the DAC range mode n is 1 0 10Vdc and 0 10Vdc CHECK MATE USER S MANUAL Appendix A Serial Command Set cont Command F
19. est results The Micro MATE also provides a sizable breadboard area to support the development of custom circuits Adjacent to the breadboard area is a series of wire wrap pins that comprise a goodly amount of general purpose Digital I O The schematic below shows the wire wrap connections which create the interface between the Micro MATE and the Check MATE J1 10 pin header connector Actually the Check MATE can be easily driven by most microcontrollers including an ARM AVR PIC or even a STAMP When developing an interface for the Check MATE it is recommended the designer start by reviewing the inter face requirements as outlined in the J1 Table which is provided in the I O De scription section The next step is to review the Check MATE schematic which is provided in Appendix B What could be the most challenging aspect of the design effort is controlling the SPl bus devices Check MATE contains SPl bus devices which include an ADC DAC and DIO circuits The ADC is a 12 bit 8 channel data acquisition chip from Linear Technology part number LTC1857 The DAC is a 12 bit digit to analog converter from Maxim part num ber MAX5312 The DIO is an 8 bit device from MicroCHIP part number MCP230S08 Details for specific device performance and SPl bus operation can be found in their respective data sheets Go to the manufacturers website to download said documents MICRO MATE INTERFACE Wire Wrap Pin Out CHECK MATE INTERFACE MM 1
20. f Ol under this warranty is to repair or replace at it s discretion and on a free of charge ba sis the defective material This warranty does not extend to prod ucts that have been repaired or altered by persons other than Ol employees or products that have been subjected to misuse ne glect improper installation or accident OVERTON INSTRU MENTS SHALL HAVE NO LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND ARISING OUT OF THE SALE INSTALLATION OR USE OF ITS PRODUCTS SERVICE POLICY 1 All products returned to OI for service regardless of warranty status must be on a freight prepaid basis 2 Unless other noted Ol will repair or replace any defective product within 10 days of its receipt 3 Forin warranty repairs Ol will return repaired items to buyer freight prepaid Out of warranty repairs will be returned with freight prepaid and added to the service invoice Overton Instruments 2 www chk mate com CHECK MATE USER S MANUAL Table Of Contents 1 0 INTRODUCTION 4 1 1 Overview 4 1 2 Highlights 5 1 3 Specifications 6 2 0 DESCRIPTION 7 2 1 Hardware Details 7 2 2 Board Layout 8 2 3 Connections 9 2 4 J6 Consolidated 10 3 0 OPERATION 11 3 1 Embedded Control 11 3 1 1 Embedded Configuration 12 3 1 2 Embedded Programming 13 3 1 3 Embedded Program Example 14 3 2 PC Control 15 3 2 1 PC Programming 15 3 2 1 1 HyperTerminal 16 3 2 1 2 Virtual Instrument Panel 17 3 2 1 3 PC Programming Example 18 APPENDI
21. ing port send data send CK PB GetString port sizeof read data while atoi read data 1 loop while msb 0 DUT not ready do Set check mate DAC output sprintf send data s 04d r set dac out dut gain PutString port send data send CK SAnnnn Get check mate ADC input A_ch sprintf send data s d s r get adc ch A ch 504 PutString port send data send CK_RC command GetString port sizeof read data read data for idx 1 idx lt 3 idx results idx read data idx determine pass fail results Value atoi results if gain_sel 1 dut_gain dut_gain 10 if gain_sel 2 dut_gain dut_gain 100 if gain_sel 3 dut_gain dut_gain 1000 limit asb value dut_gain if limit gt 0 001 4096 printf Test Failed ADC Ch Gain Range Jod Gain Value dut ch gain sel dut gain exit 1 dut_gain while dut_gain 0 De select DUT sprintf send data s s r set dio port 00000000 PutString port send data send PB00000000 printf Test Passed 18 www chk mate info CHECK MATE USER S MANUAL Appendix A Serial Command Set To facilitate remote control for the Check MATE a USB interface is required When connected to a host PC the USB connection appears as a Virtual Com which establishes a serial data communic
22. le Adc busy 0 Wend Reset Adc cs Select device For Chk cnt 15 Downto 0 If Chk cnt gt 8 Then Chk num Chk cnt 8 Dout Chk cntl byte chk num End If Set Sclk Chk word Din Reset 5 Next Chk cnt Set Adc cs disable device If Chk loop gt 0 Then Chk long Chk long Chk word Next Chk loop compute average Chk long Chk long Chk m cnts Chk val Loww chk long End Sub configure SE configure Differential configure Polarity configure Polarity configure Range configure Control Byte transmit serial data disable device check busy flag receive serial data Sub Print ic Err trap True Print gt lt End Sub Sub Print_oor Err_trap True Print gt gt End Sub Sub Print_ok Print lt gt End Sub Sub Print_ur Err_trap True Print lt lt End Sub www chk mate info CHECK MATE USER S MANUAL 3 2 PC Control For those more comfortable building traditional PC based Automated Test Equipment ATE the Check MATE offers many features that are well suited for that environment as well Controlling the Check MATE from a PC requires that it be equipped with an op tional USB MATE module The USB MATE module contains a USB bridge chip and a PIC microcontroller On the PC side the USB bridge chip receives a spe cial set of serial commands On the Check MATE side the PIC controller proc esses the serial commands and then drives the Check MATE
23. o instruct the Check MATE to perform specific functions The complete serial com mand set is detailed in Appendix A There are two ways to exercise the serial commands 1 using HyperTerminal or 2 run our Virtual Instrument Panel soft ware Control GUI 3 2 1 1 HyperTerminal HyperTerminal is serial communica tions program that comes with the Win 2 Transfer Help dows OS and is located in the Accesso ries folder Use the USB cable to con nect the PC to the Check MATE Run HyperTerminal and configure the settings gt for 19200 bps 8 data bits no parity 1 gt CK ID stop bit and no flow control Select the Check MATE vx x gt COM port based on the available COM i port as indicated in the Device Manager gt CK RC 4S01 example shown below Press the lt 000 gt Enter key and the gt prompt should appear on the screen as demonstrated in the example on the right Refer to the table in Appendix A to begin to experi ment with the serial commands Auto detect 9600 Device Manager E mE File Action View Help E m 2 H jg Computer ee Disk drives Display adapters DVDICD ROM drives 424 Floppy disk controllers dA Floppy disk drives G8 IDE controllers 22 Keyboards 9 Mice and ather pointing devices 3 Monitors 88 Network adapters Ports COM amp LPT ay
24. presents a logic 1 www chk mate info CHECK MATE USER S MANUAL 3 2 1 3 PC Programming Example Check MATE programming example in C The following program provides a Go No Go test sequence for testing a hypothetical electronic module The electronic module is a mix signal hybrid device that contains 8 programmable amplifiers electronic module is controlled by a Check MATE via the DIO lines DIO bits 0 3 select one of 8 DUT amplifiers DIO bits 4 8 5 selects the gain range DIO bit 6 is active low provides a DUT chip select DIO bit 7 is active high input which indicates the DUT is ready The outputs for the DUT amplifiers are connected to the inputs of the Check MATE analog channels The objective for the program is to verify each of the 8 amplifiers will perform properly at each gain setting and over a varying range of input voltage levels During the test sequence the program first selects both the DUT amplifier and the Check MATE ADC chan nel Then the DUT gain is selected and the Check MATE updates the DUT by writing the control byte which asserts the chip select The Check MATE then reads DIO bit 7 to determine if the DUT is ready Once the DUT is ready the Check MATE will stimulate the DUT amplifier input by supplying a voltage from the DAC output To verify the DUT amplifier the program reads the Check MATE analog channel
25. rminal Provides access to the analog input I Convenient GND test point LED to indicate active circuit USB Interface Connectors USB 1 and USB 2 replaces J1 and allows connection to the USB MATE J1 10 Pin Interface Provides access for remote control via an Embedded controller Overton Instruments 8 www chk mate info CHECK MATE USER S MANUAL 2 3 Connections P Name Description in Dir VCC 5V Power 1 2 DIO 0 3 DIO 1 IO 4 DIO 2 O Bit2 5 DIO 3 I O Bit3 i i Description A regulated 5Vdc input Current should be limited to roughly 100mA 6 DIO 4 Bit4 Part of a 3 wire SPI Bus SCLK synchronizes the serial data transfer for the DIN and DOUT signals 7 DIO 5 I O Bit5 8 DIO 6 Bit6 9 DIO 7 O 7 10 DGND Digital Ground 4 Dir Description A TTL active low input ADC CS signal that provides a chip select for the ADC Part of a 3 wire SPI Bus DIN provides input com mand and control data for the ADC DAC and DIO circuits A TTL active low input DAC CS signal that provides a chip select for the DAC Input CH 1 Input CH 2 Part of a 3 wire SPI Bus Input CH 3 DOUT provides output data from the ADC and DIO circuits Input CH 4 Input CH 5 A TTL active low input DIO CS signal that provides a chip select for the DIO Input CH 6
26. te Dim Chk_ch Chk_range Chk_pol Chk_mode Chk_num Chk_cnt Chk_cntl_byte As Byte Dim S As String 10 A resp AS String 10 A str AS String 10 A char AS String 1 Dim Chk long as Long Dim True As Const 1 Dim False As Const 0 Dim Err trap As Bit Sclk Alias P1 6 SPI bus serial clock Dout Alias P1 7 SPI bus serial data output Din Alias P1 5 SPI bus serial data input Adc cs Alias 0 0 Dac cs Alias 1 Dio cs Alias P0 2 Dac mode Alias P0 3 Adc busy Alias P0 4 ADC chip select DAC chip select DIO chip select mode 1 unipolar 0 bipolar ADC busy flag Declare Sub Print_ic Declare Sub Print_orr Declare Sub Print_ur print under range Declare Sub Print ok print command is OK Declare Sub Chk rd adc chk val As Word Chk ch As Byte Chk mode As Byte Chk pol As Byte Chk range As Byte print invalid command print out of range the Main the Operator or Host is prompted to enter a command The command is parsed and then executed if valid Only one command example is shown Set Sclk Dout Adc cs Dac cs Dio cs Dac mode Set to logic 1 Do Print Err trap False Input gt S Noecho S Ucase s A num Len s If A num 0 Then A resp Left s 3 If A resp CK Then A resp Mid s 4 2 Select Case A resp Case RC Configure amp Read single channel A char Mid s 6 1 If A char Then A char Mid s 7 1 Chk ch Val a ch
27. unction CK_PDbbbbbbbb Set DIO direction Get DIO direction CK_PUbbbbbbbb Set weak pull ups Get weak pull ups Response lt bbbbbbbb gt lt bbbbbbbb gt CK_PBbbbbbbbb Set DIO port _ Get DIO port lt bbbbbbbb gt Overton Instruments 21 Description Set or write the DIO port direction The di rection byte is represented by eight ASCII bytes starting with the most significant bit b left most to the least significant bit b right most A logic 1 is input and 0 is output Get or read the current DIO port direction setting Set or write pull ups on the DIO port inputs The pull up byte is represented by eight ASCII bytes starting with the most significant bit b left most to the least significant bit b right most A logic 1 is active and O is not Get or read the current DIO port pull up status Set or write the DIO port output bits De pending on the condition of the direction byte the output bits are represented by eight ASCII bytes starting with the most significant bit b left most to the least significant bit b right most The b bit is a logic 1 or 0 Get or read the current DIO port status www chk mate info CHECK MATE USER S MANUAL Appendix B Schematic L T tds Hd POG Bdd bL ABT 9420 BUS UOURAT utm 3144 3545 LCL BARRELS BLEI LERSE TERNET
Download Pdf Manuals
Related Search
Related Contents
C-770 Ultra Zoom - Electrocomponents Getting Started with Your AT-FBUS and the NI Operator`s Manual and Parts List Oilless, Single Stage, Direct Drive SRF-D190 UHF RFID Reader User's Manual Tektronix DPO 3012 Oscilloscope Data Sheet docomo Xperia(TM) Z2 Tablet SO-05F WAT-231S2 - AltaVision User Manual Nord Lead 4 Nord Lead 4R Guia dos Recursos do PC Internet Gebrauchsanweisung Operating instructions Mode d Copyright © All rights reserved.
Failed to retrieve file