Skip to content

Hardware Link (caen.channel)

caen.channel

Channel-level register map and DPP-PHA shaping/trigger presets for CAEN DT5780.

CHANNEL

Container for channel-level DPP-PHA register definitions and default settings.

Register addresses in cfg are defined for Channel 0 (0x10xx); for Channel n, the effective address is (n << 8) | addr. Unlike board-level registers, channel parameters are stored in non-volatile memory on the digitizer.

Attributes:

Name Type Description
cfg dict[str, dict]

Mapping of channel parameter names to register addresses, bitfields, units, and GUI metadata.

clock int

ADC sampling clock period in nanoseconds (10 ns).

Source code in caen/channel.py
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
class CHANNEL:
    """Container for channel-level DPP-PHA register definitions and default settings.

    Register addresses in ``cfg`` are defined for Channel 0 (``0x10xx``); for
    Channel ``n``, the effective address is ``(n << 8) | addr``. Unlike board-level
    registers, channel parameters are stored in non-volatile memory on the digitizer.

    Attributes:
        cfg (dict[str, dict]): Mapping of channel parameter names to register
            addresses, bitfields, units, and GUI metadata.
        clock (int): ADC sampling clock period in nanoseconds (``10`` ns).
    """
    cfg, clock = {}, 10  # ADC clock in ns

#    cfg["Data Flush"] = {"addr": 0x103C, "mode": "w", "init": 1}

    # =====================================================================================
    section = "Input Signal"
    cfg["Input Range"] = {
        "addr": 0x10B4,
        "mode": "w",  # write-only, simple
        "init": "3.7 Vpp",
        "pick": {
            "0.6 Vpp": [0x5, "ADC Dynamic Range 0.6 Volts."],
            "1.4 Vpp": [0x6, "ADC Dynamic Range 1.4 Volts."],
            "3.7 Vpp": [0x9, "ADC Dynamic Range 3.7 Volts."],
            "9.5 Vpp": [0xA, "ADC Dynamic Range 9.5 Volts."],
        },
        "menu": section,
   }

    cfg["Input Polarity"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (16, 1),  # first bit, nbits
        "init": "Positive",
        "pick": {
            "Positive": [0x0, "Algorithm is designed to work with positive signals.",],
            "Negative": [0x1, "In case of negative polarity the signal is inverted.",],
        },
       "menu": section,
    }

    cfg["Input Rise Time"] = {  # b
        "addr": 0x1058,
        "mode": "rw",
        "mask": 0xFFF,
        "min_": 0,
        "init": 500,  # ns
        "unit": [clock, "ns"],
        "ttip": "Defines the time constant of the derivative component of the PHA fast discriminator filter. In case of RC‐CR2 this value must be equal (or 50% more) to the input rising edge, in such a way the RC‐CR2 peak value corresponds to the height of the input signal.",
        "menu": section,
    }

    cfg["Input Decay Time"] = {  # M
        "addr": 0x1068,
        "mode": "rw",
        "mask": 0xFFFF,
        "min_": 0,
        "init": 10000,  # ns
        "unit": [clock, "ns"],
        "ttip": "This register corresponds to the trapezoid pole‐zero cancellation. The user must set this register equal to the decay time of the pre‐amplifier.",
        "menu": section,
    }

    cfg["RC-CR2 Smoothing"] = {  # a
        "addr": 0x1054,
        "mode": "rw",
        "init": "16 samples",
        "pick": {
            "1 sample": [
                0x1,
                "N samples of a moving average filter used for the RC‐CR2 signal formation",
            ],
            "2 samples": [
                0x2,
                "N samples of a moving average filter used for the RC‐CR2 signal formation",
            ],
            "4 samples": [
                0x4,
                "N samples of a moving average filter used for the RC‐CR2 signal formation",
            ],
            "8 samples": [
                0x8,
                "N samples of a moving average filter used for the RC‐CR2 signal formation",
            ],
            "16 samples": [
                0x10,
                "N samples of a moving average filter used for the RC‐CR2 signal formation",
            ],
            "32 samples": [
                0x20,
                "N samples of a moving average filter used for the RC‐CR2 signal formation",
            ],
        },
        "menu": section,
    }

    cfg["Spike Rejection"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (15, 1),
        "init": "Enable",
        "pick": {
            "Disable": [
                0x0,
                "In case of noisy signals ”Enable” is useful to avoid triggering on short spikes.",
            ],
            "Enable": [
                0x1,
                "Triggers are inhibited until the ”Input Rise Time” duration is reached.",
            ],
        },
        "menu": section,
    }

    cfg["Zero Compensation"] = {
        "addr": 0x10D0,
        "mode": "rw",
        "mask": 0xFFFF,  # 100%
        "min_": 0,
        "init": 0x0,  # LSB
        "unit": [100./0xFFFF, "%"],
        "ttip": "This register allows to Pole Zero compensate the Trigger and Timing filter summing a fraction of the input signal. The RC‐CR2 fast discriminator acts taking the input signal, delaying it by a fixed quantity, and subtract this delayed signal from the input one (first derivative). This operation is done twice. This register acts after the first subtraction operation. It means that it is possible to sum a fraction of the input signal after the first subtraction operation. This allows to minimize the overshoot after the first derivative operation due to the subtraction involving exponential signals.",
        "menu": section,
    }

    cfg["Identification"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (17, 1),
        "init": "RC-CR2",
        "pick": {
            "RC-CR2": [
                0x0,
                "Events are usually identified on the zero crossing of the RC‐CR2 signal.",
            ],
            "RC-CR": [
                0x1,
                "For fast input signals it is possible to trigger on the zero crossing of the RC‐CR signal.",
            ],
        },
        "menu": section,
    }


    # =====================================================================================
    section = "Digital Filter"

    cfg["Fine Gain"] = {
        "fine": True, # special parameter which exists only in program memory
        "init": 1.0,
        "ttip": "The trapezoidal filter produces a signal whose amplitude is proportional to the input signal, Fine Gain is the (float) multiplicative factor.",
        "menu": section,
    }

    cfg["Absolute Gain"] = {
        "ctoe": True, # special parameter which exists only in program memory
        "init": 1.0,
        "ttip": "Absolute gain is the float number G so that absolute energy E = G * C, where C is amplitude in ADC LSB units.",
        "menu": section,
    }


    cfg["Digital Gain"] = {
        "addr": 0x10C4,
        "mode": "rw",
        "mask": 0xFFFF,  # 100%
        "min_": 0,
        "init": 0x7FFF,  # LSB
#        "unit": [1, "a.u."],
        "ttip": "The trapezoidal filter mathematically produces a signal whose amplitude is proportional to the input signal, with multiplicative factors depending on k = (Trapezoid Rise Time) and M = (Decay Time). In the DPP‐PHA algorithm, the user must set two parameters: the Trapezoid Rescaling (SHF) (bits[5:0] of register 0x1n80) and the Fine Gain (f). Given a desired Fine Gain (fg), the user must write in the register: f = 64K*fg*2^SHF /(k*M), where SHF is the closest power of 2 to k*M (refer to bits[5:0] of register 0x1n80), and 64K is the normalization over 16 bits.",
        "menu":  "hidden",
    }

    cfg["DC Offset"] = {
        "addr": 0x1098,
        "mode": "rw",
        "mask": 0xFFFF,
        "min_": 0,
        "init": 50,  #
        "unit": [100./0xFFFF, "%"],
        "ttip": "This register allows to adjust the baseline position (i.e. the 0 Volt) of the input signal on the ADC scale. Before writing this register, it is necessary to check that the channel is not in busy status!",
        "menu": section,
    }

    cfg["Trapezoid Rise Time"] = {  # k
        "addr": 0x105C,
        "mode": "rw",
        "mask": 0xFFF,
        "min_": 10,
        "init": 2000,  # ns
        "unit": [clock, "ns"],
        "ttip": "Note: the sum of the Trapezoid Rise Time and Trapezoid Flat Top should not exceed 40 us.",
        "menu": section,
    }

    cfg["Trapezoid Flat Top"] = {  # m
        "addr": 0x1060,
        "mode": "rw",
        "mask": 0xFFF,
        "min_": 10,
        "init": 500,  # ns
        "unit": [clock, "ns"],
        "ttip": "Note: the sum of the Trapezoid Rise Time and Trapezoid Flat Top should not exceed 40 us.",
        "menu": section,
    }

    cfg["Trapezoid Rescaling"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (0, 6),  # first bit, nbits
        "init": 0x0,
        "ttip": "the trapezoid generated by the energy filter in the FPGA is k*M times higher than the input pulse, where k is the trapezoid rise time and M is the input signal decay time. This value is internally represented over 48 bits and must be rescaled to 15 bit (i.e. 32K channels) before it is used to calculate the energy value (=pulse height). The trapezoid rescaling SHF defines how many bits are right shifted (i.e. division by 2SHF ) before applying the mask with 0x3FFF and extract the 15 bit value of the pulse height. Use a value for SHF such that 2^SHF <= M*k < 2^(SHF+1). The parameter SHF in conjunction with the fine gain (see register 0x1nC4) acts as a digital gain for the energy scale.",
        "menu":  "hidden",
    }

    cfg["Peak Mean"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (12, 2),  # first bit, nbits
        "init": "4 samples",
        "pick": {
            "1 sample": [
                0x0,
                "Number of samples for the averaging window of the trapezoid height calculation.",
            ],
            "4 samples": [
                0x1,
                "For a correct energy calculation the Peak Mean should be contained in the flat region of the Trapezoid.",
            ],
            "16 samples": [
                0x2,
                "Number of samples for the averaging window of the trapezoid height calculation.",
            ],
            "64 samples": [
                0x3,
                "For a correct energy calculation the Peak Mean should be contained in the flat region of the Trapezoid.",
            ],
        },
        "menu": section,
    }

    cfg["Peaking Time"] = {  # ftd
        "addr": 0x1064,
        "mode": "rw",
        "mask": 0xFFF,
        "min_": 0,
        "init": 300,  # ns
        "unit": [clock, "ns"],
        "ttip": "Position in the flat top region where the samples are used for the calculation of the peak height. The peaking time is referred to the trigger position or to the trigger validation signal according to the trigger mode.",
        "menu": section,
    }

    cfg["Peak Hold-Off"] = {  # pkho
        "addr": 0x1078,
        "mode": "rw",
        "mask": 0x3FF,
        "min_": 0,
        "init": 640,  # ns
        "unit": [8 * clock, "ns"],
        "ttip": "The Peak Hold‐off starts at the end of the trapezoid flat top and defines how close must be two trapezoids to be considered piled‐up. Zero is the case where the flat top of one trapezoid starts exactly at the end of the flat top of the previous one.",
        "menu": section,
    }

    cfg["Baseline Offset"] = {
        "addr": 0x10B8,
        "mode": "rw",
        "mask": 0x7FFF,  # 100%
        "min_": 0,
        "init": 0,  # LSB
        "unit": [100./0x7FFF, "%"],
        "ttip": "This register adds a fixed value to the baseline of the trapezoid.",
        "menu": section,
    }

    cfg["Baseline Averaging"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (20, 3),
        "init": "16 samples",
        "pick": {
            "None": [
                0x0,
                "The baseline is not evaluated, the energy values are not subtracted by the baseline.",
            ],
            "16 samples": [
                0x1,
                "Number of samples for the baseline average calculation.",
            ],
            "64 samples": [
                0x2,
                "Number of samples for the baseline average calculation.",
            ],
            "256 samples": [
                0x3,
                "Number of samples for the baseline average calculation.",
            ],
            "1024 samples": [
                0x4,
                "Number of samples for the baseline average calculation.",
            ],
            "4096 samples": [
                0x5,
                "Number of samples for the baseline average calculation.",
            ],
            "16384 samples": [
                0x6,
                "Number of samples for the baseline average calculation.",
            ],
            "32768 samples": [
                0x7,
                "Number of samples for the baseline average calculation.",
            ],
        },
        "menu": section,
    }

    cfg["Baseline Hold-Off"] = {  # blho
        "addr": 0x107C,
        "mode": "rw",
        "mask": 0x3FF,  # ns
        "min_": 0,
        "init": 100,  # ns
        "unit": [clock, "ns"],
        "ttip": "The Baseline Hold‐off defines how long the baseline is kept frozen beyond the end of the trapezoid; after that time, the baseline starts to be calculated again. Depending on the baseline mean value, the baseline itself might take some time to recover after the hold‐off.",
        "menu": section,
    }

    cfg["Baseline Restore"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (29, 1),
        "init": "Disable",
        "pick": {
            "Disable": [
                0x0,
                "Disables the baseline calculation for events with poor defined profile.",
            ],
            "Enable": [
                0x1,
                "Enables Baseline Restore Calculation (BRC) for events with poor defined profile and so not triggered by the fast timing filter.",
            ],
        },
        "menu": section,
    }

    cfg["TAC Mode"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (30, 1),
        "init": "Disable",
        "pick": {
            "Disable": [
                0x0,
                "The trapezoid is obtained from the input according to the DPP settings.",
            ],
            "Enable": [
                0x1,
                "The trapezoid is replaced by the input delayed signal and it is possible to acquire external signals having a flat top.",
            ],
        },
        "menu": section,
    }


    # =====================================================================================
    cfg["Events per Aggregate"] = {
        "addr": 0x1034,
        "mode": "rw",
        "init": 1,
#        "mask": 0x3FF,
#        "unit": [1, "events"],
#        "ttip": "The maximum number of events per aggregate depends on the aggregate size and the event size. It is usually recommended to keep this value high to optimize the readout, except in case of small input rate, where it is recommended to use a smaller value.",
        "menu":  "hidden",
    }


    # =====================================================================================
    section = "Trigger"
    cfg["Trigger Threshold"] = {  # thr
        "addr": 0x106C,
        "mode": "rw",
        "mask": 0x3FFF,
        "min_": 0,
        "init": 100,  # LSB
        "unit": [1, "LSB"],
        "ttip": "Threshold of the Trigger and Timing filter of the DPP‐PHA algorithm.",
        "menu": section,
    }


    cfg["Threshold B"] = {
        "mask": 0xFFFF,
        "min_": 0,
        "init": 100,
        "unit": [1, "LSB"],
        "ttip": "Intermediate level software threshold is disabled if it is less or equal to Threshold A.",
        "menu": section,
   }

    cfg["Threshold C"] = {
        "mask": 0xFFFF,
        "min_": 0,
        "init": 100,
        "unit": [1, "LSB"],
        "ttip": "High level discriminator threshold is disabled if it is less or equal to Threshold B.",
        "menu": section,
   }

    cfg["Trigger Mode"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (18, 2),
        "init": "Normal",
        "pick": {
            "Normal": [
                0x0,
                "Each channel self‐triggers independently from the other channels.",
            ],
            "Neighbour": [
                0x1,
                "The channel self‐trigger is not used for the acquisition, it is propagated to mother board for processing or outside.",
            ],
            "Coincidence": [
                0x2,
                "Each channel can self‐trigger independently from the other channels and it saves the event only when a validation signal occurs within its coincidence window",
            ],
            "Anti-coincidence": [
                0x3,
                "Each channel can self‐trigger independently from the other channels and it saves the event only when no validation signal occurs within its coincidence window",
            ],
        },
        "menu": section,
    }

    cfg["Self-Trigger"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (24, 1),
        "init": "Enable",
        "pick": {
            "Enable": [
                0x0,
                "Self‐trigger is used for the acquisition and propagates to the motherboard.",
            ],
            "Disable": [
                0x1,
                "Self‐trigger is not used for the acquisition, nor for the propagation to the motherboard.",
            ],
        },
        "menu": section,
    }

    cfg["Trigger Delay"] = {
        "addr": 0x1044,
        "mode": "rw",
        "mask": 0x3FF,
        "min_": 10,
        "init": 50,
        "unit": [clock, "ns"],
        "ttip": "Set a programmable delay on the shaped trigger signal. NOTE: the trapezoid peaking is not affected by this register, so for high delay the energy value might have no sense. Indeed, this register is mainly useful to set a VETO between two detectors with different timing response, like a fast scintillator and a HPGe. In that case, the delay is applied to the scintillator trigger to match the HPGe, but the energy information from the scintillator is not relevant.",
        "menu": section,
    }

    cfg["Trigger Width"] = {
        "addr": 0x1084,
        "mode": "rw",
        "mask": 0x3FF,
        "min_": 0,
        "init": 50,
        "unit": [clock, "ns"],
        "ttip": "Fast Discriminator Output is a logic signal generated by a channel in correspondence with its local self-trigger. It is used to propagate the trigger to the other channels of the board and to other external boards, as well as to feed the coincidence trigger logic.",
        "menu": section,
    }


    cfg["Individual Software Trigger"] = {
        "addr": 0x10C0,
        "mode": "w",
        "init": 1,
        "mask": 0xFFFFFFFF,
        "ttip": "A write access to this register sends the Software Trigger to the individual channel n. This is not affected by the Trigger Validation, i.e. the Individual Software Trigger can be issued also when coincidences are enabled without being affected.",
        "menu":  "hidden",
    }

    cfg["Pre Trigger"] = {
        "addr": 0x1038,
        "mode": "rw",
        "mask": 0x7FF,  # ns
        "min_": 0,
        "init": 1000,
        "unit": [clock, "ns"],
        "ttip": "Defines the number of samples before the trigger in the waveform saved into memory.",
        "menu": section,
    }

    cfg["Trigger Hold-Off"] = {  # trgho
        "addr": 0x1074,
        "mode": "rw",
        "mask": 0xFFFF,
        "min_": 0,
        "init": 50,  # ns
        "unit": [clock, "ns"],
        "ttip": "The Trigger Hold‐Off is a logic signal of programmable width generated by the trigger logic in correspondence of the fast discriminator output. Other triggers are inhibited for the overall Trigger Hold‐Off duration.",
        "menu": section,
    }

    cfg["Energy Skim"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (28, 1),
        "init": "Disable",
        "pick": {
            "Disable": [0x0, "No selection of the waveforms."],
            "Enable": [
                0x1,
                "Allows the selection of the waveform within the LLD and ULD levels.",
            ],
        },
        "menu": section,
    }

    cfg["Energy skim LLD"] = {
        "addr": 0x10C8,
        "mode": "rw",
        "mask": 0x3FFF,  # 100%
        "min_": 0,
        "init": 0xA,  # LSB
        "unit": [1, "LSB"],
        "ttip": "The Energy Skim allows the user to select a region in the (not calibrated) energy spectrum and to inspect the waveforms that provides the energy values falling into the selected interval defined by a Lower Level Discriminator (LLD) and an Upper Level Discriminator (ULD).",
        "menu": section,
    }

    cfg["Energy skim ULD"] = {
        "addr": 0x10CC,
        "mode": "rw",
        "mask": 0x3FFF,  # 100%
        "min_": 0,
        "init": 0x3FFF,  # LSB
        "unit": [1, "LSB"],
        "ttip": "The Energy Skim allows the user to select a region in the (not calibrated) energy spectrum and to inspect the waveforms that provides the energy values falling into the selected interval defined by a Lower Level Discriminator (LLD) and an Upper Level Discriminator (ULD).",
        "menu": section,
    }

    cfg["VETO Source"] = {
        "addr": 0x10A0,
        "mode": "rw",
        "bits": (0, 6),
        "init": "None",
        "pick": {
            "None": [0x0, "No VETO."],
            "Global Trigger": [
                0x1,
                "Global Trigger generates the VETO. Note: coincidence mode must be enabled to identify the global trigger as VETO.",
            ],
            "Individual Trigger": [
                0x2,
                "Individual Trigger generates the VETO. Note: coincidence mode must be enabled to identify the global trigger as VETO.",
            ],
            "Over saturation": [0x4, "Over saturation generates the VETO."],
            "Under saturation": [0x8, "Under saturation generates the VETO."],
            "Channel Trigger": [
                0x10,
                "Channel Trigger generates the VETO i.e. any possible source of the channel trigger (Global Trigger, Individual Trigger, Software Trigger, Self Trigger) generates the VETO.",
            ],
            "Global busy": [
                0x20,
                "Global busy generates the VETO. This option is mainly suggested for neighbour trigger mode, when the trigger logic is the OR of the channels.",
            ],
        },
        "menu": section,
    }

    cfg["VETO Width"] = {
        "addr": 0x10D4,
        "mode": "rw",
        "init": 0x0,
        "mask": 0xFFFFFF,
        "min_": 0,
        "unit": [clock, "ns"],
        "ttip": "When a VETO is enabled, this register sets the VETO duration. Note: A Veto Width equal to 0 means that the VETO lasts for the duration of the signal that generated it. A Veto Width different from 0 sets the VETO duration by the amount of time written in the register.",
        "menu": section,
    }

    cfg["TRG‐OUT"] = {
        "addr": 0x10A0,
        "mode": "rw",
        "bits": (8, 2),
        "init": "Normal mode",
        "pick": {
            "Normal mode": [0x0, "Channel trigger is propageted to TRG-OUT."],
            "Analyzer": [
                0x1,
                "Trigger propageted when amplitude is within LLD and ULD settins.",
            ],
            "Digital Probe": [
                0x2,
                "TRG‐OUT signal is generated as soon as the selected digital probe is generated.",
            ],
            "Self‐Trigger": [0x3, "Channel Self‐Trigger is propageted to TRG-OUT."],
        },
        "menu": section,
    }

    cfg["TRG-IN Inhibit"] = {
        "addr": 0x10A0,
        "mode": "rw",
        "bits": (11, 1),
        "init": "Enable",
        "pick": {
            "Enable": [
                0x0,
                "Enable the global trigger coming from TRG‐IN.",
            ],
            "Inhibit": [
                0x1,
                "Inhibit the global trigger coming from TRG‐IN and use it for counting only.",
            ],
        },
        "menu": section,
    }

    cfg["Trigger Tag"] = {
        "addr": 0x10A0,
        "mode": "rw",
        "bits": (16, 2),
        "init": "1024",
        "pick": {
            "1024": [0x0, "Tag every 1024 triggers."],
            "128": [0x1, "Tag every 128 triggers."],
            "8K": [0x2, "Tag every 8192 triggers"],
        },
        "menu": section,
    }

    cfg["Roll Over"] = {
        "addr": 0x1080,
        "mode": "rw",
        "bits": (26, 1),
        "init": 0x1,
        "menu":  "hidden",
#        "init": "Disable",
#        "pick": {
#            "Disable": [
#                0x0,
#                "In the moment of Timestamp counter roll-over, the algorithm does not create anything.",
#            ],
#            "Enable": [
#                0x1,
#                "In the moment of Timestamp counter roll-over, the algorithm creates a FAKE Event with Time Stamp = 0 (E=0, PU=1) ",
#            ],
#        },
    }