ソースを参照

rearranged the order of the setting

meghana-soleil-pc 3 年 前
コミット
262e01c4a4
1 ファイル変更35 行追加34 行削除
  1. 35 34
      reset.sh

+ 35 - 34
reset.sh

@@ -1,36 +1,9 @@
 #! /bin/bash
 export PCILIB_MODEL=ipedma
 
-#echo "ADC & GOT: Turning on power..."
-#pci -w 9048 f0
-#sleep 0.1
-
-#pci -w 9048 ff
-#sleep 0.1
-################################################
-echo "KALYPSO: reset internal PLL"
-pci -w 904C 1
-sleep 0.1
-
-echo "KALYPSO: enable internal clock (WARNING: ONLY FOR DEBUGGING!)"
-pci -w 904C 0
-sleep 0.1
-
-echo "reset and synchronize TOP and BOTTOM"
-pci -w 904C 2
-sleep 0.1
-
-echo "SETTING FOR 512 PIXELS"
-pci -w 904C 8
-sleep 0.1
-
-
-###################################################
-# echo "----------> reset of the clock align stage"
-# pci -w 9040 10310f00
-# sleep 0.05
-# pci -w 9040 10210f00
-# sleep 0.05
+echo " ###########################################################"
+echo "          KALYPSO 512 pix  - INTERNAL CLOCK      "
+echo " ###########################################################"
 
 ####################################################
 echo "RESET of the KALYPSO"
@@ -40,9 +13,7 @@ sleep 0.1
 echo "DE-RESET of the KALYPSO"
 pci -w 9040 0x0
 sleep 0.1
-#echo "KALYPSO: Total Orbits"
-#pci -w 0x9020 0x400
-#sleep 0.1
+
 ######################################
 pci -w 0x9024 0
 sleep 0.1
@@ -70,9 +41,39 @@ echo "write the number of samples to be acquired"
 pci -w 9108 0x0400
 sleep 0.1
 
-
+################################################
 echo "----------> reset of the clock align stage"
+pci -w 9088 0
+sleep 0.05
+#
+pci -w 908C 0
+sleep 0.05
+
 pci -w 9040 10310f00
 sleep 0.05
 pci -w 9040 10210f00
 sleep 0.05
+
+pci -w 9040 10310f00
+sleep 0.05
+pci -w 9040 10210f00
+sleep 0.05
+#
+pci -w 9040 10310f00
+sleep 0.05
+pci -w 9040 10210f00
+sleep 0.05
+#
+pci -w 9040 10310f00
+sleep 0.05
+pci -w 9040 10210f00
+sleep 1 # do not reduce this time, waiting till the PLL is locked #
+
+ ############## For internal RF clock ############
+echo "reset and synchronize TOP and BOTTOM"
+pci -w 904C 2
+sleep 0.1
+
+echo "SETTING FOR 512 PIXELS"
+pci -w 904C 8
+sleep 0.1