admc331 Analog Devices, Inc., admc331 Datasheet - Page 19

no-image

admc331

Manufacturer Part Number
admc331
Description
Single Chip Dsp Motor Controller
Manufacturer
Analog Devices, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
admc331BST
Manufacturer:
AD
Quantity:
2 350
Part Number:
admc331BST
Manufacturer:
MOT
Quantity:
2 350
Part Number:
admc331BST
Manufacturer:
ADI
Quantity:
288
Part Number:
admc331BSTZ
Quantity:
5 510
Part Number:
admc331BSTZ
Manufacturer:
ADI
Quantity:
246
determined by the capacitor and the current source values. An
internal current source is made available for connection to the
external timing capacitor on the ICONST pin. An external
current source could also be used, if required. The four input
comparators of the ADC block continuously compare the values
of the four analog inputs with the capacitor voltage. Each com-
parator output will go high when the capacitor voltage exceeds
the respective analog input voltage.
ADC Timer Block
The ADC timer block consists of a 12-bit counter clocked at a
rate determined by the ADCCNT bit in the MODECTRL
register. If ADCCNT is 0, the counter is clocked at twice the
CLKOUT period, or if ADCCNT is 1, the counter is clocked
at the CLKOUT period. Thus at the maximum CLKOUT
frequency of 26 MHz, this gives a timer resolution of 76.9 ns
when ADCCNT is 0, and 38.5 ns when ADCCNT is 1. The
counter is reset during the high PWMSYNC pulse so that the
counter commences at the beginning of the reference voltage
ramp. When the output of a given comparator goes high, the
counter value is latched into the appropriate 12-bit ADC regis-
ter. There are four pair of ADC registers (ADC1, ADC2,
ADC3 and ADCAUX) corresponding to each of the four com-
parators. Each comparator’s register pair is organized as master/
slave or master/shadow. At the end of the reference voltage ramp,
which is prior to the next PWMSYNC, all four master registers
have been loaded with the new conversion count. At the rising edge
of the PWMSYNC, the registered conversion count for each chan-
nel is loaded into the DSP readable shadow registers, ADC1,
ADC2, ADC3, and ADCAUX. The controller will then read
these shadow registers containing the previous PWM period
conversion count, while internally the master registers will be
loaded with the current PWM period conversion count.
The first set of values loaded into the output registers after the
first PWMSYNC interrupt will be invalid since the latched value
is indeterminate. Also, if the input analog voltage exceeds the
peak capacitor ramp voltage, the comparator output will be
permanently low and a 0xFFF0 code will be produced. This
indicates an input overvoltage condition.
ICONST
VAUX0
VAUX1
VAUX2
VAUX3
C
CAPIN
SGND
VREF
V1
V2
V3
MUX
4-1
ADMUX0
ADMUX1
BLOCK
TIMER
ADC
REGISTERS
ADCAUX
ADC1
ADC2
ADC3
ADC
PWMSYNC
CLKOUT
MODECTRL (7)
ADC Resolution
Because the operation of the ADC is intrinsically linked to the
PWM block, the effective resolution of the ADC is a function of
the PWM switching frequency. The effective ADC resolution is
determined by the rate at which the counter timer is clocked,
which is selectable by the ADCCNT Bit 7 in MODECTRL
register. For a CLKOUT period of t
T
Max Count = min (4095, (T
Max Count = min (4095, (T
For an assumed CLKOUT frequency of 26 MHz and PWM-
SYNC pulsewidth of 1.54 µs, the effective resolution of the
ADC block is tabulated for various PWM switching frequencies
in Table VII.
PWM
Freq.
(kHz)
2.5
4
8
18
24
External Timing Capacitor
In order to maximize the useful input voltage range and effective
resolution of the ADC, it is necessary to carefully select the
value of the external timing capacitor. For a given capacitance
value, C
where I
T
value, however, it is necessary to take into account the tolerance
of the capacitor and the variation of the current source value.
COMPARATOR
CRST
PWM
PWMSYNC
OUTPUT
V
, the maximum count of the ADC is given by:
is the PWMSYNC pulsewidth. In selecting the capacitor
VIL
CONST
NOM
Max
Count
4095
3230
1605
702
521
MODECTRL[7] = 0
, the peak ramp voltage is given by:
Table VII. ADC Resolution Examples
is the nominal current source value of 13.5 µA and
V
C
T
max =
PWM
t
VIL
– T
PWM
PWM
V
Resolution Count
12
>11
Effective
>10
>9
>9
CRST
C
I
– T
CONST
– T
CRST
CRST
(T
)/2 t
)/t
C
CK
PWM
NOM
CK
CK
Max
4095
4095
3210
1404
1043
and a PWM period of
MODECTRL[7] = 1
– T
V
CMAX
T
CRST
CRST
ADMC331
MODECTRL Bit 7 = 0
MODECTRL Bit 7 = 1
)
Effective
Resolution
12
12
>11
>10
>10
t
V1

Related parts for admc331