Home
Check-MATE USER`S MANUAL
Contents
1. 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 represents a logic 1 www chk mate info USER S MANUAL 3 2 1 3 PC Programming Example Il Check MATE programming example in 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 amp 5 selects the gain range DIO bit 6 is active low provides a DUT chip select
2. Sub Print oor print out of range Print gt gt End Sub Sub Print ur print under range Print End Sub Sub Print ok print command is OK Print lt gt End Sub Sub Chk rd adc chk adc val As Single Chk ch As Byte Chk adc range As Byte Chk adc val amp H0000 Select range If Chk adc range Chk adc 5v Then Chk cntl byte Chk adc 5v If Chk adc range Chk adc 10v Then Chk cntl byte Chk adc 10v If Chk adc range Chk adc 5v5v Then Chk cntl byte Chk adc 5v5v If Chk adc range Chk adc 10v10v Then Chk cntl byte Chk adc 10v10v Select analog channel Chk cntl byte Chk cntl byte Chk ch Reset Sclk take X measurements For Chk cnt 1 To Chk m cnts Chk adc word amp H0000 Chk num 7 Chk num 2 11 Select device Reset Adc cs For Chk cnt 2 1 To 24 If Chk cnt 2 9 Then Send control byte Dout Chk cntl byte chk num Set Sclk Reset Sclk Decr Chk num Elseif Chk cnt 2 gt 12 Then Get ADC value Set 5 Reset Sclk Chk adc word chk num 2 Din Decr Chk num 2 Else dummy clocks Set Sclk Reset Sclk End If Next Chk num disable device Set Adc cs collect results Chk adc val Chk adc val Chk adc word Waitms 1 Next Chk cnt compute average Chk adc val Chk adc val Chk m cnts End Sub 13 www chk mate info CHECK MATE USER S MANUAL 3 2 PC Control For those who are more comfortable building traditional PC based Automated Test Equipment ATE the Check MATE offers
3. Q Overton Instruments 4 www chk mate info USER S MANUAL 1 2 Highlights BENEFITS APPLICATIONS FEATURES e A flexible low cost alterna Burn In e 8 Analog Input Channels tive to expensive PC based Engineering SE 12 bit Resolution DAQ cards 110Khz sample rate D R e Supports a wide array of ib 1 Channel Digital to Analog mix signal test applications Production Test converter 12 bit Resolution e Great for embedded solu QA QC Quality Control Unipolar Bipolar modes tions place inside mechani OEM Test Instruments 8 Digital Input Output Bits cal test fixtures instrument Independently programmable boxes or rack mount enclo USB or embedded control PHI 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 5 www chk mate info 1 3 Specifications Overton Instruments Analog Inputs Number of inputs Input Ranges Max 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 12 bit single ended 0 5V 0 10V 5V 10V 110KHz 1LSB no missing codes 12 bit 0 10V 10V 5mA max 4uS max to 1 2 LSB 1 LSB 8 bits bidirectional TTL compatible
4. stop bit and no flow control Select the Check vx x gt COM port based on the available COM i port as indicated in the Device Manager gt CM SC6 example shown below Press the lt Enter key and the gt prompt should appear on the screen as demonstrated gt CM RV in the example on the right Refer to the 0000 table in Appendix B to begin to experi ment with the serial commands Connected 0 00 17 Auto detect 3600 amp N 1 Device Manager E mE File Action View Help amp E m PROBESTS OF 2512 Computer ee Disk drives E Display adapters DVDICD ROM drives Floppy disk controllers dA Floppy disk drives 1 IDE controllers Hx Keyboards 9 Mice and ather pointing devices 2 Monitors BB Network adapters Y Ports COM amp LPT ay Communications Pork COL vi Communications Pork COMz ECP Printer Port LPT1 29 Ol Serial Interface COM3 4 Se Processors e Sound video and game controllers 2 System devices Universal Serial Bus controllers Intel R 8260144 USB Universal Host Controller 2 OI USB Interface lt 4 USE Root Hub Overton Instruments 15 www chk mate info 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
5. DIO bit 7 is active high which indicates the DUT is ready The outputs of the DUT amplifiers are connected to the inputs of the Check MATE ana log 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 Check MATE then reads the 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 and determines the PASS FAIL results define MSWIN serial comm libraries from define MSWINDLL www wcscnet com include lt comm h gt ztinclude lt stdlib h gt include lt stddio h gt int stat 0 a 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 set adc range CK AR set ADC voltage range char set adc ch SC set ADC channel char get adc volts CK_RV read voltag
6. 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 to initialize itself and attempt to establish a communications link Check MATE CONTROL GUI BEES DEVICE ID Check MATE v0 1 Hange Analog Input CH Volt Meter 4 5 a 250 Wde 0 10de FT de 0 ACQUIRE Range Output Voltage 400 6 00 LOL Hd dUvdc 2 0b IET Enable d 0 00 10 00 STATUS Get Device The STATUS message box summarizes results of the serial commands Overton Instruments 16 response has occurred within 10 seconds the program will time out and generate a No Response message
7. 3 If A resp CK Then A resp Mid s 4 2 Select Case A resp Case AR Set ADC Range A resp Mid s 6 1 If A resp Then If Chk adc range Chk adc 5v Then A str 0 If Chk adc range Chk adc 10v Then A str 1 If Chk adc range Chk adc 5v5v Then A str 2 If Chk adc range Chk adc 10v10v Then A str 3 Print lt A str gt Print Else A num Val a resp If A num lt 0 OrA gt Then Call Print oor out of range Else If A_num 0 Then Chk adc range Chk adc 5v If A num 1 Then Chk adc range Chk adc 10v If A num 2 Then Chk adc range Chk adc 5v5v If A num 3 Then Chk adc range Chk adc 10v10v End If End If Case SC Set ADC channel A resp Mid s 6 1 If A resp Then A str Str chk ch Print lt A str gt Print Else A num Val a resp If A num 0 gt 7 Then Call Print oor out of range Else Chk ch A num End If End If Overton Instruments Case RV read voltage A resp Mid s 6 1 If A resp Then Call Chk rd adc chk adc val Chk ch Chk adc range A str Str chk adc val Print lt A str gt Print Else Call Print ic invalid command End If Case Else Call Print ic invalid command End Select Else Call Print ic invalid command End If Loop End Sub Routines Sub Print ic print invalid command Print gt lt End Sub
8. SPl bus amp control logic Optional USB module 5VDC 10 3mA 0 50 C 155x157 6 www chk mate info USER S MANUAL 2 Description 2 1 Board Layout Convenient GND test point CHECK MATE 5 J5 5 Pin Terminal 443 s Provides access to SPI S bus control signals J4 2 Pin Terminal DAC output Pin 1 Pin 2 4 2 gt J2 10 Pin Terminal Provides access to the digital I O J4 9 Pin Terminal Provides access to the analog input OS RAS oNN 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 7 www chk mate info 2 2 Connections i i Description A regulated 5Vdc input Current should be limited to roughly 100 Part of a 3 wire SPI Bus SCLK synchronizes the serial data transfer for the DIN and DOUT signals A TTL active low input signal that provides a chip select for the ADC ADC_CS Part of a 3 wire SPI Bus DIN is serial command and control data for the ADC DAC and DIO cir cuits A TTL active low input signal that provides a chip select for the DAC DAC CS Part of a 3 wire SPI Bus DIN is serial command and co
9. The pull up byte is represented by eight ASCII CM PUbbbbbbbb Set weak pull ups 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 CM PU Get weak pull ups lt bbbbbbbb gt a ag he curent MO pot pulu 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 EMO Ser DIO pon n 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 CM PB Get DIO port lt bbbbbbbb gt Get or read the current DIO port status Overton Instruments 19 www chk mate info CHECK MATE USER S MANUAL Appendix B Schematic v2 euF 4 Date 12 6 2688 8 03 35 PH Document Humber TITLE P ral Overton Instruments 20 www chk mate info USER S MANUAL Appendix C Mechanical Dimensions Overton Instruments 21 www chk mate info
10. APPENDIX C MECHANICAL DIMENSIONS 21 Overton Instruments 3 www chk mate info 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 ended analog inputs with 12 bit resolution and a sampling rate of 110KHz Each of the analog inputs can be programmed for unipolar or bipolar operation Like wise the analog output uses a 12 bit DAC and operates in unipolar or bipolar modes In addition there are 8 digital input output lines which are independ ently programmable The Check MATE is made available is two versions a standard model or with a USB option The standard model is designed for embedded applications and provides a simple SPl 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 A D bois CONVERTER add 5S 15V 5 gt DC DC py USB INTERFACE OPTIONAL CONTROL 12 BIT D A ANALOG INTERFACE CONVERTER OUTPUT EMBEDDED INTERFACE O lt DIGITAL I O gt 8 BITS
11. DEL SELECT DEWCE ID oo 2 27 7 h ANE SAP MIT PUWET IVER CURRENT SREAKER Analog In Digital I O Analog Out peer a a ee ACE fe EI pm D m IM Lj P 2 MIELE Li IB a E 14 yn Control GUI E Add a USB Hub sto drive multiple Check MATEs and or other Ol instruments di 4 I a ae 5m cd 0 1 ETE EN Typical Hybrid Circuit Module Overton Instruments 14 www chk mate info 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 to instruct the Check MATE to perform specific functions The complete serial com mand set is detailed in Appendix B 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 ERZIELEN tions program that comes with the Win Transfer Help dows OS and is located in the Accesso Pilz e 5 E 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 CM ID
12. EMBEDDED TEST SOLUTIONS CHECK MATE Multifunction DAQ Module UNIVERSAL SERIAL BUS ILYW AIIHD 22 e USER S MANAUAL Overton Instruments Inc overton 5431 Auburn Blvd 196 INSTRUMENTS Sacramento CA 95841 www microATE net 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 WARRENTY 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 of Ol under th
13. MAX1270 The DAC is a 12 bit digit to analog converter from Maxim part number MAX5312 The DIO is 8 bit device from MicroCHIP part number MCP230S08 Details for specific device performance and SPlI bus operation can be found in their re spective data sheets Go to the manufacturers website to download said docu ments MINI MATE INTERFACE MEA 1 ME 2 Overton Instruments 10 www chk mate info CHECK MATE USER S MANUAL 3 1 1 Embedded Configuration Device Under Test inm w LOCATOR II Mechanical T es a Test Fixture BED OF NAILS Alha ONE S TEST CONTROL UNIT 24Vdc POWER SOURCE DUT MATE Multifunction DAQ Module Power Control Module CHECK MATE RS485 Interface RS232 Interface DUT MATE Interface Relay MATE Interface Signal Generator Check MATE Interface BREAD BOARD AREA MINI MATE EMBEDDED TEST CONTROLLER Overton Instruments 11 www chk mate info 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 The demo program which is outlined in section 3 2 3 illustrates the ease of control ling the Check MATE v
14. bedded 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 Mini MATE The Mini MATE is a low cost Embedded Test Controller which stores a special program that is designed to exercise the device under test and generate Go No Go test results The Mini MATE also provides a sizable breadboard area to sup port 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 Digi tal I O The schematic below shows the wire wrap connections which create the interface between the Mini MATE and the Check MATE J1 10 pin header con nector 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 De scription section The next step is to review the Check MATE schematic which is provided in Appendix A What could be the most challenging aspect of the design effort is controlling the SPl bus devices The Check MATE contains 3 SPl bus devices which include an ADC DAC and DIO circuits The ADC is 12 bit 8 channel data acquisition chip from Maxim part number
15. d data s r get adc ch PutString port send data send SA GetString port sizeof read data for idx 1 idx lt 4 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 Y s s r set dio port 00000000 PutString port send data send CK 00000000 printf Test Passed 17 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 communica 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 sensitiv
16. e char set dac range 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 CK PU set DIO port pull up char set dio port set DIO port write char get dio port CK PB get DIO port char get device id CK_ID get module ID char master clear MC master clear main 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 clear transmit buffer Get device prompt sprintf send data Jos W PutString port esend 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 s
17. e 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 2108 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 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 lt lt is returned In some cases the error symbol will include a bracketed result i e gt 1 lt which defines a specific error code Command Function Response Description Select one of 4 different baud rates by chang ing n code 0 1200 1 2400 2 9600 amp 3 MEDID PEDAU TAE COAG 19200 Baud will remain set Default code is 3 19200 CM_BR Get baud rate code Get current baud rate code n is the return code 0 to 3 CM ID Get module ID lt CHECK MATE vx x gt Get current identification and version number CM MR Reset amp initialize the module Write Store current instrument settings in EEPROM CM WC Save settings related to the ADC DAC and configuration x configuration DIO hardware Retrieve stored instrument settings Get the current ADC voltage channel Set the ADC range code
18. ia the Mini MATE microcontroller The program starts by initialing the Mini 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 Mini MATE P1 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 Mini MATE receives high level serial commands from a host PC parses them and then executes accordingly When for example the CK CS4 command is entered the program selects analog channel number 4 then when command CK 1 is entered the program selects the analog channel range which is 5Vdc Finally when the command CK is entered the program call s subroutine Chk rd adc chk adc val Chk ch Chk adc range This causes the Check MATE to take an analog measurement and return the results in a 4 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 12 www chk mate info CHECK MATE USER S MANUAL 3 1 3 Embedded Program Examp
19. is 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 DEMAGES 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 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 dut mate com 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 Board Layout 7 2 2 Connections 8 2 3 J6 Consolidated 9 3 0 OPERATION 10 3 1 Embedded Control 10 3 1 1 Embedded Configuration 11 3 1 2 Embedded Programming 12 3 1 3 Embedded Program Example 13 3 2 PC Control 14 3 2 1 PC Programming 15 3 2 1 1 HyperTerminal 15 3 2 1 2 Virtual Instrument Panel 16 3 2 1 3 PC Programming Example 17 APPENDIX A SERIAL COMMAND SET 18 APPENDIX B SCHEMATIC 20
20. le Program CHECK MATE Demo Initialization large romstart amp H2000 default Xram Dim Chk_adc_word As Word Dim Chk_adc_val As Single Dim A_num A_byte A_cnt As Byte Dim Chk_ch Chk_adc_range Chk_num Chk_cnt Chk_cntl byte As Byte Dim S As String 10 A_resp AS String 10 A_str AS String 10 Dim Sf_str As String 1 Sf_str AS String 10 Dim A_word as Word Dim A_val as Single Dim True As Const 1 Dim False As Const 0 Sclk Alias P1 0 SPI bus serial clock Dout Alias 1 1 SPI bus serial data output Din Alias P1 2 SPI bus serial data input Adc cs Alias P1 3 chip select Dac cs Alias P1 4 chip select Dio cs Alias P1 5 DIO chip select Dac mode Alias P1 6 mode 1 unipolar 0 bipolar Declare Sub Print ic print invalid command Declare Sub Print orr print out of range Declare Sub Print ur print under range Declare Sub Print ok print command is OK Declare Sub Chk rd adc chk adc val As Single Chk ch As Byte Chk adc range As Byte Main the Main the Operator or Host is prompted to enter a command The command is parsed and then executed if valid Only two command examples are shown Set 5 Dout Adc cs Dac cs Dio cs Dac mode Set to logic 1 Do Input Enter command S S Ucase s A resp Left s
21. 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 accordingly In order to be recognized by the PC the USB MATE module requires a set of Win dows drivers be installed do so go to www Check MATE com 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 I O to function properly PC Control PEE bI dco CASI itte C HY LYW AISHI Nera Yo ECCL D WKN 11 7 E PORT SELECT WO
22. n is 0 0 5Vdc 1 CM SC Get ADC channel 0 10Vdc 2 5Vdc and 3 10Vdc AR Get ADC range Get the current ADC range code Get a voltage measurement based on the CM RV Get voltage current ADC channel and range selection measurement measurement contains 4 ASCII bytes repre senting a 12 bit decimal value 0 4095 Measure and output 8 ADC channels Each channel contains 4 ASCII bytes representing a CM CS Scan all ADC ch s ch1 ch2 ch8 12 bit decimal value 0 4095 A comma separates each channel Overton Instruments 18 www chk mate info CM SCn Set ADC channel Select a ADC voltage channel The n repre sents a channel number from 1 to 8 CHECK MATE USER S MANUAL Appendix A Serial Command Set cont Function Response Description Set the DAC output voltage The DAC value CM_SAnnnn Set voltage output is contained in nnnn which comprises a 12 bit decimal 4 byte ASCII string CM_SA Get voltage output Get the current DAC output voltage Set or write the DIO port direction The di rection byte is represented by eight ASCII CM_PDbbbbbbbb Set DIO direction 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 CM_PD Get DIO direction EDBOBBBDDS 2 read the current DIO port direction Set or write pull ups on the DIO port inputs
23. ntrol data for the ADC DAC and DIO cir cuits A TTL active low input signal that provides a chip select for the DIO DIO_CS TTL active low input signal that determines unipolar 1 bipolar 0 UNI BIP gt Digital Ground A TTL active high input lt signal that indicates a interrupt from the DIO Ir Description in 1 DAC OUT Voltage Output 2 AGND lt Analog Ground Overton Instruments CHECK MATE USER S MANUAL in Ir Description 1 VCC lt 5V Power 2 DIO 0 gt Bito 9 DIO 7 2 Bit7 10 DGND lt Digital Ground in Name ir Description 9 AGND gt Analog Ground Description Name Dir lt 1 VCC 5V Power Part of a 3 wire SPI Bus Use with DIO for possible external control Part of a 3 wire SPI Bus Use with DIO for possible external control Part of a 3 wire SPI Bus Use with DIO for possible external control 10 gt Digital Ground 8 www chk mate info CHECK MATE USER S MANUAL 2 3 J6 Consolidated Description 5V Power Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Digital Ground DAC OUT Voltage Output AGND Analog Ground V Input CH 0 V Input CH 1 V Input CH 2 V Input CH 3 V Input CH 4 Input CH 5 V Input CH 6 V Input CH 7 Overton Instruments 9 www chk mate info USER S MANUAL 3 Operation 3 1 Em
24. printf send data s s r set dio pullup 10000000 PutString port send data send PU10000000 Execute test sequence for dut ch 0 dut ch gt 7 dut_ch set check mate ADC channel amp range sprintf send data s d r set adc ch dut ch PutString port esend data send SC sprintf send data s d r set adc range 1 PutString port send data send CK AR 0 10Vdc exercise DUT gain performance for gain sel 0 gt 3 gain_sel if gain sel 0 dut gain 4095 x1 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 a byte 2 sprintf dio byte idx vod 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 CK do Get DIO input check DUT ready sprintf send data Jos W get dio port PutString port esend 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 sprintf sen
Download Pdf Manuals
Related Search
Related Contents
Manual de usuario Manual 2013 manual do produto TX/MAM User Manual 実施方針 (PDF 615.4KB) Copyright © All rights reserved.
Failed to retrieve file