]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
Configuring ADC AddOn user script
authorJan Michel <j.michel@gsi.de>
Fri, 3 Oct 2014 12:26:53 +0000 (14:26 +0200)
committerJan Michel <j.michel@gsi.de>
Fri, 3 Oct 2014 12:30:06 +0000 (14:30 +0200)
users/frankfurt_test/adc.pl [new symlink]
users/frankfurt_test/adcsettings.sh [new file with mode: 0755]

diff --git a/users/frankfurt_test/adc.pl b/users/frankfurt_test/adc.pl
new file mode 120000 (symlink)
index 0000000..3b11100
--- /dev/null
@@ -0,0 +1 @@
+../../tools/adc.pl
\ No newline at end of file
diff --git a/users/frankfurt_test/adcsettings.sh b/users/frankfurt_test/adcsettings.sh
new file mode 100755 (executable)
index 0000000..bbad5d4
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+#Disable second TRB3 & unused ADC FPGA
+trbcmd w 0x8000 0xc0 0x0fe8
+trbcmd w 0x8000 0xc1 0x0fe8
+trbcmd w 0x8000 0xc3 0x0ff8
+
+
+cd ../../tools/
+./adc.pl 0xfe4b init
+./adc.pl 0xfe4b adc_phase 1
+cd ../users/frankfurt_test
+
+
+trbcmd w 0xfe4b 0xa010 1000        #Buffer depth
+trbcmd w 0xfe4b 0xa011 8           #Samples after trigger
+trbcmd w 0xfe4b 0xa012 1           #Process blocks
+trbcmd w 0xfe4b 0xa013 40          #Trigger offset
+trbcmd w 0xfe4b 0xa014 40          #Readout offset
+trbcmd w 0xfe4b 0xa015 0           #Downsampling
+trbcmd w 0xfe4b 0xa016 8           #Baseline
+trbcmd w 0xfe4b 0xa017 1           #Trigger Enable
+
+trbcmd w 0xfe4b 0xa000 0x100       #Reset Baseline
+
+trbcmd setbit  0x8000 0xa14d 0x00040000              #External trigger selector
+trbcmd setbit  0x8000 0xa101 0x00000400              #External trigger on
+
+trbcmd w       0x8000 0xa150 0x05f5e0ff              #1 Hz pulser
+trbcmd loadbit 0x8000 0xa158 0x000000f0 0x000000e0   #Pulser 0xe type
+trbcmd setbit  0x8000 0xa101 0x00000002              #Pulser on
+
+