Difference between revisions of "Happex DAQ for g2p"

From Hall A Wiki
Jump to: navigation, search
(18-bit ADC)
(18-bit ADC)
 
Line 82: Line 82:
  
 
               Right Arm
 
               Right Arm
  ADCx        11        5        2        3        14       12
+
  ADCx        11        5        2        3        18       22
 
  address    0xb14000  0x15C000  0x218000  0x318000  0xCC0000  0x118000
 
  address    0xb14000  0x15C000  0x218000  0x318000  0xCC0000  0x118000
 
  mode        V        V        V        V        I        I
 
  mode        V        V        V        V        I        I

Latest revision as of 17:07, 21 February 2012

Happex DAC Value(Right Arm)

DAC Value	0	1000	2000	3000	4000	5000	6000	7000	8000	9000	10000	11000	12000	13000
Output(V)	-4.99	-4.84	-4.69	-4.53	-4.38	-4.23	-4.079	-3.927	-3.774	-3.662	-3.47	-3.318	-3.165	-3.013
DAC Value	14000	15000	16000	17000	18000	19000	20000	21000	22000	23000	24000	25000	26000	27000
Output(V)	-2.861	-2.709	-2.556	-2.404	-2.252	-2.099	-1.947	-1.795	-1.642	-1.49	-1.338	-1.185	-1.033	-0.88
DAC Value	28000	29000	30000	31000	32000	32767	33000	34000	35000	36000	37000	38000	39000	40000
Output(V)	-0.728	-0.576	-0.423	-0.271	-0.119	0	0.0337	0.1862	0.3386	0.491	0.643	0.796	0.948	1.101
DAC Value	41000	42000	43000	44000	45000	46000	47000	48000	49000	50000	51000	52000	53000	54000
Output(V)	1.253	1.405	1.558	1.71	1.863	2.015	2.167	2.32	2.472	2.625	2.777	2.929	3.082	3.234
DAC Value	55000	56000	57000	58000	59000	60000	61000	62000	63000	64000	65000	65535
Output(V)	3.387	3.539	3.691	3.844	3.996	4.15	4.3	4.46	4.61	4.76	4.92	4.99
relationship: Output(v)=0.0001524*DACvalue-4.99558

Happex DAC Value(Counting house)

DAC Value	0	1000	2000	3000	4000	5000	6000	7000	8000	9000	10000	11000	12000	13000
Output(V)	-4.99	-4.84	-4.69	-4.53	-4.38	-4.23	-4.08	-3.92	-3.77	-3.62	-3.47	-3.32	-3.16	-3.01
DAC Value	14000	15000	16000	17000	18000	19000	20000	21000	22000	23000	24000	25000	26000	27000
Output(V)	-2.86	-2.70	-2.55	-2.40	-2.25	-2.09	-1.949	-1.797	-1.645	-1.492	-1.340	-1.187	-1.034	-0.882
DAC Value	28000	29000	30000	31000	32000	32767	33000	34000	35000	36000	37000	38000	39000	40000
Output(V)	-0.729	-0.576	-0.423	-0.270	-0.118	-0.0007	0.034	0.187	0.339	0.492	0.645	0.798	0.951	1.103
DAC Value	41000	42000	43000	44000	45000	46000	47000	48000	49000	50000	51000	52000	53000	54000
Output(V)	1.256	1.409	1.562	1.714	1.867	2.01	2.16	2.31	2.47	2.62	2.77	2.92	3.08	3.23
DAC Value	55000	56000	57000	58000	59000	60000	61000	62000	63000	64000	65000	65535
Output(V)	3.38	3.53	3.69	3.84	3.99	4.15	4.30	4.45	4.60	4.76	4.91	4.99
relationship: Output(v)=0.00015225*DACvalue-4.9901
fitting uncertainty: 0.00000003 for slope, 0.0009 for intercept

Flexible I/O Setting

To use the trigger interrupt from flexible I/O, the switches must be in the positions:

(D2,D1,D0)    Latching Signal
    0         Input 0
    1         Input 1
    2         Input 2 
    3         Input 3
    4         External Strobe
    5         OR(Input 0,Input 1,Input 2,Input 3)
    6         OR(Input 0,Input 1,Input 2,Input 3,External Strobe)
    7         No latching Signal

Note: open swtich(OFF) is a "1", closed switch(ON) is a "0"

So if use the external strobe(i.e. DIN), the switch must be in:

2=OFF,  1=ON,  0=ON

In main board of FlexIO, there is a switch to choose the priority of interrupt.

18-bit ADC

18-bit ADC has two mode: I mode and V mode. One can change three resistors:R18,R14,R159 and a switch to change the mode.

LUMI ADC (high current mode) - R159=5k, R69=R70=47k, R68=R72=47k

Detector ADC (low current mode) - R159=100k, R69=R70=1k, R68=R72=1k

V Mode - R159=499, R69=R70=300, R68=R72=200

Here is the position of the resistor

Here is the mode of each 18-bit ADC in Prex Experiment

For g2p experiment, Here is the ADC slot distribution:

              Left Arm
ADCx         4         15        13        21        7
address    0x22C000  0xCD0000  0xED0000  0x320000  0xB24000
mode         V         V         V         V         V
              Right Arm(old)
ADCx         11        20        2         3         5
address    0xb14000  0xb34000  0x218000  0x318000  0x15C000
mode         V         V         V         V         V
              Right Arm
ADCx         11        5         2         3         18        22
address    0xb14000  0x15C000  0x218000  0x318000  0xCC0000  0x118000
mode         V         V         V         V         I         I

Resistor and mode for each ADC:

      x22  x9   x18  x0   x1           x16  x19  x10  x14  x12  x4   x15  x13  x21  x7   x11  x20  x2   x3   x5   x8   x17
R159  500  500  500  500  10-20-30-50k 500  500  500  100k 5k   500  500  500  500  500  500  500  500  500  500  500  500-9.8k-17.8k-17.8k
R18   300  300  300  300  300          300  300  300  1k   47k  300  300  300  300  300  300  300  300  300  300  300  300-10.9k-10.8k-47.4k
R14   200  200  200  200  200          200  200  200  1k   47k  200  200  200  200  200  200  200  200  200  200  200  200-10.9k-10.9k-47.4k
mode  V    V    V    V                 V    V    V    I    I    V    V    V    V    V    V    V    V    V    V    V    V-I-I-I
loc   Count C   C    C    C            C    C    C    Right R   Left L    L    L    L    R    R    R    R    R    C    Test