Wiki source code of Trigger Howto

Version 9.1 by sndueste on 2019/09/17 14:22

Hide last authors
sendels 1.1 1
2
sndueste 6.1 3 {{toc/}}
sendels 1.1 4
sndueste 6.1 5 = Introduction =
sendels 1.1 6
sndueste 6.1 7 The MTCA based triggers have a jitter in the few ps range, the delay can be shifted in 1 ns steps (over many ms), one can choose between 10 Hz triggers, frequencies locked to the pulses (e.g. 1MHz) and the actual bunch patterns. A detailed description can be found in [[x2Timer manual>>attach:x2Timer.pdf]].
sendels 1.1 8
sndueste 6.1 9 in short: the triggers are for low impedance (~~50 OHM terminated ?? ), 5V triggers with an adjustable width. The main control panel for the x2 timer has the control options for the 3 front modules (connected with a RJ45 cable - connecting to a "trigger box" with 2 trigger exits (Lemo) each) and 8 Lemo exits at the back of the crate. in the BL-beamline case these triggers are connected to the BNC (patch panel) ports at the rack.
sendels 1.1 10
sndueste 6.1 11 The main control can be done with a simplified user panel which can handle the timing in respect to the FEL pulses and not in respect to some (arbitrary) reference time ( Event)[[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/Trigger_scheme.gif~|~|alt="Trigger_scheme.gif" width="800"~]~]>>attach:Trigger_scheme.gif]]
sendels 1.1 12
13
14 \\
15
sndueste 6.1 16 = different trigger events (starting points) =
sendels 1.1 17
sndueste 6.1 18 one can configure each channel for an individual trigger event
sendels 1.1 19
20 **FLASH1**
21
sendels 2.1 22 (% class="wrapped" %)
sendels 1.1 23 |(((
24 trigger No
25 )))|(((
26 function
27 )))
28 |(((
29 16
30 )))|(((
31 the MCA trigger 3.11 ms before the Flash1 pulses (same as A6 but more stable)
32 )))
33 |(((
34 166
35 )))|(((
36 A6 event. still possible to use but less precise than 16
37 )))
38 |(((
39 162
40 )))|(((
41 A2 event as earliest ( 24 ms before the FEL)
42 )))
43 |(((
44 224
45 )))|(((
46 E0 event of the BL fast shutter ( 19 ms before the FEL)
47 )))
48 |(((
49 225
50 )))|(((
51 E1 event of the PG fast shutter ( 19 ms before the FEL)
52 )))
53 |(((
54 21
55 )))|(((
56 Trig16 + first bunch of FLASH1 - this trigger is shifted when FL1 starts later than "700"
57 )))
58
59 \\
60
61 \\
62
63 **FLASH2**
64
sendels 2.1 65 (% class="wrapped" %)
sendels 1.1 66 |(((
67 trigger No
68 )))|(((
69 function
70 )))
71 |(((
72 22
73 )))|(((
74 Trig116 + first bunch of FLASH2 - this trigger is shifted when FL2 starts at a different start time
75 )))
76 |(((
77 181
78 )))|(((
sndueste 6.1 79 shifts with the start time of FLASH2 as event 22 but comes 22 ms ! before the FEL
sendels 1.1 80 )))
81
sndueste 5.1 82 from this trigger as starting point one can shift the timing in 9 ns steps first and finally in 0.9 ns steps for fine adjustment.
sendels 1.1 83
sndueste 6.1 84 \\
sendels 1.1 85
sndueste 6.1 86 = Expert panels =
sendels 1.1 87
88 \\
89
sndueste 6.1 90 [[image:attach:image2019-9-17_13-10-56.png||height="250"]] [[image:attach:image2019-9-17_13-8-46.png||height="400"]]
91
sndueste 7.1 92 With the **"Expert overview"** one gets the overview over all channels available on the timing card and can configure the card. This is useful to look what channels are using clock settings or burst mode settings that one wants to change ... and using the other tabs one can set parameters for clocks and bursts (see below)
sndueste 6.1 93
94 \\
95
sndueste 7.1 96 For each trigger channel there is in addition an **"Expert panel"** to set the properties of THIS channel
sndueste 6.1 97
98 [[image:attach:image2019-9-17_13-14-52.png||height="250"]] [[image:attach:image2019-9-17_13-15-38.png||width="550"]]
99
100 \\
101
102 \\
103
104 \\
105
106 = Set a constant frequency to a channel
107 [[image:attach:image2019-9-17_13-18-9.png||height="250"]][[image:attach:image2019-9-17_13-18-37.png||height="149"]] =
108
109 \\
110
111 \\
112
sndueste 7.1 113 The timer card provides the option to generate  frequencies that are synched to the FEL reprate on the ps level. One can set 3 Clocks by deviding the reference frequency of 54.2 MHz by n.** Please check (using the Expert overview ) before changing a frequency of it is used for some other channel !!**
sndueste 6.1 114
115 Since our main FEL frequency is 100.31 MHz the dividers are not straight forward:
116
sndueste 7.1 117 (% class="wrapped" %)
sndueste 6.1 118 |=(((
119 Clock frequency
120 )))|=(((
sndueste 7.1 121 Divider to be set
sndueste 6.1 122 )))
123 |(((
124 "1 MHz" (1000.31 kHz)
125 )))|(((
126 53
127 )))
128 |(((
sndueste 7.1 129 "500 kHz" (501.5 kHz)
sndueste 6.1 130 )))|(((
sndueste 7.1 131 107
sndueste 6.1 132 )))
133 |(((
sndueste 7.1 134 "250 kHz" (250.8 kHz)
sndueste 6.1 135 )))|(((
sndueste 7.1 136 215
sndueste 6.1 137 )))
sndueste 7.1 138 |(% colspan="1" %)(((
139 "200 kHz" (200.6 kHz)
140 )))|(% colspan="1" %)(((
141 269
142 )))
143 |(% colspan="1" %)(((
144 "100 kHz" (100.3 kHz)
145 )))|(% colspan="1" %)(((
146 539
147 )))
sndueste 6.1 148
sndueste 7.1 149 Once a clock is configured with the right frequency one can choose in the "expert panel" of the according channel the "FPGA clock" in the "input source select"  chooser.
150
sndueste 8.1 151 One has to set the
152
sndueste 9.1 153 [[image:attach:image2019-9-17_14-22-29.png||width="450"]]
sndueste 6.1 154
155 \\
156
sndueste 8.1 157 This results in a continuous train of pulses with the set trigger width
158
159 \\
160
161 \\
162
sendels 1.1 163 * in order to generate a stable frequency one has to set the input source to FPGA clock (and use dividers to get the desired frequency)
sndueste 4.1 164 * to generate the burst patterns of the FEL one has to choose a trigger event (best 116 for FLASH 2 and 16 for FLASH1) and activate Destination 1 for FLASH1 and Destination 2 for FLASH2 . finally one has to assign the activated Bunch pattern mask to the trigger channel of choice . now the pattern can be shifted and the trigger width can be changed as with the 10 Hz triggers. **IMPORTANT: to move the bunchtrain to the desired starting point the DELAY in the expert panel (see below) has to be used. The Trigger in the user panel (see above) has to be set to 0 !!!**
sendels 3.1 165 [[~[~[image:url:http://hasfweb.desy.de/pub/Setup/TriggerHowto/mtcatrigger2k.png~|~|alt="mtcatrigger2k.png" width="607" height="458"~]~]>>attach:mtcatrigger2k.png]]
sendels 1.1 166
sndueste 4.1 167 here an example defining the bunch pattern for FLASH1 to mask 1
sendels 1.1 168
169 \\
170
sendels 3.1 171 [[here is a link to the old VME trigger system>>doc:FLASH.VMETrigger]]
sndueste 8.1 172
173 \\
174
175 \\