Home

User manual MSC STK-TDC

image

Contents

1. MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 24 of 24 TDC502 i Figure 9 Schematic of the TDC Mach300 starter kit part 2 i Gleiche Leitungsl ngen fiir START STOP JP301 H TDC MAC H300 330 3 I Zweige 1 We 2 lt START3 2 X301 0 U301B 1 START CH Fee 34 INTELAG VALID NTFLAG VALID 2 U301A i Zeie r a 7 STOP A 41 VOC d BANK 3 1 OF 3 BANK 2 R301 2 EN_STOP_A gt Hai A 7 i i 22k Ir ere 5 108 144 p 3 X STOP B 224 stop 8 e He PB2C DATA7 YyPATAZ 106 ite EN_STOP_B EN_STOP_B A VEG d p ND N CALCLK 3 A 2 PB3A Wi Wed TDC READY OV K1pC READY OV 2 JP302 2 CALCLK gt CALCLK VCC_35 i SP PB3B P 2 CHARGE S 2 FER d 105 141 CSON CHARGE_STP 2 PB3C lt GSON 2 44 Ref INTFLAG VALID 4 p FESD DATAS YyPATAS 103 138 ADRO 23 10k RN301A i 102 139 WRN 2 ADRI SS ADRI 2 WA TOK RNSOIG Zip i MISO 300 101 137 lt wan 2 R302 JP302 R302 und X302 f r 2 ADR2 SE 10k RN301B i B15 00 330 nicht bestiick eem 22k 300 330 nicht bestiicken 2 ADR3 ADR3 26 11 10k_RN301D GPIO3 2 H PB4C RST_N K RST_N 2 100 PTSD 134 oe E Ee gt START sl sayin DATAS YyPATAS 97 E EE 3 i STOP B 12 SSN 300 MISO 330 96 prar amp ADNK RON 2 DE i PCLKT2_1 P858 ll praa HE GE DATAT i Ta PSA ge pataa ee rar T lar Tr rr ir 54 RW 1 2 CHARGE STP E ae ila Ex ven H K EX MBI a EN SPI 94 prap 22 DATA 33 TDC READY OV et Se CALCLK MOSI 92 127 L e TDC_READY i PCLKT2_0
2. d 50 3 ATTACH 49 2 P93 I CSON M16 48 1 i 47 100 c H 46 99 45 98 I I VCC_M16 95 INTFLAG VALID I A 14 93 TDC READY OV mi i i 60 P102 2 EX M I EX MBI 3 Lor p103 MSO Mis msoMie 3 i 97 GE GPIOO KE E p105 L BER 8 GPO 3 i VCC USB 3V3 GND 96 5 88 GPIO2 g i 6 GPIO3 3 VCC_M16 JP201 d XIN_M16 13 7 CNVSS 2 1 d 180k Li i R221NO XOUT M16 11 94 NO SE 12 ca RST M16 N 10 Ne Li U U g M16C 6C db db i VCC_M18 H H H D i i i i i i i i i H H i i i i i i H L See 1 1 1 D 1 i i I i Debug Interface i I i I 1 i VCC_M16 VOG M16 1 i 1 1 1 1 I 1 1 1 I 1 i 1 1 1 1 I I 1 i I 1 1 1 1 I 1 i 1 i 1 i I i d i VCC VGC H U d H i INTFLAG VALID TDC READY OV i i Eege CALGLK 3 1 i EN SPI M16 d MOSI M16 SCK M16 i SSN M16 MISO M16 1 D 1 1 D 1 1 1 1 1 1 1 1 1 1 1 1 1 1 I 1 1 I I 1 I 1 i 1 i L A ZZZ II MSCSTKTDCMACH300RefManEngV10 docx tdc msc ge com www msc ge com Rev 1 0 USB Anschluss VCC_USB_5V X205 5 1 SHLD1 VCC i Pere D_IN D GND CON USB F TYP B R232 1 5k 15pF GND GND _ walle ATTACH GND GND Reseterzeugung VCC_M16 VCC_M16 U202 Si GND C201 100nF PURESET N N MAX821 GND VOC M16 VOC M16 VCC M16 74LVC1G07 Pull
3. User Manual MSC STK TDC Mach300 Rev 1 0 Date 2011 07 28 MSC Vertriebs GmbH Industriestrafse 16 76297 Stutensee Germany Author AP AKL Phone 49 7249 910 288 Fax 49 7249 910 4388 Email AP msc ge com MSC All rights reserved Although great care has been taken in preparing this document MSC can not be held responsible for any errors or omissions All information in here is subject to change without notice All hardware and software names used are trade names and or trademarks of the respective owners tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 2 of 24 Contents Dee ele 6 0 19 DEE 5 Se EE ENE 6 3 Installing and running the software 7 3 1 Host software installation 7 3 2 TDC starter kit measurement software OVerVieWw i 8 3 3 Application software functions vvs ee G ee 9 3 3 1 Connect Disconnect button 9 3 3 2 FOR sile PUO an 9 3 3 3 VO 2 ce geev ele ETE EE 9 3 3 4 Hardware setting ej 9 3 3 5 DE PENN 10 3 3 6 User denned TUNCUOM BI ON sers 10 3 3 7 Se UE EO EE 10 3 3 8 lee Ga EE II ira 10 3 3 9 PIOCOCOL DOG end saa nem lana 10 DD NONNE 11 3 4 TDC starter kit measurement software commands i 11 3 5 VEERE TUN den LE 12 3 5 1 CHANnel PO SO MIGNON EE NE 12 3 5 2 VENN 12 3 5 3 TSS ge Es e ERE EE EEE 13 4 Creating your own measurements DrOogtrams i 14 4 1 VNR 14 4 2 ENN 14 4 3 fee RGT ET EE RE EE
4. D _ TOZAN PN ca TOT GH N Ir geg NNNNNNNNNNNNNNNNNINNNNINNNNNINININNINII 4308 i e I S E W m amp Dnonnnnonan S EE a 8 5 End S ig sii Sa zon 3 rc BE SE SS of S 3 ESP DE M TO0TT0T00T E L III L316 i X Be sl oa a 8 d GE S Wi h H Oze DI O E Gj aa Figure 7 Layout diagram TDC Mach300 starter kit top view MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 23 of 24 5 4 EE H H H H H H i H H 1 I M16C H i H d i VOC M16 A U201 i ei DATAO 86 44 WRN D di d E DATAT 85 43 lt WRN 3 H R224 le DATA2 84 42 RDN K RON 470R ai DATA3 83 41 3 So DATA4 82 40 i 7 eA DATAS SI 39 EPM_N i SCH 3 DATAS DATAS 80 38 i i 3 DATA DATA7 79 37 P57 i LED gruen RST N 78 36 3 rrNY 77 35 i OSC DIS 76 34 3 osc pg SE 5 I EN SPI M16 74 32 BUSY d ii SSN M16 73 31 SCK1 3 poi MOSI M16 72 30 RXD1 i 8 SCK M16 71 29 TXD1 i 3 SCK_M16 j An 70 28 Z usoa eege D d A3 67 25 EN STOP B i d i 6 EN stone 3 s START2 3 63 21 CHARGE SIP ae i CHARGE STP 3 D d 61 20 IDO 59 H 58 18 502 beide offen i 57 17 vec USB 3av3 R237 R236 300 nur R236 besticken i 56 16 oR OR 330 beide bestiicken I H 55 15 al d 54 9 53 8 i GND 52 5 D 51 4 D
5. relevant system files without having to reboot your Select components to install computer Starter kit software EEN Software source code Space required 669 0KB Figure 3 MSCSTKTDC Installer software First of all ensure that the USB driver CDC_Demo inf has been installed successfully Otherwise power the starter kit connect it to your PC and try to install the driver manually The driver is on the CD The starter kit software is started by double clicking on the file TDC Starter Kit Measurement Software exe The program s application window appears type HELP to get a short command list TDC Starter Kit Measurement Software not connected Copyright MSC Vertriebs GmbH 2010 2011 e yy Connect MSCSTK LIB 0 9 4 15289 Programm 0 9 4 18731 E 1 0 Protocol Protocol box Figure 4 Start up screen of the starter kit host software MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 8 of 24 If the starter kit is powered and connected to the host the software connects to the kit Otherwise you can connect the starter kit to the software by pressing the Connect button After successful connection the software shows you the connected kit The green Run LED turns off and the MSC STK TDC MACH300 application window sets up as shown in figure 5 Copyright MSC Vertriebs GmbH
6. TDC Mach300 The starter kit consists of the evaluation board and the necessary accessories Figure 1 shows the block diagram of the evaluation board It consists of a microprocessor which controls the communication between the TDC and the PC using an USB 1 1 interface Three SMB connectors are provided for high precision time difference measurements between the start and two stop inputs With the RC measuring ports resistance measurements can be executed All important signals of the TDC chip are accessible for analyses e g logic analyser via two connectors Data bus er USB 1 1 M16C 60 e l Address bus TDC Mach300 interface processor STOP MO Control lines Figure 1 Evaluation board block diagram The starter kit provides the following components 1 power supply unit Imin 500 mA 1 evaluation board 1 CD including software and documentation 2 measurement cables 1 user manual MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 6 of 24 2 Installing the hardware First of all the evaluation board has to be powered by connecting the provided power supply unit to the connector X201 see figure 7 The red Power LED D201 turns on After this the evaluation board has to be connected to an USB port of the PC using an A B USB cable The green Run LED D202 turns on and indicates
7. The I O history button shows a list of all transactions between the host software and the starter kit Each entry has following information 15 15 58 629 0001 COMs GO 0006 LED OFF Time stamp List entry Command Data Command number or Transferred number status direction command reference data G Good I Input F Fail O Output Unknown Table 1 I O history line description Example 1 I O history Ee n Ee WR CTRL REG 04 Kr ce i n 37 783 RD VALID 237 808 This example shows the both commands WR CTRL REG 04 and RD VALID send from the host software to the starter kit and the received acknowledge from the starter kit 3 3 3 I O protocol checkbox If this checkbox is enabled each data transfer between host software and starter kit is shown in the protocol box Please consider that this function will slow down the application It should be used only for debug purposes Otherwise all data transfers could be displayed using the I O history button 3 3 4 Hardware setting checkboxes The hardware setting checkboxes define the current status of the TDC control pins the green Run LED and the starter kit oscillator E g ticking the LED on checkbox will light the green Run LED on the starter kit e LED on Switches on and off the green Run LED of the microprocessor e OSC enable Enables and disables the TDC calibration clock oscillator e SPI Slave Select Enables SPI slave
8. automatic calibration measurements are performed with a calibration clock period of tca 250ns Note Remove jumpers JP301 and JP303 see figure 7 before the measurements because of accuracy reasons MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 14 of 24 4 Creating your own measurements programs 4 1 Software requirements To create your own measurement programs you have to fulfil the system requirements of the starter kit software and to install a C development suite In the following chapter we apply to the Microsoft Visual C 2008 Express Edition 4 2 Create your own C project First you have to set up a new project using the predefined template Windows Form application Afterwards you have to add the necessary files to your project First step is adding a link to the MSCSTK LIB mscstk lib dll which is found in the source code directory of the install CD Then add the existing elements Program cs TDC300 cs TDC330 cs TDC501 cs TDC502 cs TDC10000 cs and UserButtons cs which can be found also in the source code directory of the install CD Please overwrite the already Program cs by the delivered one Now you should be able to compile the basic program for the first time After starting the executable a window like figure 4 should appear If this window does not appear check if
9. selected and disables SPI in reset the TDC s SPI Slave Select pin SSN e SPI PIO Communication between M16C processor and TDC via SPI TDC pin SPI EN 1 or via the parallel interface SPI EN 0 Default settings after software connection are LED off oscillator disabled SPI in reset TDC pin SSN 1 and parallel interface selected MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 10 of 24 3 3 5 TDCreset button The reset button resets the TDC by sending a low active reset pulse on the RSTN pin of the TDC This button does not neither synchronise the software with the hardware nor manipulate any hardware setting Default setting after software connection is TDC reset pin inactive TDC pin RSTN 1 3 3 6 User defined function buttons The user defined buttons are for the example programs delivered with the software or appended by the starter kit user Here you can add your own functionality 3 3 7 Exit button The exit button disconnects the starter kit and closes the application All information like I O history or protocol box will be lost 3 3 8 Input line The input line allows the user to control the TDC starter kit by input of commands described in chap 3 4 Furthermore this line allows controlling some features of the host software Input line command Function DEBUG_ON E
10. the file Program cs initialises the right application form Application Run new MyMSCSTKForm The form1 which is initialised with the new Project is not necessary and may be deleted 4 3 Library MSCSTK LIB To create your own test programs you have the complete language range of C with all NET functions available Additionally we have included some functions in our MSCSTK LIB to enhance your programming success This library has to be linked to your project Otherwise you don t have the main application form and all the functions to communicate with the starter kit Following forms are available in MSCSTK LIB Standard application form as shown in figure 5 OptionDialog Options dialog to set up various TDC or program parameters deeg Select channel A Select resolution Half Figure 6 Select options dialog Table 6 MSCSTK LIB defined forms MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 15 of 24 A TDCStruct structure is implemented in MSCSTK LIB This structure contains the complete setting of the TDC and some program options Furthermore the following functions are available from MSCSTK LIB n int Cmd string message Int32 TimeOutValue n int Cmd string message void GenericOptionsDialog bool OneChannel bool Resolution bool Measurements void InitTDC int Mode void RestorePinSe
11. variable TDC502 Clock divider variable TLC CaLDiai Clock divider setting Table 24 structure TDC If connected with a starter kit these variables get their starter kit specific value This variable is only for the software and is not the same as the clock divider setting within the TDC MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 tdc msc ge com www msc ge com Author AP AKL MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 19 of 24 4 44 Working with the OptionDialog form void GenericOptionsDialog bool Channel bool Resolution bool Measurements Description This function shows the OptionDialog The dialog form has to be initialised using the kenen parameters Parameter Channel Shows radio button box Select channel with selection between channel A and B only one channel can be activated TDC10000 TDC502 Resolution Shows the radio button box Select resolution with 4 values 1 half O normal 2 high 4 smart TDC502 Measurements Shows a text input line to set the number of measurements Return value n a Example see figure 6 select options dialog GenericOptionsDialog true true true Table 25 function GenericOptionsDialog void ShowConfiguration int Mode Description This function shows the configuration selected by the OptionDialog form and the hl selected measurement mode Mode in the protocol box Shows the selected measurement mode Mode of Examp
12. 2010 2011 MSCSTK LIB 0 9 4 15330 Programm 0 9 4 15352 input line TDC Starter Kit Measurement Software Protocol box Search for connected starter kit hardware Connected with USB starter kit MSCSTK TDCMACH 300 E 1 0 Protocol Hardware settings C LED on OSC enabled SPI Slave Select SPI PIO User defined functions Channel resolution Single shot Nimes single shots My 1st function Figure 5 Host software connected with a TDC Mach300 starter kit 3 2 TDC starter kit measurement software overview The application window of the host software provides the following information and functions Information about the connection status upper right corner Command input line on the top Protocol box for information debug and dataflow outputs Program buttons and checkboxes on the right User defined function buttons on the right MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 9 of 24 3 3 Application software functions 3 3 1 Connect Disconnect button The Connect button connects the software with the starter kit hardware After the kit is connected the software and the hardware are synchronised The hardware setting checkboxes show the current status of the control pins and the button has changed its function to Disconnect 3 3 2 I O history button
13. E EE EE 14 4 4 FUNCHON Eng el EEG Be 15 4 4 1 Communication with the starter kt 15 4 4 2 VE TE NNN NN 16 4 4 3 Initialisation the hardware and control the behaviour of the MSCSTKForm form elements 17 4 4 4 Working with the OptionDialog Tom 19 4 5 Implementing your program into the Glen 19 MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 3 of 24 NNN 21 5 1 SG le Ren EE EE EE EE NE EE EE EE 21 5 1 1 CONMIGO ee 21 5 1 2 Minimum system regulrements ettari rie erre ire rear rei rire 21 5 1 3 POE SO ONY inni rl o 21 5 1 4 POSO E 21 5 2 AVOUT ET E E E le 22 Figures Figure 1 Evaluation board Dlock dan E 5 Figure 2 Connect the ENN 6 ERE GE ee EO EEE EE 7 Figure 4 Start up screen of the starter kit host software 7 Figure 5 Host software connected with a TDC Mach300 starter kit ii 8 Figure ee sa ek ERE e 14 Figure 7 Layout diagram TDC Mach300 starter kit top view 22 Figure 8 Schematic of the TDC Mach300 starter kit part ll 23 Figure 9 Schematic of the TDC Mach300 starter kit part 2 24 Tables Te VORN Oy edes ToO E 9 Table 2 Additional input line control COMMAandSs i 10 Table 3 Protocol box text E 10 Table 4 TDC Mach300 opcodes for input line or user defined FUNCTIONS sssssssrssesrresreserrrssrererersrrreereseree 11 Table 5 TDC Mach300 hardware specific opcodes for input line or user defined f
14. PB6B PCLKTO_0 PT58 ae not used TE PBC 126 DATA tt ti tit SE Get 90 SES GND 2 ia bija BSE DATA2 YyPATA2 89 pra HZ ech belelel Jele VEG Kn 20 PL7B PCLKTO 1 PT6B H RN302A 10k i PBSA 87 RN302B 10k Mf CSON 32 i 22 pga pra WE RN302C 10k 29 i 23 p gg PB8C a RN302D 10k RER WAN 31 L I PBSD pro H RN303A 10k RDN 30 i 24 PLBCTSALL 85 RN303B 10k 43 a 120 ADR2 d PB9A PT7E ge b noe i RST_N 1 PL9D DEN 81 PISA rg ND d 29 PB9C DATA1 gt PT8B PL10A PB9D i 30 PL108 DATAO RAAD z prec HS i 31 PBOF DATAS PATAS 8 114 PL10C PTOA 33 5 79 112 i PL10D PT9B RIZESEI INS CESSI CI ELE eneee i 37 PLUA S prec Laag d PL11B 4 PTSD i i 34 111 ADRO H 1 H x Rail 75 PTE tog i Block C s PL11D PTOF i i VEG VCC VCC A e VCC VGG VCC i DE VCCIO3_10 135 i d 28 e VCCIO1_98 VECIOO 135 i VCCIO1 VCCIOO i Can C302 C303 C304 i d LOMX0640C 3 i 10uF 10uF 220uF 220uF i LCMX06400 3 U H H H i i i U i U301C I VCC d i i i 3 OF 3 D i i KA E EH t i H i H i i JTAG EEE GERE EEG EES 1 H p I Signalrichtung I D H i ot VCC VCC VCC VCC Namensgebung aus Sicht des FPGA i i H Referenzclock TDO Input von DownloadCable i io TDI Onput von DownloadCable i 1 H H i ot i 2 OSC_DIS i ID tot i LOMXO640C 3 1 H H i i I I D B B ii 5 MODE TMS po en i d VOC p I SCLK TCK i i 4 i H H H I H U 1 H
15. d all other components is adjustable via the potentiometer R225 within the voltage range of 3 0V up to 5 5V Caution The values of the two supply voltages may not differ from each other more than 0 5V 5 1 4 Reset When the board is connected to the power supply the board s reset chip runs a power on reset cycle This resets the microprocessor and the TDC chip as well If the supply voltage of the microprocessor drops to values less than 3 0V a reset may occur too The application software was tested using Windows XP Professional Edition 32 bit and Windows 7 Professional 64 bit MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 22 of 24 5 2 Layout diagrams schematics Figure 7 shows the top view of the board s layout diagram and Figure 8 and Figure 9 show its schematics The board s connector X301 is connected to the TDC s pin START X303 is connected to STOP F S J UT d I l i pe p J c KI Genoa N A n re Cech D IAU SETE i i C216 Ic TS pozh Siew eld A DR ex ECH eo CT Bl Tomb Y los ANNNNNNNNNNONNNNNNNNNNNN 20 e s EE
16. e minimum measurement period is tmn 50ns 3 3V 25 C and the maximum measurement period is tmax 750ns The automatic calibration measurement is performed with a calibration clock period of tea 250ns Note Remove jumpers JP301 and JP303 see figure 7 before the measurement because of accuracy reasons 3 5 3 N times single shot Clicking on the n times single shots button will start a high speed cycle of n single shot time difference measurements with automatic calibration and auto noise using the interface selected by the hardware settings PIO SPI At first the number of measurements lt 2000 has to be entered within a pop up window Then the program awaits n start stop measurements with rising edges on both the start input START connector X301 and the stop input STOP connector X303 Before each measurement the program executes a waiting loop Each waiting loop will be exited if either a start stop event takes place correct execution or a predefined waiting time has exceeded error message If all n start stop events take place before the MESS MULTI command s timeout is reached see table 8 all the n measurement results are calculated and displayed in the protocol box together with the minimum the maximum and the average measurement time and the standard deviation Otherwise an error message is generated The minimum measurement period of each measurement is tyin 50ns and the maximum measurement period is tmax 750ns The
17. ected TDC Type and some settings WriteText Get settings InfColor FontStyle Underline WriteText Connected TDC from starter kit is TDC Name InfColor WriteText The oscillator is TDC 0SC on off InfColor Switch on the oscillator if TDC OSC Cmd OSC EN WriteText Now the oscillator is TDC OSC on off InfColor 10 times LED blink WriteText Take a look at the blinking green LED InfColor for int myTempInt 0 myTempInt lt 10 myTempInt if TDC LED Cmd LED OFF else Cmd LED ON Wait 100 wait for 0 5s to see a blinking LED Switch the LED on finally if TDC LED Cmd LED ON WriteText Now the green LED is TDC LED on off InfColor Finish break Add to the function UserConnectButtonHandler under the if construct if TDC Connected My user function button 9 UserFunctionButton 9 Text My 1st function If the compiled application runs press the Connect button and afterwards the user function button 9 You should see a blinking green LED on the starter kit and the following text in the protocol box Example 4 button 9 output in protocol box My first user measurement program Get settings Connected TDC from starter kit is TDC MACH 300 The oscillator 13 Ofl Now the oscillator is on Take a look at the blinking green LED Now the green LED is on Program exec
18. edefined are following colours DogColor DarkGray Debug outputs Example If an Error occurs you will see this with the colour ErrColor The normal text output is done usign the colour InfColor If you press the history button the history is printed with HisColor Usually the title drawed usign TitColor is on the top of your measurement application Table 13 variable Color This variable is to enable you a debug mode e g for additional outputs Table 14 variable DebugMode MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 17 of 24 4 4 3 Initialisation the hardware and control the behaviour of the MSCSTKForm form elements Function call void InitTDC Description The function InitTDC has to be used to initialise the starter kit and to synchronise the application software with the starter kit The default settings are described in Table 24 structure TDC Table 15 function InitTDC Function call vold RestorePinSettings Description The function RestorePinSettings loads the saved TDC structure program settings to the GUI an initialised the starter kit afterwards with this settings Parameter n a Return value n a Table 16 function RestorePinSettings Function call void SavePinSettings Description The function SavePinSettings has to be used to save current pr
19. ent programs see chap 4 3 5 1 Channel resolution Clicking on the channel resolution button will find out the TDC s resolution using the interface selected by the hardware settings PIO SPI Therefor the number of calibration measurements has to be entered within a pop up window The calibration values CAL1 CAL2 and the actual resolution of each measurement are displayed in the protocol box At the end of the measurements the standard deviations of CAL1 and CAL2 and the average resolution are displayed The calibration measurements are performed with a calibration clock period of tca 250ns 3 5 2 Single shot Clicking on the single shot button will start a single shot time difference measurement with automatic calibration using the interface selected by the hardware settings PIO SPI The program waits for one rising edge on both the start input START connector X301 and the stop input STOP connector X303 The program executes a waiting loop The waiting loop will be exited if either a start stop event takes place Correct execution only when Pin EN SPI 1 and Pin SSN 0 MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 13 of 24 correct execution or a predefined waiting time has exceeded error message If a start stop event takes place the measurement result is calculated and displayed in the protocol box Th
20. he I O and commands history 3 4 TDC starter kit measurement software commands After connection with the starter kit hardware the host software allows the user to operate with the hardware The user can input commands using the input line or can run a collection of commands written as a function for one of the user defined function buttons Each command has the following structure Opcode Parameter To communicate with the starter kit the following list of opcodes is available for the input line and the program source code Other data send to the starter kit are misinterpreted and result in an error message Opcode Parameter Description Return Access value mode WR CTRL REG 8 Bit Hex Control Register wr RD_CTRL_REG Control Register 8 Bit Hex rd RD STATUS REG Status Register 8 Bit Hex rd RD_CAL1 L Calibration value CAL1 Low byte 8 Bit Hex rd RD CAL1 H Calibration value CAL1 High byte 8 Bit Hex rd RD CAL2 L Calibration value CAL2 Low byte 8 Bit Hex rd RD CAL2 H Calibration value CAL2 High byte 8 Bit Hex rd RD VAL L Measurement value VAL Low byte 8 Bit Hex rd RD_VAL_H Measurement value VAL High byte 8 Bit Hex rd Note Pin EN_SPI 0 Opcode execution via parallel interface EN_SPI 1 Execution via SPI Table 4 TDC Mach300 opcodes for input line or user defined functions MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manua
21. i H i i C316 14 i H 100nF i i A i GND GND I H i H H H oi i DH H H 1 H en E 4 i i i i eegal 1 i i H i i KA PI 300 330 ohne SPI mechanical parts for layout 1 ii alle 7 offen lassen H 1 iL cioe Li lolita I H FT301 FT302 FT303 O di LU I 1 S i Widerstand smessung 300 330 mit SPIL mms nicht bestuecken nicht bestuecken nicht bestuecken 5 von 7 bestuecken l d ii Widerstandspaare als BM301 Sii destina ewal Brueckenswitches ausfuehren i gt I i stuckung ega BADMARK 1 H Referenzwiderstand H OR 300 sd 300 330 2 0 1 SN 300 MISO 330 i H 1 2 SSN_M16 gt i i i H Board ID amp RoHS Label H i 2 EN_SPI_M16 mm ee RJ302 330 i ii OR NO f oR i BOARD Di PB FREE A E av 300 330 D D H D Q303 i pio oR b BC848C BC848C if 2 MOS _M16 gt RJ303 300 i i H 2 1 MISO 300 H e 3 Sh 2 MISO_M16 7 2 T SSN 300 MISO 330 i D ii R320 300 330 RIS 330 i H i H oR NO H H H 2 SCK Mi6 2 1 SCK i lt Variant Name gt i Mie A i karse d H i ot OR i d i ot i Pri No 0464 MSC pe V H H i I Prj Name MSC_STK TDCMACH Industriestr 16 j i d if i Sheet TDCs D 76297 Stutensee i d i H Document SP100464 Germany E H H Copyright MSC Vertrieos GmbH eege H Last modified Monday May 17 2010 16 09 42 Created Wednesday December 09 2009 11 28 44 MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com
22. l MSC STK TDC Mach300 Page 12 of 24 Opcode Parameter Description Return value Hex Access Mode RD_VALID Reads TDC s pin VALID 0x00 or 0x01 rd RD_OV Reads TDC s pin OV 0x00 or 0x01 rd MESS_MULTI Number of High speed cycle of n single shot n 6 Byte Hex measurements measurements with automatic CAL1 low high 16 Bit Hex calibration CAL2 low high max 0x07d0 tCAL 250ns tMIN 50ns tMAX VAL low high 750ns auto noise interface depends on pin EN_SPI INIT_SYSTEM Message STK TDC MACH300 is up rd OSC_DIS Disables TDC calibration clock PU_RESET Reset pulse for the TDC on pin RSTN ENABLE_SPI Puts the EN_ SPI line to 1 SPI selected wr i wr wr z Wr Wr wr Wr Wr DISABLE_SPI Puts the EN SPI line to O Parallel Interface selected SPI_RESET_ON Puts the SSN line to 1 SPI is in reset wr SPI RESET OFF Puts the SSN line to 0 SPI Slave Select W WRITE SPI 0 Writes 0 to the MOSI line reads one bit 0x00 or 0x01 wr rd of the MISO line WRITE_SPI_1 Writes 1 to the MOSI line reads one bit 0x00 or 0x01 wr rd of the MISO line Table 5 TDC Mach300 hardware specific opcodes for input line or user defined functions 3 5 User defined functions On the right side of the application window you find ten User defined functions buttons Some of them are predefined all other are provided for creating your own measurem
23. le ShowConfiguration 7 Your selected configuration Channel s A Resolution smart Measurements 10 Mode 7 Table 26 function ShowConfiguration 4 5 Implementing your program into the GUI The delivered template file UserButtons cs can be used to implement your own measurement application in the starter kit application software This file initialises an own MSCSTK Form MyMSCSTKForm with 10 additional UserFunctionButton user function buttons To initialise the buttons a UserConnectButtonHandler handler is started with the AutoConnectButton button click The UserConnectButtonHandler handler defines the button text according to the used starter kit if it is connected Otherwise all user function buttons are set invisible If a user function button was clicked the UserFunctionButtonHandler handler is called According to the pressed user button and the used TDC a measurement function is called There are a number of predefined function calls for the user function buttons MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 20 of 24 Example 3 Place a program on user function button 9 Add to the function UserFunctionButtonHandler case 9 Program control variable must be activated RunProgram true Title WriteText Environment NewLine My first user measurement program TitColor Output the conn
24. modify the time out behaviour of the application The default value is 10000 MS Table 23 variable GlobalTimeOutValue Description This structure stores all settings of all supported TDC starter kits Additionally all selections made in the Opt ionDialog Form are stored in this structure The following values are the predefined values which can be always set by InitTDC Value Default Description Starter kit Connection status TOG NotInitialized TOC TDC TE POG Starter kit hardware settings TDC sii TEL ENSPI MODEO elt NOEN NOTA sNS TP EN STOP A EN STOP B THC TRO TOC TEC TOC TOC TDC TDC TDC TOC POG Connected LV UART Name LED SEL PINENAO PINENAL OptionsDialog variables TDC NumberOfMeasurements TDC dek s i ChannelASelect ChannelBSelect To reso Lager Steeg Connection status boolean Initialisation status boolean TDC number e g 502 TDC502 UART or USB connection boolean TDC name string e g TDC502 Green Run LED on true Starter kit oscillator on true Use SPI TDC MACH 3 0 Enable SPI TDC MACH 3 0 MODEO TDC501 MSDI TDC501 NOEN TDC501 NSTA TDC501 NSTP TDC501 Enable STOP_A TDC502 Enable STOP B TDC502 Enable channel 0 TDC10000 Enable channel 1 TDC10000 OptionsDialog variable OptionsDialog variable TDC10000 TDC502 OptionsDialog variable TDC10000 TDC502 OptionsDialog
25. nables debug outputs DEBUG_OFF Disables debug outputs CALCLKPERIOD value Change the calibration clock period to value GLOBALDEBUGLEVEL Filter the debug outputs by change the debug level between X and Y Shows the internally stored values of the TDC structure HELP Show all available commands for the input line Table 2 Additional input line control commands The input line supports line editing and history scrolling function by the cursor keys 3 3 9 Protocol box The protocol box shows information of the software The text types of the protocol box text can be Text type Color Text Type Color Titles DarkCyan Data input DarkMagenta Information DarkGreen Data output Brown Errors Red I O history Black Debug DarkGray Help MidnightBlue Table 3 Protocol box text types The protocol box is scrollable and supports select and copy functions The copy supports RTF styles MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 11 of 24 Example 2 Protocol box Search for connected starter kit hardware Connected with USB starter kit MSCSTK TDCMACH 300 gt LED ON lt Determination of the TDC resolution by 1 calibration measurements tCAL 0 25 us gt OSC_EN lt gt PU_RESET lt gt SPI RESET ON S 3 3 10 Clear protocol button The clear button clears the protocol box contents Furthermore it clears t
26. ogram settings in the TDC structure Table 17 function SavePinSettings Function call void Walt Int32 ms The function Wait can be used to stop the current software process and to wait a defined time ms Parameter Time to wait in milliseconds Return value n a Table 18 function Wait Variable Button AutoConnectButton Description This is the Connect Disconnect Button of the GUI It s useful to combine the initialisation of your special GUI elements and settings with this button Table 19 variable AutoConnectButton label VersionLabel Description This label is partly predefined It contains the version information of MSCSTK LIB You can use this element to mark your software version It is displayed below the GUI title Table 20 variable VersionLabel Variable ProgressBar WorkingProgressBar Description The progress bar is used to show that a measurement program or others are running This is done by increase the value of the progress bar Table 21 variable WorkingProgressBar MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 double CalClkPeriod Description This variable is predefined with 250 ns and corresponds with the used 4MHz oscillator on the starter kit board Table 22 variable CalClkPeriod Page 18 of 24 Variable int GlobalTimeOutValue This variable is to
27. ored in the integer array variable Result is returned Table 8 function Cmd MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 16 of 24 Description This array contains the result values from the last successfully executed command Attention Only as many result values as returned from the function Cmd are updated Table 9 variable Result A Description This variable is used to control the function call executions If it turns to false a function call was unsuccessfully and all further function calls of the MSCSTK LIB will not be executed Table 10 variable RunProgram 4 4 2 Using the protocol box Function call void WriteText string message Color color FontStyle style Description The function WriteText outputs the string message to the protocol box The text color color is necessary using a font style is optionally Parameter Output string Color setting for the output text Font style setting for the output text Return value n a Table 11 function WriteText Function call void WriteDebug string message The function WriteDebug outputs the string message to the protocol box Return value n a Table 12 function WriteDebug ee Description The colour variables are used as the predefined colours for the output messages on the protocol box The values are changeable Pr
28. the correct operation of the M16C processor The evaluation board is ready to operate 2 Connect to a PC 1 Connect to power supply 3 Connect your measurement environment or your application Figure 2 Connect the starter kit MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 7 of 24 3 Installing and running the software 3 1 Host software installation The software is delivered on the starter kit CD Driver software libraries and source codes are provided The starter kit software with driver and all provided sources can be installed by starting the installer executable MSCSTKTDC Installer exe You must have administration rights Follow the instructions of the install program Afterwards the software is ready to operate Si MSC TDC Starterkit SW Installer Setup usle ESN i MSC TDC Starterkit SW Installer Setup Choose Components Welcome to the MSC TDC Starterkit Choose which features of MSC TDC Starterkit SW Installer you SW Installer Setup Wizard want to install This wizard will guide you through the installation of MSC Check the components you want to install and uncheck the components you don t want to TDC Starterkit SW Installer install Click Next to continue Itis recommended that you dose all other applications before starting Setup This will make it possible to update
29. ttings void SavePinSettings void ShowConfiguration int Mode n void Walt Int32 ms void WriteDebug string message void WriteText string message Color color void WriteText string message Color color FontStyle style At least a number of variables and all necessary form elements are marked as public Form elements Global variables AutolonnectButton double CalClkPeriod VersionLabel int GlobalTimeOutValue WorkingProcessBar int Result bool DebugMode pool RunProgram CLoOLOY DbgColor Lolor EfrColot Color HisColor Color intColor Calor InpColor Color Out olor Coler TIitColor Lor HloColor TOCS Cruce TDC Table 7 MSCSTK LIB defined form elements and variables 4 4 Function calls from MSCSTK LIB 4 4 1 Communication with the starter kit Function call int Cmd string command Int32 TimeOutValue Description The function Cmd sends the command to the starter kit and receives the reply The function call without a TimeOutValue uses the GlobalTimeOutValue The time out value is used for the port communication Parameter a valid opcode optionally with parameters see table 4 and table 5 TimeOutValue Time out value in ms Return value 2 The function was not executed because the global variable RunProgram Was false The function fails Usually there is an error description message in the protocol box others The function was executed successfully The number of results which are st
30. unctions 12 Table 6 MSCSTK LIB defined forms i 14 Table 7 MSCSTK LIB defined form elements and variableS 15 Te NNN NN 15 TE DERN 16 TET 16 MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 4 of 24 FN 16 Fe NNN 16 Te ENN 16 Table 14 variable DED Mode ricer 16 Tanie 1S TND 17 Table T6 Tunction RestorePINSEttnosi ninna 17 Table 17 function TANN 17 IU van 17 Table 19 Variabie e ele Bl ON vassere 17 Table 20 variable VErsiOn ae ricsecsctecnserscendastesaasndusenetaanctnnicesonadasledaasaausemedautedoontostcmadanieaaasadusenddeabiooenseeeeaetiad 17 Table 21 variable WorkingProgressBar a 17 TAD 22 Val lable CalGikP e e iii 18 Table 23 variable GlobalfmeCutvalue 18 TEN NA 18 Table 25 function GenericOptionsDialog e 19 Table 26 function ShowConfiguration i 19 Examples Example 1 I O history PAMPE A ee eege DO nnt Example 3 Place a program on user function button Example 4 button 9 output in protocol box MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 5 of 24 1 Introduction In combination with a PC the MSC STK TDC Mach300 starter kit is an easy to use evaluation tool for the MSC Time to Digital Converter
31. up down VCC_M16 VCC_M16 VCC_M16 GND R2i9 2 1 10k SCKi GND Vi GE Verzoegerung i i i H i H i H i H I I ADRO 3 74AHC 14 74AHC14 i i i GND U207C U207D d i i i ADRI d I i 74AHC14 74AHC14 d i H U207F U207E H ADR2 3 U 74AHC 14 74AHC14 U VOC M16 i i H ADR3 3 i i 74AHC14 74AHC14 i i i i GND U208F U208E i D 1 i i CSON M16 lt Cen d D D i i i 74AHC14 74AHC14 H i U208C U208D i 5 6 9 8 GND 74AHC14 GND 74AHC14 1 Figure 8 Schematic of the TDC Mach300 starter kit part 1 Author AP AKL Spannungsversorgung 10uH 2 10uH CON POWER GND VCC R202 2 D201 i 1 wm 2 p 3 GND 470R LED rot Umax 5 6V GND VCC_M16 1K2 bei fix DV VCC M16 R233 NO 1 100nF TSK R234 NO 1K5 bei variabler 1 Ss Spannung R235 NO GND 1 Umax 5 6V VCC_USB_5V VCC_USB_3V3 eee ecc eee 8 VCC_M16 X203 OR 2 IDG Steckerl 14pol GND GND fra mmm 0 aa Variant Name gt Prj No 0464 MSC ps RK Prj Name MSG STK TDCMACH Industriestr 16 era Sheet M168G D 76297 Stutensee Vi Document SP100464 Germany Copyright MSC Vertriebs GmbH Last modified Monday May 17 2010 16 09 42 Created Wednesday December 09 2009 11 32 29
32. ution was successful MSCSTKTDCMACH300RefManEngV10 docx Rev 1 0 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC Mach300 Page 21 of 24 5 Appendix 5 1 Specification 5 1 1 Common 32 MHz M16C 60 microprocessor Time to Digital Converter TDC Mach300 Control pins of the TDC are configurable via microprocessor 2 SMB measurement inputs for high precision time difference measurements 4 MHz oscillator used as TDC calibration clock 30ppm Red LED for power on indication Green LED for indication of correct microprocessor operation Communication between PC and evaluation board via USB 1 1 5 1 2 Minimum system requirements PC with USB 1 1 interface Operating system Windows XP Windows Vista Windows 7 with NET framework 3 5 or later Measurement inputs with 3 3V 5V compatible ports for start and stop 5 1 3 Power supply Standard universal power supply connected to X201 min 9V up to max 12 V AC DC Maximum current consumption of the board approx 200 mA To guarantee a high degree of signal integrity the board provides two independent supply voltages one for the TDC chip and one for the microprocessor So the power supply of the TDC chip is not affected and disturbed by other components The TDC s supply voltage is adjustable via the potentiometer R209 within the voltage range of 2 7V up to 5 5V The supply voltage of the microprocessor an

Download Pdf Manuals

image

Related Search

Related Contents

MANUAL TÉCNICO - Amazon Web Services  Professional 2 Channel Stereo Mixer  SG_NVD-V001S V1.10_ES  MX-TEB  スポットキュア シリーズ  PDF形式 - 公益財団法人山梨県下水道公社  Samsung PPM63M7FS Korisničko uputstvo  1. Le matériel  H1_4k  Omnimount Verona 47FP User's Manual  

Copyright © All rights reserved.
Failed to retrieve file