]> jspc29.x-matter.uni-frankfurt.de Git - hadesdaq.git/commitdiff
status, mt
authorhadaq@countinghouse <hadaq@CountingHouse>
Thu, 28 Aug 2014 15:27:05 +0000 (17:27 +0200)
committerhadaq@countinghouse <hadaq@CountingHouse>
Thu, 28 Aug 2014 15:27:05 +0000 (17:27 +0200)
pion/config/nxyter.sh

index 2d832bd96170097212d3086197d4aec336ff1d74..39eaf8fbd30e8059c1c5de2e95928173bfd26ce6 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/bash
 
-cd nxyter/
+cd ./nxyter
 
-nxarr=(0x3800 0x3801 0x3810 0x3811)
+NXYTER_LIST="0x3800 0x3801 0x3810 0x3811"
 
 echo "======================"
 echo $(date)
-for i in ${nxarr[*]}; do
+for i in ${NXYTER_LIST} ; do
        echo "nxyter: $i"
        res=$(trbcmd i $i 2> /dev/null | wc -l)
        if [ $res -eq 0 ]; then
@@ -16,31 +16,32 @@ for i in ${nxarr[*]}; do
        fi
        msg="+ n-XYTER found"
        echo -e $msg
-       ./trb3_setup.sh $i
+       ./setup.sh $i
 done
 
-#./trb3_setup.sh 0x3800
-#./trb3_setup.sh 0x3801
-#./trb3_setup.sh 0x3802
-#./trb3_setup.sh 0x3803
+# Configure Central FPGA Hubs
+trbcmd w 0x8900 0xc0 0xfff6
+trbcmd w 0x8900 0xc1 0xfff6
+trbcmd w 0x8900 0xc3 0xfff6
+# 9
+trbcmd w 0x8910 0xc0 0xfff6
+trbcmd w 0x8910 0xc1 0xfff6
+trbcmd w 0x8910 0xc3 0xfff7
 
-trbcmd w 0x8900 0xc0 0xfff9
-trbcmd w 0x8900 0xc1 0xfff9
-trbcmd w 0x8900 0xc3 0xfff9
-
-trbcmd w 0x8910 0xc0 0xfff3
-trbcmd w 0x8910 0xc1 0xfff3
-trbcmd w 0x8910 0xc3 0xfff3
+#TDC channel for spill signal
+trbcmd w 0x3830 0xc802 0x3000
 
 #Trigger forwarding setting
-trbcmd setbit 0x8900 0xcf00 0x8000   #3801 only
-trbcmd clearbit 0x8900 0xcf00 0x0008   #3800 disabled
+trbcmd setbit   0x8900 0xcf00 0x0800   #3801 only
+trbcmd clearbit 0x8900 0xcf00 0x0080   #3800 disabled
+
+trbcmd setbit   0x8910 0xcf00 0x0080   #3810
+trbcmd clearbit 0x8910 0xcf00 0x0800   #3811 disabled
 
-trbcmd setbit 0x8910 0xcf00 0x0008   #3810
-trbcmd clearbit 0x8910 0xcf00 0x0080   #3811 disabled
+#Enable SED for debugging
+trbcmd w 0xfe49 0xd500 1 
 
 cd ..
 
 # enable TT mode (calibration)
 #../nxscripts/mode_t.sh
-