From 7dd91892e8c887aba09e3c8b34bd49387be919b7 Mon Sep 17 00:00:00 2001 From: Michael Traxler Date: Wed, 4 Aug 2021 03:30:19 +0200 Subject: [PATCH] take address, mt --- users/gsi_ee_trb84/tdcv4_caltrg_init_new.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 users/gsi_ee_trb84/tdcv4_caltrg_init_new.sh diff --git a/users/gsi_ee_trb84/tdcv4_caltrg_init_new.sh b/users/gsi_ee_trb84/tdcv4_caltrg_init_new.sh new file mode 100755 index 0000000..39386fd --- /dev/null +++ b/users/gsi_ee_trb84/tdcv4_caltrg_init_new.sh @@ -0,0 +1,9 @@ +ADDR=$1 + +trbcmd loadbit $ADDR 0xcd26 0xff000000 0x12000000 # 8 LSBs of oscillator frequency in units of 10kHz +trbcmd loadbit $ADDR 0xcd27 0xff000000 0x7a000000 # 8 MSBs of oscillator frequency in units of 10kHz +trbcmd setbit $ADDR 0xcd28 0x20000000 # Frequency is precise +trbcmd setbit $ADDR 0xcd01 0x04000000 # Enable calibration clock +trbcmd loadbit $ADDR 0xcd01 0xff 0x7c # 8 / OscFreq = 25.6ns, all channels, 1 Pulse per trigger +trbcmd w $ADDR 0xcd30 0x1000 # set frequency divider +trbcmd w $ADDR 0xcd30 0x800 # set calibration parameters -- 2.43.0