PROCEDURE FOR BASIC ACCEPTANCE TESTING OF TIM-1 MODULES AT UCL ============================================================== ******************************************** **** FIFTH DRAFT **** MP-UCL, 26 May 2005 ******************************************** NOTE : The PCB/COMPONENT/TEST PINS details in this note refer ====== to the TIM-1 ( PC3162M ) version diagrams dated 17-05-2001 A) FIRST check that there is NO SHORT between any of the six supply rails ( +5V, +3V3, -5V2, +12V, -12V, GND ) This is easily done by DVM using the FUSES FS1 = +3V3 (5A) (Diag.01) FS2 = +12V (5A) FS3 = -12V (5A) FS4 = +5V (10A) FS5 = -5V2 (10A) B) Check visually that all the PLDs and other SMD ICs are soldered well enough to your satisfaction - especially noting any bent or loose pins on PLDs C) Hardwire program the low 8 bits of the SERIAL NUMBER Register : This is by using the 8x pre-wired links next to U82 ( Diag.08/U82 ) SB11 A/B = SERN(0) = LSB to SB18 A/B = SERN(7) = MSB All these links, as received from manufacture, have shorting tracks between pads A and B, thus setting all bits SERN<0-7> = GND = 0 Any bit which requires to be set HIGH = 1 must have this track cut. This permits for any serial number #001 to #255 to be hard-wired. NOTE : Following modules already exist : TIM-0 #001, #002 ====== TIM-1 #103, #104 /cont: - 2 - D) Follow the set-up procedure described below : NOTE 1: Default setup is indicated by '#' ======= SOME LINKS MAY HAVE TO BE SET DIFFERENTLY FOR THESE TESTS AT UCL THIS IS INDICATED BY '***' NOTE 2: IC numbers ( Uxx ) refer to the nearest IC receiving the ======= signal selected by the link/switch etc. NOTE 3: Diagram numbers refer to the circuit schematics page with ======= the relevant link/switch etc. 1) Set VME Base Address switches : ------------------------------- ( Diag.07 ) SW3 : sets A16 - A19 # default : SW3 = 0 SW4 : sets A20 - A23 SW4 = F SW5 : sets A24 - A27 SW5 = D SW6 : sets A28 - A31 SW6 = 0 ( this default sets the A24-A28 = 13 ie. the ROD Crate TIM Slot Geographical Address GA(4-0)* = 10010 ) 2) Set various Delay Switches : ---------------------------- NOTE 4: Note that the LEAST SIGNIFICANT DELAY BIT "A0" is the top slide ======= ie. nearest the TOP edge of the TIM-1 PCB, with the bit "A5" ( MSB ) being the bottom slide. The "ON" position ( ie. signal An = 0 ) is with the relevant slide towards the FRONT PANEL of the TIM-1 PCB ( as marked WHITE ). The "OFF" position ( ie. signal An = 1 ) is with the relevant slide towards the BACKPLANE CONNECTORs of the TIM-1 PCB. Any other lever markings or numbers on actual switch bodies are irrelevant ( eg. switches are marked 6-1 instead of 0-5 ). ( Diag.08/U55 ) SW9: ROD Setup delay DL2 # all ON (ie.=0) ( Diag.08/U56 ) SW7: BCCLK1 Setup delay DL3 # all ON ( 0 ) ( Diag.08/U57 ) SW8: TIM Setup delay DL4 # all ON ( 0 ) ( Diag.09/U66 ) SW10: Trig. Window Delay Setup(*): # 011000 (18hex) ( Diag.09/U67 ) SW11: Trig. Window Size Comp.(*) : # 000010 ( 2 ) (*) NOTE that the "Trigger Window" has been calibrated with respect to the clock "PCLKB" on Test Point PL126. With the above default setting of ROD SETUP delay, this "PCLKB" clock is about 22 nsec earlier then the "NIMCLKOUT" clock output on the front panel socket SK11. ( See below for calibrating to different clocks ) /cont: - 3 - 3) 2-pin Links : ------------- ( Diag.07/U79 ) PL37 in # bypasses VME interrupt IACK daisy-chain out enables VME interrupt IACK daisy-chain ( Diag.07/U32 ) PL42 out # spare VME address link ( Diag.07/U32 ) PL84 in *** selects switch-set VME Base Address ( see par. 1 ) out # VME Base address set to VME GA(4-0)* = 10010 ( Diag.01/J2 ) PL190 in connects -5V2 bus to Jaux/9A,B,C out # isolates -5V2 bus from Jaux/9A,B,C PL191 out # -ditto- Jaux/10A,B,C PL192 out # -ditto- J2/4C PL193 out # -ditto- J2/7A PL194 out # -ditto- J2/13A PL195 out # -ditto- J2/19A PL196 out # -ditto- J2/19C ( Diag.14/U78 ) PL175 in disables -5V2 DC converter out # enables -5V2 DC converter ( Diag.14/U78 ) PL181 in # connects outputs from -5V2 DC converter onto -5V2 bus out isolates outputs from -5V2 bus PL67 in # - ditto - PL68 in # - ditto - NOTE 5: Three links PL181, 182, 183 to be used together ======= ( Diag.14/U75 ) PL173 in enables TIM_BUSY_OUT onto backplane out # disables TIM_BUSY_OUT ( Diag.14/U75 ) PL174 in overrides P3 b/plane drivers disable by ROD_SENSE out # P3 b/plane drivers only enabled by correct ROD_SENSE ( Diag.02/U39 ) PL121 in # sets STAND-ALONE INTERNAL FER = ECR out sets FER independent from ECR ( Diag.13/U95 ) PL180 in # allows TTCB(n) outputs to be enabled by correct NTIMOUTEN out *** disables TTCB(n) outputs ( Diag.13/U98 ) SB19 in connects input clock onto the test point PL197/A out # isolates input clock from the test point PL197/A ( Diag.07/U12 ) SB1-SB10 VME Clocking Delay Line DL0 setup ==== THESE LINKS ARE ALREADY PROGRAMMED ON PCB ==== =================================================== /cont: - 4 - 4) 3-pin Links : ------------- ( Diag.15/U16 ) LK3 pins 1+2 # NIMTRIGINOUT = true 2+3 NIMTRIGINOUT = inverted LK4 pins 1+2 # NIMBUSYOUT = true 2+3 NIMBUSYOUT = inverted LK5 pins 1+2 # NIMTRIGOUT = true 2+3 NIMTRIGOUT = inverted LK6 pins 1+2 # NIMCLKOUT = true 2+3 NIMCLKOUT = inverted ( Diag.15/U24 ) LK7 pins 1+2 # RODBUSYOUT = true 2+3 RODBUSYOUT = inverted ( Diag.15/SK15) LK1 pins 2+3 # RODBUSYOUT = NIM standard 1+2 RODBUSYOUT = TTL standard ( Diag.16/U20 ) PL20 pins 2+3 # ECLBUSYOUT = BUSYOUTB 1+2 ECLBUSYOUT = MEXTBUSYOUT ( Diag.14/U75 ) PL172 pins 2+3***TIMOUTEN, which enables TIM backplane outputs, is always enabled 1+2 # NTIMOUTEN is enabled only in the correct TIM slot ( by VME GA(4-0)* = 10010 ) 5) 4-pin Links : ------------- ( Diag.15/U3 ) LK2 pins 2+3 NIMEXTBUSYIN -> EXTRODBUSYIN 1+2 # NIMEXTBUSYIN -> NIMEXTBUSY & 3+4 # plus EXTRODBUSYIN = 0 /cont: - 5 - 6) NOTE 6: The following links are DIAGNOSTIC TEST POINTS ONLY, ======= with EVERY PIN "B" CONNECTED TO GND ==== DO NOT PUT ANY LINKS BETWEEN PINS "A" and "B" ! ==== ========================================================== ( Diag.04/U54 ) PL141 - PL170 PLDs spare bus test points ( Diag.13/U98 ) PL188, PL189, PL197 Input Clock test points ( Diag.16/U19+U20 ) PL10-15 & PL47-50 TTC(x) output test points 7) NOTE 7: The following TEST POINTS can be used for setting-up ======= correct timing relationships ( Diag.05/U59 ) PL132 SEQUBUSY ( SEQUENCER ) PL133 XSEQCLK1 PL134 XSEQTRIG ( Diag.12/U65 ) PL127 FIFO_L1ID_LOW(0) ( FIFO ) PL128 IDENB PL129 IDCLKB ( DIAG.13/U61 ) PL126 PCLKB ( BACKPLANE ) PL185 TTCCLKB PL186 NTTCOUT(7) /cont: - 6 - E) Plug the TIM module into any slot of the 9U-VME test crate in D.29 using the 9U extension board provided F) Turn on the 9U-VME crate power and observe the green power-indicator LEDs on the front panel of the TIM module : -> The +5V,-5V,+12V,-12V green LEDs should be 'ON' ( Diag.01/DS1 -> The +3V green LED should be 'OFF' Diag.01/DS2 Diag.17/DS3 ) G) Check that the -5V2 supply is between -5V1/-5V2 w.r.t. GND at any of the TEST POINTs PL181/182/183. ( Diag.15/U78 ) -> If different, adjust the trim potentiometer R110 as required to achieve this value ( Diag.15/R110 ) H) Check the current consumption of the TIM module by stepping through the 9U-VME crate front panel display volt/current sequence using the "MODE SELECT" switch next to the display : -> No current should indicate over 15 A I) Program all the PLDs J) Start by checking the PLD-1 / VME access : -> run U:\jbl\tubbies\po -> observe "VA" ( VME DTACK ) and "VE" ( VME ERROR ) LEDs on the front panel of the TIM. These should flash briefly as specified by the program ( Diag.17/DS4 ) -> STAND-ALONE MODE red LED indicator "SA" should be permanently lit ( Diag.17/DS5 ) -> STAND-ALONE CLOCK yellow LED indicator "SC" should be permanently lit ( Diag.17/DS6 ) K) Check the quality of the output clock using OSCILLOSCOPE at the TEST POINT PL126 ( Diag.13/U61 ) -> Compare this with the sample printout to check mark-to-space and general shape. -> Check average jitter to be =< 200 psec on the clock 2nd raising edge ( first after the trigger point ) /cont: - 7 - L) If this is satisfactory, "STAND-ALONE" operations should be checked next : 1) press "RESET" switch on the front panel and observe the red LED indicator "OR" ( OVERALL RESET ) flash once ( Diag.11/SW2 ) ( Diag.17/DS3 ) NOTE 8 : press "RESET" between each INDIVIDUALLY-NUMBERRED step : ======================================================================= 2) press "TEST TRIGGER" switch and observe the green LED indicator "LA" ( LEVEL-1-ACCEPT ) flash once ( Diag.11/SW1 ) ( Diag.17/DS8 ) 3) Using U:\jbl\tubbies\po : a) Register 0 : ENINTTRIG ( address 00, write 3 ) -> check "LA" LED is lit -> check output on TEST POINT PL47, using OSCILLOSCOPE, to be 25nsec long pulse at fixed frequency ~600kHz ( Diag.16/U19 ) b) Register 3 : INTTRIGFREQ ( address 06, write 4 ) -> check output frequency reduced to ~300kHz c) Register 0 : ENEXTTRIG ( address 00, write 201 ) plus connect LEMO cable between NIMTRIGIN and NIMCLKOUT -> check check output on TEST POINT PL47, using OSCILLOSCOPE, to be 25nsec long pulse with a minimum gap between subsequent triggers to be >= 3 clock periods ( Diag.16/U19 ) d) Register 0 : ENINTTRIG plus ENRANDOM ( address 00, write 13 ) -> check output on TEST POINT PL47, using OSCILLOSCOPE, to be 25nsec long pulse at varying frequency =<150kHz ( Diag.16/U19 ) e) Register 3 : INTTRIGFREQ ( address 06, write 4 ) -> check output random frequency reduced to =< 75kHz /cont: - 8 - f) check sequentially all internally-generated signals, using Register 0 and TEST POINTS as follows : ENTINTECR (5) TEST POINT PL48 ( Diag.16/U19 ) ENTINTBCR (9) PL14 ( Diag.16/U19 ) ENINTFER (21) PL49 ( Diag.16/U20 ) g) Use Register 3 to vary INTECR/BCR frequency h) Check INTBCR frequency to be ~11.24 kHz i) enable ENINTBUSY in Register 0 (81) and check at TEST POINT PL10 while running the above internally-generated signals ( Diag.16/U20 ) 4) Check externally-input signals, using NIM input connectors on the front panel, sequentially linked to NIMCLKOUT : j) use Register 0 and TEST POINTS as follows : ENEXTRTIG(201) TEST POINT PL47 ( Diag.16/U19 ) ENEXTECR (401) PL48 ( Diag.16/U20 ) ENEXTBCR (801) PL14 ( Diag.16/U19 ) ENEXTFER (2001) PL49 ( Diag.16/U20 ) ENEXTSPARE (4001) PL50 ( Diag.16/U20 ) k) ENEXTCAL (1001) PL15 ( Diag.16/U19 ) and PL47 for the automatically generated "CALTRIG" l) use ENEXTCAL to check the operation of the "Trigger Pipeline Delay" : - use Register 5 to vary the delay between "CAL" pulse on TEST POINT PL15 and the "CALTRIG" pulse on TEST POINT PL47 -> this should increment in steps of 1 clock period M) Check the operation of "EXTCLK" : 1) connect NIMEXTCLK input connector to the NIMCLKOUT output of a CLOAC module in same crate 2) use U:\jbl\tubbies\dipsy to initialise the CLOAC module 3) use U:\jbl\tubbies\po to operate the TIM module : a) Register 0 : ENEXTCLK ( address 00, write 100 ) -> Check the quality of the output clock using OSCILLOSCOPE at the TEST POINT PL126 ( Diag.13/U61 ) b) unplug the NIM cable and check that TIM switches to INTCLK automatically /cont: - 9 - N) Test BURST MODE : ***** O) Test TRIG. WINDOW : 1) a) Register 0 : ENEXTTRIG plus ENWINDOW ( address 00,write 241 ) plus connect LEMO cable between NIMTRIGIN and NIMCLKOUT -> check output on TEST POINT PL47, using OSCILLOSCOPE ( Diag.16/U19 ) b) Check calibration of switch settings : ( Diag.09/U66 ) SW10: Trig. Window Delay Setup(*): # 011000 (18hex) ( Diag.09/U67 ) SW11: Trig. Window Size Comp.(*) : # 000010 ( 2 ) (*) NOTE that the "Trigger Window" has been calibrated with respect to the clock "PCLKB" on Test Point PL126. With the above default setting of ROD SETUP delay, this "PCLKB" clock is about 22nsec earlier then the "NIMCLKOUT" clock output on the front panel socket SK11. c) Register 4 : WINSIZE ( Diag.09 ) -> check TRIG.WINDOW pulse at pin 5 of U68 ( Diag.09/U68 ) d) Register 4 : WINDELAY -> check TRIG.WINDOW pulse at pin 5 of U68 ( Diag.09/U68 ) "TRIGGER WINDOW" CALIBRATION PROCEDURE : ---------------------------------------- The "Trigger Window" allows you to select only those external triggers with selected timing relationship with respect to selected clock. This is useful for random triggers ( eg. from cosmics ). Please note that this feature operates on EXTERNAL TRIGGERs only. - To calibrate this feature for any particular clock, pre-select the Trigger Window and the NIM/ECL external trigger ( Register 0 Bits 6 and 9 'on' ). Decide to which clock and at which point of the clock chain you want to calibrate this feature - this could be outside the TIM module. Hook-up one scope probe to this point. - To observe the Trigger Window pulse, hook-up the second scope probe to U68 pin 5 on the TIM module ( see diag. 09 ). - Set WINDOW SIZE = 2 ( Register 4 Bit 1 'on' ). Set SW11 ( Trigger Window Size Compensation ) so there is only a sharp short +ve spike on U68 pin 5. This spike must disappear when Reg.4 = 0. - Set WINDOW SIZE = 10 ( Reg.4 Bit 4 'on' ) and set SW10 ( Trigger Window Delay Setup ) so that the +ve edge of the window pulse output is coincident with the +ve edge of the selected clock. The WINDOW SIZE is valid between 0 and ~2f in steps of 0.5 nsec. This window can then be scanned over the whole of the 25 nsec clock period by the WINDOW DELAY setting. /cont: - 10 - -------------------------------------------------------------------------- From now on, this list is even more ***sketchy*** : most of the further testing could/should be done by stand-alone test software. I hope John can take it away from here... : --------------------------------------------------------------------------- P) Test VME-GENERATED COMMANDS R) Test TEST BUSY S) Test BURST MODE 1) INT/EXT. TRIGGER 2) INT. CAL ( ie. re-circulating automatically ) 3) EXT. CAL ( ie. requires input CAL repetitively ) T) Check STATUS REGISTER U) Check RUN MODE This version : MP-UCL, 26 May 2005 Previous versions : 26 May 2006 24 Jun. 2002 11 Jun. 2002 10 Jun. 2002 08 Dec. 2001