Reference Manual

PMAC 2 Software Reference
PMAC Saved Setup Registers 371
A value of 8-15 in CONFIG_W1 tells PMAC2 to read ANAI00-07, respectively, as a -2.5 to +2.5V input,
resulting in a signed value.
A value of 0-7 in CONFIG_W2 tells PMAC2 to read channel ANAI08-15, respectively, as a 0 to+5V
input, resulting in an unsigned value.
A value of 8-15 in CONFIG_W1 tells PMAC2 to read ANAI08-15, respectively, as a -2.5 to +2.5V input,
resulting in a signed value.
Each phase update (9 kHz default), PMAC2 increments through one line of the table. It copies the ADC
reading(s) selected in the previous cycle into RAM, then writes the next configuration words to the
ADC(s). Typically, this will be used to cycle through all 8 ADCs or pairs of ADCs. To cycle through all
8 pairs of ADCs in unsigned mode, the table should look like this:
PMAC
Address
X Word
Upper 12 Bits
X Word
Lower 12 Bits
Y Word
Upper 12 Bits
Y Word
Lower 12 Bits
$0708 0 0 ANAI08 ANAI00
$0709 1 1 ANAI09 ANAI01
$070A 2 2 ANAI10 ANAI02
$070B 3 3 ANAI11 ANAI03
$070C 4 4 ANAI12 ANAI04
$070D 5 5 ANAI13 ANAI05
$070E 6 6 ANAI14 ANAI06
$070F 7 7 ANAI15 ANAI07
Suggested M-variable definitions for the configuration words are:
M990->X:$0708,0,24,U ; 1st CONFIG_W1 and CONFIG_W2
M991->X:$0709,0,24,U ; 2nd CONFIG_W1 and CONFIG_W2
M992->X:$070A,0,24,U ; 3rd CONFIG_W1 and CONFIG_W2
M993->X:$070B,0,24,U ; 4th CONFIG_W1 and CONFIG_W2
M994->X:$070C,0,24,U ; 5th CONFIG_W1 and CONFIG_W2
M995->X:$070D,0,24,U ; 6th CONFIG_W1 and CONFIG_W2
M996->X:$070E,0,24,U ; 7th CONFIG_W1 and CONFIG_W2
M997->X:$070F,0,24,U ; 8th CONFIG_W1 and CONFIG_W2
If you wanted to set up all ADCs for a unipolar (unsigned) conversion, the following commands could be
issued
M990=$000000 ; Select ANAI00 and ANAI08 (if present) unipolar
M991=$001001 ; Select ANAI01 and ANAI09 (if present) unipolar
M992=$002002 ; Select ANAI02 and ANAI10 (if present) unipolar
M993=$003003 ; Select ANAI03 and ANAI11 (if present) unipolar
M994=$004004 ; Select ANAI04 and ANAI12 (if present) unipolar
M995=$005005 ; Select ANAI05 and ANAI13 (if present) unipolar
M996=$006006 ; Select ANAI06 and ANAI14 (if present) unipolar
M997=$007007 ; Select ANAI07 and ANAI15 (if present) unipolar
To set up the configuration words for bipolar analog inputs, the commands could look like this:
M990=$008008 ; Select ANAI00 and ANAI08 (if present) bipolar
M991=$009009 ; Select ANAI01 and ANAI09 (if present) bipolar
M992=$00A00A ; Select ANAI02 and ANAI10 (if present) bipolar
M993=$00B00B ; Select ANAI03 and ANAI08 (if present) bipolar
M994=$00C00C ; Select ANAI04 and ANAI08 (if present) bipolar
M995=$00D00D ; Select ANAI05 and ANAI08 (if present) bipolar
M996=$00E00E ; Select ANAI06 and ANAI08 (if present) bipolar
M997=$00F00F ; Select ANAI07 and ANAI08 (if present) bipolar