]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added cts settings
authorHadaq@styx <hadaq@styx>
Tue, 10 Dec 2013 15:46:55 +0000 (16:46 +0100)
committerHadaq@styx <hadaq@styx>
Thu, 12 Dec 2013 15:16:11 +0000 (16:16 +0100)
users/cosy_test/config/cts.sh
users/cosy_test/config/nxyter/trb3_setup.sh

index 8429d1934900a41fafbe10ebae5b78f5eba0a223..c6d7b68b28f679dcd1d9fad0d4a6e3881cdc0c14 100755 (executable)
@@ -4,12 +4,16 @@ echo "Doing CTS configuration"
 
 #trbcmd w 0x8000 0xa140 0x000f4240 # pulser freq 100 Hz
 trbcmd w 0x8000 0xa140 0x05f5e0ff # pulser freq 1 Hz
-trbcmd setbit 0x8000 0xa101 0x2 # turn on pulser
+trbcmd w 0x8000 0xa141 0x05f5e100  #periodic pulser 1 at 1 Hz for 0xE trigger type
+
+trbcmd loadbit 0x8000 0xa148 0x0f00 0x0e00 # setting trigger type E for second pulser
+trbcmd setbit  0x8000 0xa101 0x6 # turn on periodic pulser 1 and 0
 
 trbcmd loadbit 0x8000 0xa13d 0x7f 0xa # setting multiplexer input
 trbcmd loadbit 0x8000 0xa13e 0x7f 0xb # setting multiplexer input
-
 trbcmd loadbit 0x8000 0xa129 0x100 0x100 # setting multiplexer input invert
 
-trbcmd w 0x8000 0xc801 0x000f000f
+
+
+trbcmd w 0x8000 0xc801 0x000f000f   #for TDC inside CTS (not used): set trigger window
 
index 97fb2291918adc2895ab9519cf259bad1ab5fc99..82c3e181e5c35f328add5eb6e8b0522c78783070 100755 (executable)
@@ -34,11 +34,15 @@ trbcmd rm $board 0x8600 4000 2>/dev/null
 # Set readout Mode
 trbcmd w $board 0x8400 0x00   # 0: normal mode 4: no TS Window mode
 trbcmd w $board 0x8401 0      # window  offset 200ns
-trbcmd w $board 0x8402 250    # window width 800ns
+#trbcmd w $board 0x8402 250    # window width 800ns
+trbcmd w $board 0x8402 400    # window width 1600ns
 trbcmd w $board 0x8403 125    # CTS-Delay 400ns
 
 trbcmd w $board 0x8140 100     # test pulse length 400 ns
 
+# TS sync
+trbcmd w $board 0x850d 8      # reset all counters
+
 # Decoder Settings
 trbcmd w $board 0x8120 0      # reset all counters