From: Michael Traxler Date: Wed, 4 Aug 2021 01:09:28 +0000 (+0200) Subject: take address, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=307da775211e7caf0dbb467cd9450d11cf9184e3;p=daqtools.git take address, mt --- diff --git a/tdcv4_caltrg_init_new.sh b/tdcv4_caltrg_init_new.sh new file mode 100755 index 0000000..39386fd --- /dev/null +++ b/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