Home

User manual MSC STK

image

Contents

1. 23 Toe e TUNIC IO Oni DN Nm um 23 T ble 9 variable ata 24 Table TO wariable 5 4 5 24 MONS Nm 24 Table 12 FUNCTION WriteDebug EE m 24 ee ee 24 Table 14 variable Debug Mode eee RE ee 24 oma CIC 25 Table 16 function RestorePinSettings occasu tivo iuto coa SEES RAV 25 Table 17 Sd BEEITIBSD uideri aue E RUFI dito UE Rua did 25 TON oe WIC LION N MR 25 Table 19 variable AutoConnectButton 25 Table 207 variable VersiOhbdbbl sceau err eTI 25 Table 21 variable WorkingProgressBar 32 nennen ene nnne nennen nnne nennen essen 25 Table 22 Var lable RR 26 Table 23 variable GlobalTimi Out Value Rea PE
2. i5 AJ ho 2 4023 LITT 1027 oz foc RR 4 ay 4 E LS incu NNNnnn 3023 c coo L pp EE Koln 4d n L pe co 4 L 4 E 5 E 4 m 4 te E g _ E E E id I n 2 6 612 204 TOZ NR CE R218 213 Elche tle 4 una ED a LELELELDUELBLELLD TT 1E Figure 9 Layout diagram 502 starter kit top view USB version MSCSTKTDC502RefManEngV31 docx Rev 3 1 tdc msc ge com www msc ge com Author AP AKL MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 33 of 34 5 4 H H H H H H i 1 H 1 1 16 i H VCC 16 U201 DATAO 86 44 WRN D 52 DATAT 85 43 lt WRN li R224 DATA2 84 42 RDN K RON 470R DATA3 83 41 T DATA DATA4 82 40 T bei DATAS 81 39 EPM N DATAS D
3. 0 144 4 8 MANN RET RD 22 Figure 7 Layout diagram TDC502 starter kit top view RS232 30 Figure 8 Schematic of the TDC502 starter kit 5232 version 1 4 1 enne nnns 31 Figure 9 Layout diagram TDC502 starter kit top View USB 2 20 111 1 nn 32 Figure 10 Schematic of the TDC502 starter kit USB version 1 33 Figure 11 Schematic of the TDC502 starter kit USB version part 2 34 Tables Table 1 1 0 history line GSCI DEON 9 Table 2 Additional input line control commanwds eese nennen nnne nnns 10 Table 3 Protocol DOXCEBXEEUDBSL 10 Table 4 TDC502 opcodes for input line or user defined 5 1 101 n 12 Table 5 TDC502 hardware specific opcodes for input line or user defined functions 13 MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 4 of 34 Table 6 MSCSTK LIB defined forms 22 Table 7 MSCSTK LIB defined form elements and
4. B i 1 7 MODE TMS M i 1 SCLK TCK mE H 1 E b d C316 i 100nF i M GND GND bd P ud A M M J MEE 1 i d i 300 330 ohne SPI mechanical parts for layout 1 1 ME alle 7 offen lassen i a ee Se et i d FT301 FT302 FT303 o 1 12 Widerstandsmessun 300 330 mit SPI ne nicht bestuecken nicht bestuecken nicht bestuecken 9 5 7 bestuecken Widerstandspaare als 301 1 1 1 1 zi Brueckenswitches ausfuehren H L 502 Best ckung egal EXBMARK H Referenzwiderstand OR 300 Kondensator 2 301 SSN 300 MISO 330 R313 300 330 2 SSN gt 2 1 SSN 330 Board ID 6 RoHS Label aM 2 EN 5 i Rj302 330 BOARD_ID1 PB FREE H OR A A 1 Q303 2 1 MOSI OR 300 i b BC848C BC848C ME peccasse qu 2 73303 i d MISO 300 a oR 2 MISO 162 2 T_SSN_309 MISO 330 1 R320 300 330 TENNE OR NO Variant Name H 2 i 1 ae STE i i 4 OR H i ot H Prj No 0464 MSC FER Prj
5. 5 STK TDCMACH Industriestr 16 3 7 Sheet TDCs D 76297 Stutensee H i H Document 100464 Germany l E Copyright MSG Vertriebs GmbH Diet nts cc See anc et iia nee no oo tea etn an tte nn ete ent ohn se sn 1 Last modified Monday 17 2010 16 09 42 Created Wednesday December 09 2009 11 28 44
6. CEU URN 26 TNE Dee SU MD T 26 Table 25 function GenericOptionsDialog sisse EAR VE Eget dne b Rr ba RV rh PX 27 Table 26 function ShowConfiguration 27 Example 1 I O history Example Z Protocol DOXA EE EE Example 3 Place a program on user function button 9 0 04400 Example 4 button 9 output in protocol DOX ceecccesseccccessececeesececeeeceeceescceeeueceseeneceeseeecessusecessegeceesanaeeees MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 5 of 34 1 Introduction In combination with a PC the MSC STK TDC502 starter kit is an easy to use evaluation tool for the MSC Time to Digital Converter TDC502 The starter kit consists of the evaluation board and the necessary accessories It is available either as RS232 version or as USB version 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 either a RS232 or 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
7. Note Remove jumpers J6 J7 and J8 see figure 7 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 1 4 Single shot mode 6 Clicking on the single shot mode 6 button will start a single shot time difference measurement with automatic calibration in measurement mode 6 The automatic calibration measurement is performed with a calibration clock period of 500ns After selecting the channel or B and the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the program waits for one rising edge on both the start input START connector X1 and either the stop input STOP A X2 or STOP B X3 depending on the selected channel The program executes a waiting loop The 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 a start stop event takes place the measurement result is calculated and displayed in the protocol box The minimum measurement period is approx tyin 900ns 5V typ and the maximum measurement period 5 approx tx 16ms Please keep in mind When measuring long time differences the accuracy of the board s 4MHz oscillator becomes significant because this clock is the absolute tim
8. User Manual MSC STK TDC502 Rev 3 1 Date 2011 07 28 MSC Vertriebs GmbH Industriestra e 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 TDC502 Page 2 of 34 Contents 2 554 6 E E secu 5 2 22 ARIES Emm 6 2 1 pis PII m 6 2 2 Suede e 6 3 Installing and running the software SERERE orav 7 3 1 Host software installation 7 3 2 kit measurement software overview 8 3 3 ADDICATION SOTLW al CG FUNCTIONS lt lt td id poop ub 9 3 3 1 Connect Disconnect 9 3 3 2 9 3 3 3 190615 499 Qe TO are ene ee ee eee 9 3 3 4 Hardware setting ch
9. USB version part 2 Author AP AKL Gleiche Leitungsl ngen f r START STOP JP301 TDC MAC H300 330 Zweige 1 le eJ 2 lt START3 2 X301 ME U301B 1 START INTFLAG VALID START INTFLAG VALID 2 BANK 1 2 OF 3 BANK O s STOP A crop voc BANK 3 1 OF 3 BANK 2 EN STOP A EN STOP A 22k T 5 108 144 7 od 106 142 X STOP B 38 STOP B 42 xP PB2C DATA 2 EN STOP 35 4 JP302 2 CALCLK EAEL CALCLK VCC 35 HP PB3B P 2 CHARGE S 105 14 CSON CHARGE_STP 2 PNE i PB3C lt cson2 d 44 INTFLAG VALID 4 B EBD DATAS y DATAS 103 138 P ADRO 23 10k RN301A 102 139 WRN 5 ADR X 24 10k RN301C ae E MISO 300 101 137 6 2 2 2 ADR T 11 ie P RST N 100 134 22k nicht best cken ADR3 10k 1 i ia gt START 2 DATAS y DATAS 97 PTSD aaa pec GP 2 STOP B 12 5 SSN 300 MISO 330 96 H 2 132 DATAO 18 s 13 PCLKT2_1 PB5B DATA4 95 PT4A 7151 ee i i4 5 DATA4 PT4B 1 2 CHARGE STP DATA T 154 4 2 Tote PED EN SPI 94 130 patas eae M K ex Em MA T a 5 92 127 e M READY 22 10 v PCLKT2_0 PB6B a PCLKTO 0 PT58 PLeC t used 126 Eu Htttt i i 1 PLD 90 Psg GND 89 125 19 PL7A PB7E DAT
10. button will find out the TDC s resolution Therefor the channel A or B and the kind of resolution Half Normal High or Smart have to be selected within a select options dialog figure 6 The number of calibration measurements has to be entered as well The calibration values OFFSET CAL and the actual resolution of each measurement are displayed in the protocol box At the end of the measurements the standard deviations of OFFSET and CAL and the channel s average resolution are displayed The calibration measurements are performed with a calibration clock period of 250ns 3 5 2 2 Single shot mode 0 Clicking on the single shot mode O button will start a single shot time difference measurement with automatic calibration in measurement mode O The automatic calibration measurement is performed with a calibration clock period of 1000ns After selecting the channel A or B and the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the program waits for one rising edge on both the start input START connector X301 and either the stop input STOP A X302 or STOP B X303 depending on the selected channel The program executes a waiting loop The 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 a start stop event takes place the measurement result is calculated and displayed in the protocol
11. 8 Bit Hex rd RD REG 4 H Raw Value Register 4 High byte 8 Bit Hex rd RD REG 71 Raw Value Register 7 Low byte 8 Bit Hex rd RD REG 8 Raw Value Register 8 High byte 8 Bit Hex rd RD REG 101 Raw Value Register 10 Low byte 8 Bit Hex rd RD REG 11 Raw Value Register 11 High byte 8 Bit Hex rd Table 4 TDC502 opcodes for input line or user defined functions MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Return value Hex Page 13 of 34 Access Opcode Parameter Description 7 7 Mode RD READY Reads TDC s pin READY 0x00 or 0x01 rd RD INTFLAG Reads TDC s pin INTFLAG 0x00 or 0x01 rd RD EX MBII M Reads TDC s pin MBII 0x00 or 0x01 r d RD_GPIO_PINS Reads TDC s pins GPIO 3 0 0x00 up to OxOF rd wr resistance MESS WID resistance MESS MULTI s Number of High speed cycle of n single shot measurements measurements mode O 1 start 1 stop 16 Bit Hex with auto noise and reading the raw max 0x07d0 value registers default TDC settings channel A normal resolution 250ns no ALU no retrigger rising edges MESS MULTI D Number of High speed cycle of n single shot measurements measurements 2 1 start 1 stop 16 Bit Hex per channel with auto noise and max 0x03e8 reading the ra
12. MSCSTK LIB int Cmd string message Int32 TimeOutValue int Cmd string message void GenericOptionsDialog bool OneChannel bool Resolution bool Measurements void InitTDC int Mode void RestorePinSettings void SavePinSettings void ShowConfiguration int Mode void Wait 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 AutoCtonnectButton double CalClkPeriod VersionLabel int GlobalTimeOutValue WorkingProcessBar int Result bool DebugMode bool RunProgram Lolor DbgColot Color ErrColorf 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
13. OptionDialog form and the dl selected measurement mode Mode in the protocol box Shows the selected measurement mode Mode va Example 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 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 MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Example 3 Place a program on user function button 9 Add to the function UserFunctionButtonHandler case 9 Program control variable must be activated RunProgram tru
14. Register channel A Wr wr WR HIGH REG B 8 Bit Hex High Resolution Register channel B WR SMART REG A 8 Bit Hex Smart Resolution Register channel A Wr WR SMART REG B 8 Bit Hex Smart Resolution Register channel B wr WR_MULT_REG 1 8 Bit Hex Multiplication Register 1 Low byte wr wr WR_MULT_REG 2 8 Bit Hex Multiplication Register 2 Middle byte WR MULT REG 3 8 Bit Hex Multiplication Register 3 High byte z WR_ALU_REG 8 Bit Hex ALU Register wr RD_INIT_REG Init Register 8 Bit Hex rd RD_CTRL_REG_1 Control Register 1 8 Bit Hex rd MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 12 of 34 value mode Description Return Access RD_HIT_REG Hit Register 8 Bit Hex rd RD HIGH REG High Resolution Register channel 8 Bit Hex rd RD MULT REG 2 Multiplication Register 2 Middle byte 8 Bit Hex rd RD MULT REG 3 Multiplication Register 3 High byte 8 Bit Hex rd RD REG ALU Register 8 Bit Hex rd RD_GPIO_IN REG GPIO Input Register 8 Bit Hex rd RD ERG REG OL Result 0 Low byte fractional portion 8 Bit Hex rd RD ERG REG Result 0 High byte integer portion 8 Bit Hex rd RD REG OL Raw Value Register 0 Low byte 8 Bit Hex rd RD REG 1 H Raw Value Register 1 High byte 8 Bit Hex rd RD REG 3 Raw Value Register 3 Low byte
15. Return value n a Table 12 function WriteDebug Description The colour variables are used as the predefined colours for the output messages on the protocol box The values are changeable Predefined 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 IntColor 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 MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 25 of 34 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 void RestorePinSettings Description The function RestorePinSettings loads the saved TDC structure program settings to the GUI an initialised the starter kit afterwards with this settings
16. Table 16 function RestorePinSettings Parameter Return value Function call void SavePinSettings Description The function SavePinSettings has to be used to save current program settings in the TDC structure Table 17 function SavePinSettings Function call void Wait Int32 ms The function wait can be used to stop the current software process and to wait a defined time ms Table 18 function Wait Variable Button AutoConnectButton Description This is the Connect Disconnect Button of the GUI It s useful to combine the initialisation Parameter Return value 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 MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 double CalClkPeriod Description This variable is predefined with 250 ns and corresponds with the used 4MHz oscilla
17. box The maximum measurement period tyax for Normal and Half Resolution is approx 10 5 for High Resolution approx 5us and for Smart Resolution approx 2 5us 5V typ the minimum measurement period is tmn Ons Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length Note Remove jumpers JP301 JP302 and JP303 see figure 9 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 2 3 Single shot mode Z Clicking on the single shot mode 2 button will start a time difference measurement on both channels with an automatic calibration in measurement mode 2 The automatic calibration measurement is performed with a calibration clock period of tc4 1000ns After selecting the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the program waits for one rising edge on the start input START connector X301 followed by one rising edge on the stop input STOP A X302 and one rising edge on the stop input STOP B X303 The program executes a waiting loop The waiting loop will be exited if either a start stop stop event takes place or a predefined waiting time has exceeded error message If a start stop stop ev
18. chip are accessible for analyses e g logic analyser via two connectors Data bus 3 2 TM 5232 or USB Micro Address bus TDC502 TOEA interface processor L Control lines STOP B 1 RC ports Figure 1 Evaluation board block diagram The starter kit provides the following components 1 power supply unit Imin 500 mA 1 evaluation board 1 cable 9 pole for serial interface 1 1 connection RS232 version 1 extender 9 pole 25 pole RS232 version 1 CD including software and documentation 3 measurement cables 1 user manual MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 6 of 34 2 Installing the hardware 2 1 RS232 Version First of all the evaluation board has to be connected to a COM port of the PC using the provided 9 pole cable If only a 25 pole connector is available at the PC the provided extender can be used After this the evaluation board has to be powered by connecting the provided power supply to the connector J5 see figure 7 The red Power LED LED2 and the green Run LED LED1 turn on and indicate the correct operation of the microprocessor The evaluation board is ready to operate 2 2 USB Version First of all the evaluation board has to be powered by connecting the provided power supply unit to the connector X201 see figure
19. 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 37 Exit button The exit button disconnects the starter kit and closes the application All information like 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 Enables debug outputs DEBUG OFF Disables debug outputs CALCLKPERIOD value Change the calibration clock period to value 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 MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 11 of 34 Example 2 Protocol box Connected with USB starterkit MS
20. 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 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 The minimum measurement period of each measurement is approx tmn 900ns 5V typ and the maximum measurement period is approx tx 16ms Please keep in mind When measuring long time differences the accuracy of the board s 4MHz oscillator becomes significant because this clock is the absolute time reference So e g the absolute error may be up to 800ns when measuring a time difference of 8ms using an oscillator with an accuracy of 100ppm But for all that remember The time is measured with the TDC s resolution MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 18 of 34 Note Remove jumpers J6 J7 and J8 see figure 7 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 2 USB Version predefined functions 3 5 2 1 Channel resolution Clicking on the channel resolution
21. 7 5 E P7 4 ADRO 23 10 51 30 ADR1 24 A 9 GPO 52 79 CHARGE STP ADR2 25 OUTA 8 51 1 78 ADRS 25 NC GPIOO 25 P7 0 49 bl VCCHB NC EX 4 17 avec 676 VCCH8 VCCHB 13 NC TDC 633 100 READY 45 pos y P 12 GND 42 R20 wid CONS 5 ab RXDO Hi3 470R RM V 105 ADR3 39 le _ 6 j DR2 38 RESET nPURESET om stants Lb ADRO RESO vPP 10 100n 821505 START 35 LED1 SOT143 TD7 34 LED aruen 32 950 Mit 10K best cken f r MPW 10K2 ee VL 105 32 VCCHB 22K OR best cken f r TDC MPW502 WAN ub Gaby V Toa 31 RDN 30 s V 102 za V 101 a R22 Vcc 10K RST N 1 43 GND 26 9 LED RST_N 25 8 OSC EN 24 7 GPIOD ADR4 TDC502 23 6 21 5 BINOUT2 MPW502 MPW502 MPW502 20 4 GPINOUT3 MPW10K2 MPW10K2 TOO 19 3 EN STOP 18 2 STOP B 72 TDC502 TDC502 TDC502 WRN 71 MPW10K2 RDN 70 69 96 CHARGE STP MT 62 3 795 ARTI 61 94 START2 93 STARTS INTFLAG 60 VCCHB ME 56 4 550 op C20 c21 MPW502 MPW502 MPW502 2831803 89 GND MPW10K2 MPW10K2 MPW10K2 VCCH8 75 206321502 ND 74 uu 87 TDC READY VCCHB 73 1u 16V 1 16 ug L ngs Querbest ckung m glich 2 5 6uH 1 U8 63 aPURESET s 6 TDC502 TDC502 TDC502 E 67 10 R25 2 64 9 0R 13 5 6uH 7 ou
22. 9 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 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 USB version MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 7 of 34 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 F MSC TDC Starterkit SW Installer Setup TDC Starterkit SW Installer Setup Choose Components Welcome to the MSC TDC Starterkit Choose which features of MSC 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 yo
23. A 2 prea Hs RN302A 10k PL7B 87 PCLKTO_1 PT6B RN302B 10k CSON 32 RN302C 10k 29 i 86 RN302D 10k WAN 31 40 BE RN303A 10k RDN 30 i Pia PSAL T RN303B 10k 43 BE 4 b H psc ra PL9D 1 DATA1 81 116 RSI a 23 tos DATA1 gt PT8B L 80 115 30 DATAO R1 55 31 114 PL10D 76 PT9B 113 Se 5 PL11B s7 PT9D 111 ADRO PL11C 75 PT9E i Block C s PL11D 2 oar i VCC VCC VCC VCC 1 A 135 VCCIOS VCCIO1 98 VCCIOO 135 1 LI VCCIO1 VCCIOO C301 C302 C303 C304 40 3 10uF 10uF 220uF 220uF i LCMXO6400 3 1 N N N i H 1 1 U301C i H 3 3 1 H H i 1 i van ii ccc ail a a a oa a a na aaa a i a a atta aan a aa n 1 i 1 H 1 d 1 1 1 JTAG Signalrichtung 1 1 Ref lock VCC Namensgebung aus Sicht des FPGA ererenzcioc d TDO Input von DownloadCable i MEM TDI Onput von DownloadCable i 1 1 i i 1 1 2 OSC 0 40 3 1 H H i
24. ART connector X301 and either the stop input STOP A X302 or STOP B X303 depending on the selected channel The program executes a waiting loop The 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 a start stop event takes place the measurement result is calculated and displayed in the protocol box The minimum measurement period is approx tmn 900ns 5V typ and the maximum measurement period 5 approx tux 16ms Please keep in mind When measuring long time differences the accuracy of the board s 4MHz oscillator becomes significant because this clock is the absolute time reference So e g the absolute error may be up to 800ns when measuring a time difference of 8ms using an oscillator with an accuracy of 100ppm But for all that remember The time is measured with the TDC s resolution Note Remove jumpers JP301 JP302 and JP303 see figure 9 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 2 5 Resistor measurement Clicking on the resistor measurement button will start a resistance measurement cycle with automatic calibrations using a calibration clock period of 5005 Resistor values between 5000 and 25 may be d
25. ATA 80 38 i ES 3 DATAS 79 37 57 i LED gruen RST N 78 36 3 9 25 77 35 OSC DIS 76 34 osc Di 75 55 EN SPI M16 74 32 BUSY UE SSN M16 73 31 SCK1 MOSI M16 72 30 RXD1 _ SCK M16 71 29 TXD1 i SCK_M16 0 70 28 Z usoa i 67 25 EN STOP B OE i 2 66 stone 3 55 START2 3 63 21 CHARGE SIP 5 5 3 1 61 20 IDO 59 58 18 502 beide offen 57 17 VCC USB 3V3 R237 R236 300 nur R236 best cken i 56 16 oR 330 beide best cken 1 55 15 al 54 9 53 GND 52 5 D 51 4 D 50 3 49 2 P93 CSON M16 48 1 47 100 H 46 99 45 98 1 1 M16 95 INTFLAG VALID 1 A 14 93 TDG READY OV mo 60 P102 EX MBII EX MBI 3 p103 MSO Mis 00 wo Mig 3 i 97 pig ESO EPOS p105 9 GPIOT 3 USB 3V3 GND 96 5 88 GPIO2 6 i GPIO3 3 VCC 16 JP201 XIN M16 13 7 CNVSS 2 1 1 180k R221NO XOUT M18 11 94 NO i 12 RST M16 N 10 z 1 1 M18C 6C Gub E i VCC M18 H H H i i i i i i i i i i H H i i i i i H 1 Pee I a AE AORN REL ORS AE ROR ELE 1 1 1 1 1 i 1 1 1 Debug Interface 1 1 1 1 1 1 VCC M16 VCC M16 1 i 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 i 1 1 1 1 Li
26. C502 The oscillator off Now the oscillator is on Take a look at the blinking green LED Now the green LED is on Program execution was successful MSCSTKTDC502RefManEngV31 docx Rev 3 1 tdc msc ge com www msc ge com Author AP AKL MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 29 of 34 5 Appendix 5 1 Specification 5 1 1 Common 16 MHz H8 3048F microprocessor RS232 version 32 MHz M16C 60 microprocessor USB version Time to Digital Converter TDC502 Control pins of the TDC are configurable via microprocessor 3SMB measurement inputs for high precision time difference measurements 2 measurement ports for resistance 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 RS232 with standard DB 9S connector protocol fixed to 9600 baud 8 data bits 1 stop bit no parity RS232 version Communication between PC and evaluation board via USB 1 1 USB version 5 1 2 Minimum system requirements PC with 9 25 pol serial RS232 interface RS232 version PC with USB 1 1 interface USB version 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 supp
27. CSTK TDC502 gt LED ON lt d Determination of the TDC channel B resolution by 1 calibration measurements tCAL 0 25 ns Your selected configuration Channel s B Resolution smart Measurements 1 OSC EN it PU_RESET it WR CTRL REG 1 48 it WR HIGH REG B 04 3 3 10 Clear protocol button The clear button clears the protocol box contents Furthermore it clears the 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 INIT 8 Bit Hex Init Register wr WR CTRL REG 1 8 Bit Hex Control Register 1 wr WR_CTRL_REG 2 8 Bit Hex Control Register 2 wr WR CTRL REG 3 8 Bit Hex Control Register 3 wr WR_HIT_REG 8 Bit Hex Hit Register wr WR_INT_EN_REG 8 Bit Hex Interrupt Enable Register wr WR_GPIO_REG 8 Bit Hex GPIO Configuration Register wr WR HIGH REG A 8 Bit Hex High Resolution
28. GND 74 14 GND 74 14 1 1 Figure 10 Schematic of the TDC502 starter kit USB version part 1 Author AP AKL Spannungsversorgung 10uH 2 10uH CON POWER GND VCC R202 2 D201 1 2 p 3 470R LED rot Umax 5 6V GND _ 16 1K2 bei fix 5v VCC M16 R233 NO 1 100nF TSK R234 NO 1K5 bei variabler 1 Spannung R235 GND 1 Umax 5 6V VCC_USB_5V VCC USB 3V3 4 M16 X203 OR 2 IDC Steckerl 14pol GND GND Variant Name Prj No 0464 MSC P TW Prj MSC 5 Industriestr 16 ES Sheet 16 D 76297 Stutensee Document SP100464 Germany Copyright MSC Vertriebs GmbH Last modified Monday May 17 2010 16 09 42 Created Wednesday December 09 2009 11 32 29 MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 34 of 34 TDC502 j MSCSTKTDC502RefManEngV31 docx tdc msc ge com www msc ge com Rev 3 1 Figure 11 Schematic of the TDC502 starter kit
29. N DISABLE B Puts the TDC pin EN STOP B to O Table 5 TDC502 hardware specific opcodes for input line or user defined functions Available for USB version only Can be changed before calling the opcode MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com WWW msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 14 of 34 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 measurement programs see chap 4 The predefined functions of the RS232 version are slightly different from those of the USB version 3 5 1 RS232 Version predefined functions 3 5 1 1 Channel resolution Clicking on the channel resolution button will find out the TDC s resolution Therefor the channel A or B and the kind of resolution Half Normal High or Smart have to be selected within a select options dialog figure 6 The number of calibration measurements has to be entered as well The calibration values OFFSET CAL and the actual resolution of each measurement are displayed in the protocol box At the end of the measurements the standard deviations of OFFSET and CAL and the channel s average resolution are displayed The calibration measurements are performed with a calibration clock period of 250ns 3 5 1 2 Single shot mode 0 Clicking on the sing
30. USB version 5 2 1 RS232 Version Figure 7 shows the top view of the board s layout diagram of the RS232 version and figure 8 show its schematic Please notice that R42 R51 R52 R53 R57 R58 and R59 are not fitted with components R44 is 1 5 and R50 is R25 and R26 are wired cross over The board s connector X1 is connected to the TDC s pin START X2 is connected to STOP A and X3 is connected to STOP CN v 72 0 A zx N CO 2 AJ zu zu D E N Figure 7 Layout diagram TDC502 starter kit top view RS232 version MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 31 of 34 8 7 8 vcc Voltmeteranschlu amp zur Pr fung von VTDC 16 C17 C18 C19 7 100n 100n 100n 100n C36 J6 2204 2200 CON2 Gleiche Leitungslangen f r START STOP Zweig 1 START_B f r MPW10K2 STARTS VCCHB 17 D R47 2 14 22K E 100n 100 100n u1 10u 16V SIART 36 START NC INTFLAG 24 NTFLAG 2 STOP 414 STOP Us HEADER10X2 HEADER10X2 A 42 voc A g STOP B 38 28 i EN SIT B 37 j GND STP B 91 avss 28 GND 22K CALCLK 3 99 85 CON2 55
31. V typ the minimum measurement period is Ons always Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length Note Remove jumpers JP301 JP302 and JP303 see figure 9 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 2 7 single shots mode 2 Clicking on the n times single shots mode 2 button will start a high speed cycle of n time difference measurements on both channels using measurement mode 2 with automatic calibration and auto noise calibration measurements are performed with a calibration clock period of tca 1000ns After selecting the kind of resolution Half Normal High or Smart and the number of measurements n lt 1000 within a select options dialog figure 6 the program awaits n start stop stop measurements with one rising edge on the start input START connector X301 followed by one rising edge on the stop input STOP A X302 and one rising edge on the stop input STOP B X303 Before each measurement the program executes a waiting loop Each waiting loop will be exited if either a start stop stop event takes place or a predefined waiting time has exceeded error message If all n start stop stop eve
32. VCC VGC Li Li LI i INTFLAG VALID READY Li a 3 1 EN SPI M16 MOSI M16 SCK M16 SSN M16 MISO M16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 qeu qe QUIDNE EN EE EOD IOEEEDI QUEE EN NRI EEREEEPENNNUL GP GP 0D OD OD UD UD UD UD QD RED OD GI MSCSTKTDC502RefManEngV31 docx tdc msc ge com www msc ge com Rev 3 1 USB Anschluss USB 5V X205 5 1 SHLD1 VCC 6 p 2 D IN D GND CON USB F TYP B R232 1 5k 15pF GND GND GND GND Reseterzeugung VCC M16 VCC M16 U202 GND C201 100nF PURESET N N MAX821 GND M18 VCC M18 VCC M16 74LVC1G07 Pullup down VCC_M16 VCC M16 M16 GND R219 2 1 10k SCK1 GND GEM Verzoegerung U207B ADRO 3 74AHC14 74AHC14 H H H i H i i H i H i i i i i H i i i H i i i i i GND U207C U207D 1 1 H i 1 31 1 i 74AHC 14 74AHC 14 i H U207F U207E H ADR2 31 74AHC 14 74 14 Li VCC_M16 H H i ADR3 74 14 74 14 i i GND U208F U208E i 1 i i Cson lt 3 1 1 i i i 74 14 74 14 i i U208C U208D 1 1 5 6 9 8
33. able channel 1 TDC10000 OptionsDialog variable OptionsDialog variable TDC10000 TDC502 OptionsDialog variable TDC10000 TDC502 OptionsDialog variable TDC502 Clock divider variable 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 MSCSTKTDC502RefManEngV31 docx Rev 3 1 tdc msc ge com www msc ge com Author AP AKL MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 27 of 34 4 4 4 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 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
34. anual MSC STK TDC502 Page 9 of 34 3 3 Application software functions 3 3 1 Connect Disconnect button 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 The I O history button shows a list of all transactions between the host software and the starter kit Each entry has following information 12 13435 629 0007 GO I 0006 LED OFF Time stamp List entry Com Command Data Command number or Transferred number port status direction command reference data Good Input Fail O Output Unknown Table 1 1 0 history line description Example 1 1 history 5B 620 58 671 58 677 58 702 00191 00201 0012 GO I 0013 S I ACK 0013 U RESET 0021 it WR CTRL REG 1 48 0022 This example shows the both commands RESET WR CTRL REG 1 48 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 applica
35. calibration measurements and auto noise All separate calibration measurements are performed with a calibration clock period of 500ns After selecting the channel A or B the kind of resolution Half Normal High or Smart and the number of measurements n lt 1200 within a select options dialog figure 6 the program awaits n start stop measurements with rising edges on both the start input START connector X301 and either the stop input STOP A X302 or STOP B X303 depending on the selected channel 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 L command timeout see table 8 is reached 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 approx tmn 900ns 5V typ and the maximum measurement period is approx tx 16ms Please keep in mind When measuring long time differences the accuracy of the board s 4MHz oscillator becomes significant because this clock is the absolute time reference So e g the absolute error may be up to 800ns when measuring a time difference of 8ms using an osc
36. ded for the unknown measurement resistor R meas 3 5 2 6 N times single shots mode 0 Clicking on the n times single shots mode O button will start a high speed cycle of n single shot time difference measurements using measurement mode with automatic calibration and auto noise All calibration measurements are performed with a calibration clock period of tca 1000ns After selecting the channel A or B the kind of resolution Half Normal High or Smart and the number of measurements n lt 2000 within a select options dialog figure 6 the program awaits n start stop measurements with rising edges on both the start input START connector X301 and either the stop input STOP A X302 or STOP B X303 depending on the selected channel 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 S command timeout see table 8 is reached 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 maximum measurement period tmax of each measurement for Normal and Half Resolution is approx 10 5 for High Resolution approx 5us and for Smart Resolution approx 2 5us 5
37. e Title Page 28 of 34 WriteText Environment NewLine My first user measurement program TitColor Output the connected 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 2 on off Infcolor Switch on the oscillator if TDC OSC 05 EN WriteText Now the oscillator is TDC OSC on off 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 LED OFF else Cmd LED Wait 100 wait for 0 5s to see a blinking LED Switch the LED on finally 1 TDC LED Cmd LED ON WriteText Now the green LED is TDC LED on off f 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 InfColor InfColor 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 TD
38. e average measurement times and standard deviations The maximum measurement period tmax of each measurement for Normal and Half Resolution is approx 10 5 for High Resolution approx 5us and for Smart Resolution approx 2 5us 5V typ the minimum measurement period is tmn Ons always Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length Note Remove jumpers J6 J7 and J8 see figure 7 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 1 8 N times single shots mode 6 Clicking on the n times single shots mode 6 button will start a cycle of n single shot time difference measurements using measurement mode 6 with automatic calibration All calibration measurements are performed with a calibration clock period of tca 500ns After selecting the channel or B the kind of resolution Half Normal High or Smart and the number of measurements n lt 640 within a select options dialog figure 6 the program awaits n start stop measurements with rising edges on both the start input START connector X1 and either the stop input STOP_A X2 or STOP_B X3 depending on the selected channel Before each measurement the program executes a
39. e reference So e g the absolute error may be up to 800ns when measuring a time difference of 8ms using an oscillator with an accuracy of 100ppm But for all that remember The time is measured with the TDC s resolution Note Remove jumpers J6 J7 and J8 see figure 7 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 1 5 Resistor measurement Clicking on the resistor measurement button will start a resistance measurement cycle with automatic calibrations using a calibration clock period of tca 500ns Resistor values between 5000 and 5 be determined After selecting the channel A or B and the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the measurement cycle starts During the resistance measurement cycle first of all the discharging time tace of the RC combination reference resistor parallel capacitor is measured and displayed the protocol box After this the discharging time tmeas of the RC combination unknown measurement resistor parallel capacitor is determined and displayed Then the ratio tmeas trer of the two measured times is displayed In theory the unknown measurement resistor is calculated as follows MSCSTKTDC502RefManEngV31 docx Rev 3 1 Aut
40. eckboxes 9 3 3 5 TDC reset Dutton m E 10 3 3 6 User defied function EET TT 10 3 3 7 ERIC DUTON 10 3 3 8 DOCIO ea mm E S 10 3 3 9 PrO 10 210 eR IU UU ITE 11 3 4 TDC starter kit measurement software commands 11 3 5 USEF GETING TUNCUIONS c 14 3 5 1 RS232 Version predefined 5 1 1 4 1 4 27 14 3 5 2 USB Version predefined functions 1 41 18 4 Creating your own measurements eres esse seres esee 22 4 1 Software FOC EIS ETE OT NETUS 22 4 2 Create your own CH prole CLussieeone iste cid tite 22 4 3 Wolle Mi EIL ARI T 22 4 4 Function calls from MSCSTK LIB enne nennen nnn nans 23 4 4 1 Communication with the starter kit 23 4 4 2 DOK ETE 24 4 4 3 Initialisation the hardware and control the behaviour of
41. ent takes place three measurement results STOP A START STOP B START and STOP B STOP A are calculated and displayed in the protocol box MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 19 of 34 The maximum measurement period tmax for Normal Half Resolution is approx 10 5 for High Resolution approx 5us and for Smart Resolution approx 2 5us 5V typ the minimum measurement period is tmn Ons Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length Note Remove jumpers JP301 JP302 and JP303 see figure 9 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 2 4 Single shot mode 6 Clicking on the single shot mode 6 button will start a single shot time difference measurement with automatic calibration in measurement mode 6 The automatic calibration measurement is performed with a calibration clock period of 500ns After selecting the channel A or B and the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the program waits for one rising edge on both the start input ST
42. etermined After selecting the channel A or B and the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the measurement cycle starts During the resistance measurement cycle first of all the discharging time tace of the RC combination reference resistor parallel capacitor is measured and displayed in the protocol box After this the discharging time tmeas of the RC combination unknown measurement resistor parallel capacitor is determined and displayed Then the ratio tmeas trer of the two measured times is displayed With this ratio the resistance of the unknown measurement resistor Rmeas is calculated as follows Eas Ryeas Razr F1 REF MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 20 of 34 In this application the measurement error for resistor values between 500Q and 25kQ is lt 0 5 Note Close either jumpers JP301 and JP302 when channel A is selected or jumpers JP301 and JP303 when channel B is selected see figure 9 before the measurement Remove either jumper JP303 when channel A is selected or JP302 when channel B is selected Remove all measurement cables from the measurement inputs START STOP_A and STOP_B connectors X301 X302 and X303 as well Fit a capacitor of 100nF into jumper JP305 JP304 has to be fitted with a reference resistor of RREF 1 JP306 is inten
43. fference measurement 3 5 1 3 Single shot mode 2 Clicking on the single shot mode 2 button will start a time difference measurement on both channels with an automatic calibration in measurement mode 2 The automatic calibration measurement is performed with a calibration clock period of tc4 1000ns After selecting the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the program waits for one rising edge on the start input START connector X1 followed by one rising edge on the stop input STOP A X2 and one rising edge on the stop input STOP B X3 The program executes a waiting loop The waiting loop will be exited if either a start stop stop event takes place or a predefined waiting time has exceeded If a start stop stop event MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 15 of 34 takes place three measurement results STOP A START STOP START STOP B STOP are calculated and displayed in the protocol box The maximum measurement period tyax for Normal and Half Resolution is approx 10 5 for High Resolution approx 5us and for Smart Resolution approx 2 5us 5V typ the minimum measurement period is tmn Ons Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length
44. 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 stored in the integer array variable Result is returned Table 8 function Cmd MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 24 of 34 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 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
45. gram 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 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 Select channel A Select resolution Half Figure 6 Select options dialog Table 6 MSCSTK LIB defined forms MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 23 of 34 A TDCStruct structure is implemented MSCSTK LIB This structure contains the complete setting of the TDC and some program options Furthermore the following functions are available from
46. hor AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 16 of 34 LMEAS F1 When calculating the resistance of the unknown resistor via formula F1 the 22 pull down resistor R48 resp R49 which is in parallel to the measurement and reference resistors at the stop input of channel A resp channel is ignored For a more accurate calculation of Rmeas R48 resp R49 has to be taken into account as follows 22 F2 t Ragr 22k 2 Rage MEAS In this predefined function is calculated via formula F2 and displayed in the protocol box The meas urement error for resistor values between 500Q and 5kQ is lt 0 5 Note Close either jumpers J6 and J7 when channel A is selected or jumpers J6 and J8 when channel B is selected see figure 7 before the measurement Remove either jumper J8 when channel A is selected or J7 when channel B is selected Remove all measurement cables from the measurement inputs START STOP_A and STOP B connectors X1 X2 and X3 as well Fit a capacitor of 100nF into jumper J12 711 has to be fitted with a reference resistor of RREF 1k J10 is intended for the unknown measurement resistor R meas 3 5 1 6 N times single shots mode 0 Clicking on the n times single shots mode O button will start a cycle of n single shot time difference measurements using measureme
47. illator with an accuracy of 100ppm But for all that remember The time is measured with the TDC s resolution Note Remove jumpers JP301 JP302 and JP303 see figure 9 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 22 of 34 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 10000 5 and UserButtons cs which can be found also in the source code directory of the install CD Please overwrite the already Pro
48. it act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 17 of 34 3 5 1 7 N times single shots mode 2 Clicking on the n times single shots mode 2 button will start a cycle of n time difference measurements on both channels using measurement mode 2 with automatic calibration and auto noise All calibration measurements are performed with a calibration clock period of 1000ns After selecting the kind of resolution Half Normal High or Smart and the number of measurements n lt 640 within a select options dialog figure 6 the program awaits n start stop stop measurements with one rising edge on the start input START connector X1 followed by one rising edge on the stop input STOP_A X2 and one rising edge on the stop input 5 Before each measurement the program executes a waiting loop Each waiting loop will be exited if either a start stop stop event takes place or a predefined waiting time has exceeded If all n start stop stop events take place for all n measurements three measurement results STOP A START STOP B START and STOP B STOP are calculated and displayed in the protocol box together with the minimum the maximum and th
49. 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 TDC502 application window sets up as shown in figure 5 depending on the version of the starter kit TDC Starter Kit Measurement Software MSCSTK TDC502 Copyright MSC Vertriebs GmbH 2010 2011 m MSCSTK LIB 0 9 4 15289 Programm 0 9 4 18731 Search for connected starter kit hardware Connected with USB starterkit MSCSTK IDC502 1 0 Protocol Clear Protocol Hardware settings LED on EN STOP B OSC enabled EN STOP User defined functions Single shot mode 0 Single shot mode 2 Single shot mode 6 Resistor N4imes single shots mode 0 N4imes single shots mode 2 N4imes single shots mode 7 My 1st function Figure 5 Host software connected with a TDC502 starter kit USB 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 MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User M
50. le shot mode O button will start a single shot time difference measurement with automatic calibration in measurement mode O The automatic calibration measurement is performed with a calibration clock period of tca 1000ns After selecting the channel or B and the kind of resolution Half Normal High or Smart within a select options dialog figure 6 the program waits for one rising edge on both the start input START connector X1 and either the stop input STOP A X2 or STOP B X3 depending on the selected channel The program executes a waiting loop The 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 a start stop event takes place the measurement result is calculated and displayed in the protocol box The maximum measurement period tyax for Normal and Half Resolution is approx 10 5 for High Resolution approx 5us and for Smart Resolution approx 2 5us 5V typ the minimum measurement period is tmn Ons Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length Note Remove jumpers J6 J7 and J8 see figure 7 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time di
51. ly connected to J5 RS232 version resp X201 USB version 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 RAO RS232 version resp R209 USB version within the voltage range of 2 7V up to 5 5V The supply voltage of the microprocessor and all other components is adjustable via the potentiometer R45 RS232 version resp R225 USB version 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 gt The application software was tested using Windows XP Professional Edition 32 bit and Windows 7 Professional 64 bit MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 30 of 34 5 2 Layout diagrams schematics Layout diagrams and schematics are different for RS232 and
52. nt mode 0 with automatic calibration and auto noise All calibration measurements are performed with a calibration clock period of tc4 1000ns After selecting the channel A or B the kind of resolution Half Normal High or Smart and the number of measurements n lt 640 within a select options dialog figure 6 the program awaits n start stop measurements with rising edges on both the start input START connector X1 and either the stop input STOP A X2 or STOP B X3 depending on the selected channel 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 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 The maximum measurement period tmax of each measurement for Normal and Half Resolution is approx 10 5 for High Resolution approx 5us and for Smart Resolution approx 2 5us 5V typ the minimum measurement period is tuy Ons always Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length Note Remove jumpers J6 J7 and J8 see figure 7 before the measurement because the signal lines leading to the RC measurement circu
53. nts take place before the MESS MULTI D command timeout see table 8 is reached for all n measurements three measurement results A START B START and STOP B STOP are calculated and displayed in the MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 21 of 34 protocol box together with the minimum the maximum and the average measurement times and standard deviations Otherwise an error message is generated The maximum measurement period tmax of each measurement for Normal and Half Resolution is approx 10us for High Resolution approx 5us and for Smart Resolution approx 2 5us 5V typ the minimum measurement period is tuy Ons always Please keep in mind You will get results with highest precision when measuring time differences smaller than half the calibration clock period length Note Remove jumpers JP301 JP302 and JP303 see figure 9 before the measurement because the signal lines leading to the RC measurement circuit act as additional stubs during the time measurement This will decrease the quality of the signals and interferes with a high precision time difference measurement 3 5 2 8 N times single shots mode 7 Clicking on the n times single shots mode 7 button will start a high speed high precision cycle of n single shot time difference measurements using measurement mode 7 separate
54. r 66 T TXDO 1 3 HxDO 12 8 4 vcc 3 33p 33p C22 1 GND 5 100n 16MHz SG636 C23 DSUB 9 Female C24 cos MAX232ACSE 1u 16V voc 4x10k 0603 Kleinspg Buchse pomme Widerstandsmessung Kapazitatsmessung Referenzwiderstand Messwiderstand i Referenzkondensator Messkondensator i J10 Jn Kondensator Widerstand i H vec R42 J12 108 26 i 100 Q1 Q12 12 START BC 848C 2 48 1 i 1 5 74HC00 R44 1 2 bei fix 5V 1 5 bei variabler C47 Spannung 10u t6V i A voc A 0805 M S C Vertriebs GmbH Umax 5 6V Entwicklungsabteilung Werner von Siemens Str 1 C43 76297 Stutensee 2n2 Title Starter Kit f r den TDC502 Size Document Number 52 A2 STK TDC502 Date Wednesday May 11 2011 Sheet 1 8 7 6 5 4 3 1 Figure 8 Schematic of the TDC502 starter kit RS232 version MSCSTKTDC502RefManEngV31 docx tdc msc ge com WWW msc ge com Rev 3 1 Author AP AKL MSC Vertriebs GmbH 5 2 2 USB Version User Manual MSC STK TDC502 Page 32 of 34 Figure 9 shows the top view of the board s layout diagram of the USB version and Figure 10 and Figure 11 show its schematics The board s connector X301 is connected to the TDC s pin START X302 is connected to STOP_A and X303 is connected to STOP_B
55. the MSCSTKForm form elements 25 4 4 4 Working withthe OpticonDialog 27 MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 3 of 34 4 5 Implementing your program into the 2 14 27 29 sM PECE O e 29 5 1 1 E D TOOL DUET 29 5 1 2 Minimum system 29 5 1 3 S 29 5 1 4 irl HP 29 5 2 Layout diagrams 30 5 2 1 epu ee ee eer eee ee eee ee 30 5 2 2 HS O 32 Figures Figure 1 Evaluation board block diagram saiscadescsvindssuvncndsnapveedseeedesdusaandedsesvesedeoedsbaduecesanlameavcndseewuendeesbsenedssereties 5 Figure 2 Connect the starter kit USB 44 nnne nennen nennen 6 Fige re 3 MISCSTKIDCsInstaller Sol tU EB 7 Figure 4 Start up screen of the starter kit host software eesssssseeeeeseeseeeenn nnne 7 Figure 5 Host software connected with a TDC502 starter 05
56. tion 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 4 the starter kit oscillator Enabled checkboxes result in a 1 value of the related pin or control line 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 STOP Enables TDC pin EN STOP A 1 and disables STOP A O the TDC pin STOP EN STOP Enables TDC pin STOP B 1 and disables EN STOP B 0 the TDC pin STOP B Default settings after software connection are LED off oscillator disabled both stop inputs disabled MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 10 of 34 3 3 5 TDC reset 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
57. tor on the starter kit board Table 22 variable CalClkPeriod Page 26 of 34 Variable int GlobalTimeOutValue This variable is to 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 TUG ENSPI MODEO MoD NOEN NSTA sNS TP EN STOP A EN STOP B THC TD TEC TOC TOC TDC TDC POG Connected UART Name LEDR SEIS PINENAO PINENAI OptionsDialog variables TDC NumberOfMeasurements TDC FDC ChannelASelect ChannelBSelect TD nesolutriomn Connection status boolean Initialisation status boolean 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 En
58. u don t want to TDC Starterkit SW Installer install Click Next to continue It is recommended that you dose all other applications before starting Setup This will make it possible to update relevant system files without having to reboot your Select components to install USB Device driver computer Starter kit software Software source code Space required 669 0 Figure 3 MSCSTKTDC Installer software If you intent to run the USB version then first of all ensure that the USB driver 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 Input line e TDC Starter Kit Measurement Software not connected type HELP to get a short command list Copyright amp MSC Vertriebs GmbH 2010 2011 MSCSTK LIB 0 9 4 15289 Programm 0 9 4 18731 Protocol box SEN y 1 0 Protocol Figure 4 Start up screen of the starter kit host software MSCSTKTDC502RefManEngV31 docx Rev 3 1 Author AP AKL tdc msc ge com www msc ge com MSC Vertriebs GmbH User Manual MSC STK TDC502 Page 8 of 34 If the starter kit is powered and connected to the host the software connects to the kit Otherwise you connect the starter
59. w value registers default TDC settings normal resolution 250ns no ALU no retrigger rising edges MESS MULTI 1 Number of High speed amp high precision cycle of n measurements single shot measurements mode7 1 16 Bit Hex start 1 stop with auto noise separate max 0x04b0 calibration measurements and reading the raw value registers default TDC settings channel A normal resolution 250ns no ALU no retrigger rising edges INIT SYSTEM Message STK TDC502 is up Measurement cycle for reference Measurement cycle for unknown n 6 Byte Hex OFFSET low high CAL low high VAL1 low high n 12 Byte Hex OFFSET_A low high CAL_A low high VAL1_A low high OFFSET_B low high CAL_B low high VAL1_B low high n 10 Byte Hex OFFSET low high CAL low high VALO low high VAL1 low high 1 low high wr wr rd RESET ON Puts the TDC reset pin to 0 LED ON Switch on M16C s Run LED PU RESET Reset pulse for the TDC on pin RSTN LED OFF Switch off M16C s Run LED OSC EN Enables TDC calibration clock PIN ENABLE A Puts the TDC pin EN STOP A to PIN ENABLE B Puts the TDC pin EN STOP B to RESET OFF Puts the TDC reset pin to 1 rd Wr Wr wr wr wr wr wr wr wr wr wr OSC_DIS Disables TDC calibration clock 11 _ 41 y DISABLEA Puts the pin STOP A to 0 PI

Download Pdf Manuals

image

Related Search

Related Contents

Toto NEOREST MS990CG User's Manual  Garantía del equipo conectado (RF-HTS100 / RF  Snelstartinstallatie  Toshiba Satellite A35  ABSデジマチックインジケータ ID  白山市営繕工事提出書類一覧  SpectraLynx User Manual    お使いになるときは  KVM Extender 2009-03  

Copyright © All rights reserved.
Failed to retrieve file