|
1 |
'''[wiki:GraspSwControllerCmd clvset]''' |
|
2 |
|
|
3 |
[[TracNav(GraspContents)]] |
|
4 |
|
|
5 |
||Command:||'''clvset'''|| |
|
6 |
||Contexts:||Network socket, serial console, stage2 only|| |
|
7 |
||Function:||Set up clocking parameters and ADC configuration for next readout|| |
|
8 |
||Required Parameters:||none.|| |
|
9 |
||Optional Parameters:|| || |
|
10 |
||'''dev='''||[current] Select dev '''0''' '''1''' or '''all'''|| |
|
11 |
||'''pg3='''||8 sets of four hex digits to configure serial (row/horizontal) clocking|| |
|
12 |
||'''pg4='''||8 sets of four hex digits to configure serial RESET, SUMMING WELL, (CCDs), VCLAMP, and ADCTRIG|| |
|
13 |
||'''ppg4='''||8 sets of four hex digits to configure parallel (vertical) clocking|| |
|
14 |
||'''adc='''||1 set of four hex digits plus an optional nibble to configure ADC operation|| |
|
15 |
||'''trig='''||Number of NOPs (10 nsec delay steps) to insert after each crosstrigger sync|| |
|
16 |
||'''pipeline='''||Number of pipeline pixels resulting from clocking pattern (usually 1)|| |
|
17 |
||'''prescan='''||Number of device serial prescan pixels to skip (clocked, but not sampled)|| |
|
18 |
||'''prebias='''||Extra overscan pixels to be read '''after''' xtrig (usually 0)|| |
|
19 |
|
|
20 |
=== Example === |
|
21 |
|
|
22 |
The following is a complete command to configure a typical "4+1" CCD clocking pattern on both clocking engines. It takes 4 samples of the pedestal level, plus 1 skipped for pipeline purposes, and then 4 samples of the video level, plus 1 skipped for pipeline purposes. |
|
23 |
|
|
24 |
{{{ |
|
25 |
clvset dev=all ppg4=ecbb:cbb2:bb2e:65d8:5d97:38ba:6622:3154 \ |
|
26 |
pg3=340e:40e0:1c03:c070:06c1:0417:649b:0136 \ |
|
27 |
pg4=1038:8010:0104:00b0:07c2:0000:3732:08a2 \ |
|
28 |
adc=1500:1 |
|
29 |
}}} |
|
30 |
|
|
31 |
The command must be sent all on one line. |
|
32 |
|
|
33 |
=== Parameter adc= === |
|
34 |
|
|
35 |
The first, four-digit hex part of the adc= parameter is formed by or-ing several values together: |
|
36 |
|
|
37 |
{{{ |
|
38 |
I | (C << 8) | (N << 10) |
|
39 |
}}} |
|
40 |
|
|
41 |
Where I (the lower 8 bits) specifies extra inter-sample delay time (usually left at 00), C is the number of channels (1 2 or 3) and N is the number of multiple samples to read each time ADCTRIG changes (goes high or low.) |
|
42 |
|
|
43 |
The default behavior of the adc= parameter in single-sampled mode is to read only the "Red" ADC channel. All digits in the adc= parameter are in hex. The option last nibble after the colon allows one to select other ADC channels. It is a bit mask. |
|
44 |
|
|
45 |
||adc=1500||4+1 RED|| |
|
46 |
||adc=1500:1||4+1 RED|| |
|
47 |
||adc=1500:2||4+1 GREEN|| |
|
48 |
||adc=1500:4||4+1 BLUE|| |
|
49 |
|
|
50 |
For two-channel mode, the following combinations are valid: |
|
51 |
|
|
52 |
||adc=1600||4+1 RED,GREEN|| |
|
53 |
||adc=1600:3||4+1 RED,GREEN|| |
|
54 |
||adc=1600:5||4+1 RED,BLUE|| |
|
55 |
||adc=1600:6||4+1 GREEN,BLUE|| |
|
56 |
|
|
57 |
For three-channel mode, the mask is ignored and all three (RED, GREEN, BLUE) channels are active. |
|
58 |
|
|
59 |
||adc=1700||4+1 RED,GREEN,BLUE|| |