+++ /dev/null
-#!/bin/sh
-
-echo "Loading nxyter read-out configuration"
-
-case $1 in
- 0x38*)
- board=$1
- ;;
- *)
- echo "Wrong board!"
- exit
- ;;
-esac
-
-# i2c_sm_reset
-trbcmd w $board 0x8100 0x01
-# i2c_reg_reset_start
-trbcmd w $board 0x8101 0x01
-
-# Write nxsetup.dat to memory and transfer to nx-i2c-registers
-echo "Using nxsetup_$board.dat"
-trbcmd wm $board 0x8200 0 nxsetup_${board}.dat
-
-# Trigger Validate
-trbcmd w $board 0x8400 0 # set readout mode
-trbcmd w $board 0x8401 0 # window offset
-trbcmd w $board 0x8402 0x0064 # window width 400ns
-
-# Data Validate
-trbcmd w $board 0x8120 1 # reset all counters
-
-# CTS Delays and ADC_OFF
-CTS_DELAY=0
-ADC_OFF=0
-case $board in
- 0x3800)
- CTS_DELAY=210
- ADC_OFF=0
- ;;
-
- 0x3801)
- CTS_DELAY=210
- ADC_OFF=0
- ;;
-
- 0x3810)
- CTS_DELAY=175
- ADC_OFF=0
- ;;
-
- 0x3811)
- CTS_DELAY=175
- ADC_OFF=0
- ;;
-
- *)
- echo "Wrong board!"
- ;;
-esac
-
-trbcmd w $board 0x8403 $CTS_DELAY
-if [ $ADC_OFF -eq 1 ] ; then
- trbcmd w $board 0x8504 0x80000000
-fi
-
-# TS Cut Level2 140 220 [ns]
-trbcmd w $board 0x8420 0x008c00dc
-
-# Turn off Status Trigger
-trbcmd w $board 0x8166 2
-