Reference Manual

PMAC 2 Software Reference
PMAC I/0 and Memory Map 423
Channel 3: X:$C014; Channel 7: X:$C034;
Channel 11: X:$C054; Channel 15: X:$C074:
ADC Strobe Word, 24 bits
(Shifted out MSB first one bit per ADC_CLK cycle, starting on rising edge of phase clock.)
Standard mode, bit 0 must be 0 to clear strobe for next cycle; first data bit clocked in ends
up in bit 23.
Alternate mode (Rev “D” and newer only), bit 0 set to 1 (strobe cleared automatically); first
four data bits clocked in “rolled over” to bits 3-0.
(X:$C014 controls channels 1-4; X:$C034 controls channels 5-8.)
(X:$C054 controls channels 9-12; X:$C074 controls channels 13-16.)
Channel 4: X:$C01C; Channel 8: X:$C03C;
Channel 12: X:$C01C; Channel 16: X:$C03C:
PWM, PFM, MaxPhase Control Word
(X:$C01C controls channels 1-4; X:$C03C controls channels 5-8.)
(X:$C05C controls channels 9-12; X:$C07C controls channels 13-16.)
(X:$C01C bits 0-7 is I904; X:$C03C bits 0-7 is I908.)
0-7 PWM Dead Time (16*PWM CLK cycles) also PFM
pulse width (PFM CLK cycles) (X:$C01C bits 8-23 is
I900; X:$C03C bits 8-23 is I906.)
8-23 PWM MaxCount Value PWM Frequency = 117.9648
MHz / [4*MaxCount + 6]
“MaxPhase” Frequency = 2*PWM Frequency
= 117.9648 MHz / [2*MaxCount + 3]
Chan #
1 2 3 4 5 6 7 8
Hex
[$C005] [$C00D] [$C015] [$C01D] [$C025] [$C02D] [$C035] [$C03D]
Decimal
49157 49165 49173 49181 49189 49197 49205 49213
Chan #
9 10 11 12 13 14 15 16
Hex
[$C045] [$C04D] [$C055] [$C05D] [$C065] [$C06D] [$C075] [$C07D]
Decimal
49221 49229 49237 49245 49253 49261 49269 49277
Y:$Cxxx
Channel n ADC A Input Value
Bits
6-23 Serial ADC Value
0-5 Not used (standard ADC strobe mode) ADC header
data (alternate ADC strobe mode, “D” rev and newer
only)
X:$Cxxx
Channel n Control Word
0-3 Encoder Decode Control (I9n0)
0000: Pulse and direction decode CW
0001: x1 quadrature decode CW
0010: x2 quadrature decode CW
0011: x4 quadrature decode CW
0100: Pulse and direction decode CCW
0101: x1 quadrature decode CCW
0110: x2 quadrature decode CCW
0111: x4 quadrature decode CCW
1000: Internal pulse and direction decode
1001: (Reserved for future use)
1010: (Reserved for future use)
1011: x6 “hall sensor” decode CW
1100: MLDT timer mode
1101: (Reserved for future use)
1110: (Reserved for future use)
1111: x6 “hall sensor” decode CCW