Browse Source

fix for enable readout, set max num of frames in ddr

Uros Stevanovic 9 years ago
parent
commit
ceb0f0ca8d
1 changed files with 15 additions and 3 deletions
  1. 15 3
      reset.sh

+ 15 - 3
reset.sh

@@ -56,14 +56,14 @@ function reset_dma () {
 function reset_logic () {
     pci -w 0x9040 80000005
     sleep .1
-    pci -w 0x9040 80000001
+    pci -w 0x9040 80000201
     sleep .1
 }
 
 function reset_cmosis () {
     pci -w 0x9040 80000000
     sleep .3
-    pci -w 0x9040 80000001
+    pci -w 0x9040 80000201
     sleep .3
 }
 
@@ -72,7 +72,7 @@ function reset_all () {
     sleep .2
     pci -w 0x9040 80000000
     sleep .3
-    pci -w 0x9040 80000001
+    pci -w 0x9040 80000201
     sleep .3
 }
 
@@ -377,6 +377,12 @@ if [ "$RESET_CMOSIS" ]; then
     configure_cmosis
     set_number_lines $NUM_ROWS
     set_exp_time $EXP_TIME
+    #set max number of frames in ddr
+    if [ "$MODE12b" ]; then
+      pci -w 0x91a0 e 
+    else
+      pci -w 0x91a0 38 
+    fi
     check_status
 fi
 
@@ -387,5 +393,11 @@ if [ "$RESET_ALL" ]; then
     configure_cmosis
     set_number_lines $NUM_ROWS
     set_exp_time $EXP_TIME
+    #set max number of frames in ddr
+    if [ "$MODE12b" ]; then
+      pci -w 0x91a0 e 
+    else
+      pci -w 0x91a0 38 
+    fi
     check_status
 fi