From d3b6e20584f974e1ce1243e24c28311fb5afedea Mon Sep 17 00:00:00 2001 From: Hades DAQ Date: Tue, 26 Feb 2013 13:21:54 +0100 Subject: [PATCH] added users, mt --- users/gsi_ee_lab_kp1pc105/configure_trb3.sh | 31 +++++++++++++++ .../start_test_system_trb3_cts.sh | 39 +++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100755 users/gsi_ee_lab_kp1pc105/configure_trb3.sh create mode 100755 users/gsi_ee_lab_kp1pc105/start_test_system_trb3_cts.sh diff --git a/users/gsi_ee_lab_kp1pc105/configure_trb3.sh b/users/gsi_ee_lab_kp1pc105/configure_trb3.sh new file mode 100755 index 0000000..11f43fe --- /dev/null +++ b/users/gsi_ee_lab_kp1pc105/configure_trb3.sh @@ -0,0 +1,31 @@ +trbcmd w 0x8000 0x8300 0x8000 +trbcmd w 0x8000 0x8301 0x00020001 +trbcmd w 0x8000 0x8302 0x00030062 +trbcmd w 0x8000 0x8303 0xea60 +trbcmd w 0x8000 0x8304 0x2260 +trbcmd w 0x8000 0x8305 0x1 +trbcmd w 0x8000 0x8306 0x0 +trbcmd w 0x8000 0x8307 0x0 +trbcmd w 0x8000 0x8308 0xffffff +trbcmd w 0x8000 0x830b 0x7 +trbcmd w 0x8000 0x830d 0x0 + +#mac address of the EB +#kp1pc105 00:1b:21:43:97:ea +trbcmd w 0x8000 0x8100 0x214397ea +#trbcmd w 0x8000 0x8100 0x2170e8c4 +trbcmd w 0x8000 0x8101 0x001b #upper byte + +#kp1pc092.gsi.de ether 00:21:9b:78:79:35 C eth0 +#trbcmd w 0x8000 0x8100 +#trbcmd w 0x8000 0x8101 0x0021 + +#00:1b:21:43:97:ea +#trbcmd w 0x8000 0x8102 0xc0a80013 +trbcmd w 0x8000 0x8102 0xc0a80101 +trbcmd w 0x8000 0x8103 0xc350 +trbcmd w 0x8000 0x8104 0xdead8001 +trbcmd w 0x8000 0x8105 0x0230 +trbcmd w 0x8000 0x8106 0xc0a80072 +trbcmd w 0x8000 0x8107 0xc350 +trbcmd w 0x8000 0x8108 0x0578 diff --git a/users/gsi_ee_lab_kp1pc105/start_test_system_trb3_cts.sh b/users/gsi_ee_lab_kp1pc105/start_test_system_trb3_cts.sh new file mode 100755 index 0000000..0f8ce85 --- /dev/null +++ b/users/gsi_ee_lab_kp1pc105/start_test_system_trb3_cts.sh @@ -0,0 +1,39 @@ + +# set addresses +cd ~/trb3 + + + +~/bin/generate_serial_table.pl 15 + + +trbcmd s 0x2b00000270d5b328 0x2 0x2 +trbcmd s 0x2b00000270d5b328 0x1 0x3 + +#trbcmd s 0xec000003a426cd28 0x1 0x100 # cbm rich + +./configure_trb3.sh # central hub configuration to send data via GbE + +# setup tdcs on TRB3 +#trbcmd w 0xfe45 0xc0 0x00000001 ## logic analyser control register +#trbcmd w 0xfe45 0xc1 0x000f0005 ## trigger window enable & trigger window width +#trbcmd w 0xfe45 0xc2 0x00000007 ## channel 01-31 enable +#trbcmd w 0xfe45 0xc3 0x00000000 ## channel 32-63 enable + + +#CTS +#trbcmd loadbit 0x003 0xA0C1 0x0000000F 0x00000004 +#trbcmd setbit 0x0003 0xA0C2 0x01000000 + +#trbcmd w 0x0003 0xA0f1 0x20 #Events per EB +#trbcmd w 0x0003 0xA0f0 0x0001 #15 - 0 EB enable , + #31 - 16 downscale of RPC/TOF TDC trailers and headers + +# pulser to 5 Hz +trbcmd w 0x3 0xa0e3 0x1ffffff + +# PT1 on +#trbcmd w 0x0003 0xa0c3 0x10000000 +#trbcmd w 0x0003 0xa0c4 0x0 +#trbcmd w 0x0003 0xa0c5 0x3ff +#trbcmd w 0x0003 0xa0c7 0x800 -- 2.43.0