admcf340 Analog Devices, Inc., admcf340 Datasheet - Page 13

no-image

admcf340

Manufacturer Part Number
admcf340
Description
Dashdsptm 64-lead Flash Mixed-signal Dsp With Enhanced Analog Front End
Manufacturer
Analog Devices, Inc.
Datasheet
Each of the six PWM output signals can be enabled or disabled
by separate output enable bits of the PWMSEG Register. In
addition, three control bits of the PWMSEG Register permit
crossover of the two signals of a PWM.
In crossover mode, the high side PWM signals are diverted to
the complementary low side output and low side signals are
diverted to the corresponding high side output.
In many applications, there is a need to provide an isolation
barrier in the gate-drive circuits that turn on the power devices
of the inverter. In general, there are two common isolation
techniques: optical isolation using optocouplers, and transformer
isolation using pulse transformers. The PWM controller of the
ADMCF340 permits mixing of the output PWM signals with a
high frequency chopping signal to permit an easy interface to
such pulse transformers. The features of this gate-drive chopping
mode can be controlled by the PWMGATE Register. There is an
8-bit value within the PWMGATE Register that directly controls
the chopping frequency. In addition, high frequency chopping
can be independently enabled for the high side and the low side
outputs using separate control bits in the PWMGATE Register.
The PWM generator is capable of operating in two distinct modes:
single update mode or double update mode. In single update
mode, the duty cycle values are programmable only once per
PWM period, so that the resultant PWM patterns are symmetrical
about the midpoint of the PWM period. In the double update mode,
a second updating of the PWM duty cycle values is implemented
at the midpoint of the PWM period. In this mode, it is possible
to produce asymmetrical PWM patterns that produce lower
harmonic distortion in three-phase PWM inverters. This technique
also permits the closed-loop controller to change the average
voltage applied to the machine winding at a faster rate, allowing
wider closed-loop bandwidths to be achieved. The operating
mode of the PWM block (single or double update mode) is
selected by a control bit in MODECTRL Register.
The PWM generator of the ADMCF340 also provides an internal
signal that synchronizes the PWM switching frequency to the A/D
operation. In single update mode, a PWMSYNC pulse is produced
at the start of each PWM period. In double update mode, an
additional PWMSYNC pulse is produced at the midpoint of each
PWM period. The width of the PWMSYNC pulse is programmable
through the PWMSYNCWT Register.
The PWM signals produced by the ADMCF340 can be shut
off in a number of different ways. First, there is a dedicated
asynchronous PWM shutdown pin, PWMTRIP, which when
brought low, instantaneously places all six PWM outputs in the
OFF state. In addition, PWM shutdown is initiated when the
voltage on any of the three I
thresholds (high or low). Because these two hardware shutdown
mechanisms are asynchronous, and the associated PWM disable
circuitry does not use clocked logic, the PWM will shut down
even if the DSP clock is not running. The PWM system may also
be shut down from software by writing to the PWMSWT Register.
Status information about the PWM system of the ADMCF340
is available to the user in the SYSSTAT Register. In particular,
REV. 0
SENSE
input pins exceeds the trip
–13–
the status of PWMTRIP is available, as well as a status bit that
indicates whether operation is in the first half or the second half
of the PWM period.
A functional block diagram of the PWM controller is shown in
Figure 6. The generation of the six output PWM signals on pins
AH to CL is controlled by four important blocks:
• The three-phase PWM timing unit, that is the core of the
• The output control unit allows the redirection of the outputs
• The GATE drive unit provides the high chopping frequency
• The PWM shutdown controller manages the three PWM
• The PWM controller is driven by a clock at the same frequency
Three-Phase Timing Unit
The 16-bit three-phase timing unit is the core of the PWM
controller and produces three pairs of pulsewidth modulated
signals with high resolution and minimal processor overhead.
There are four main configuration registers (PWMTM, PWMDT,
PWMPD, and PWMSYNCWT) that determine the fundamental
characteristics of the PWM outputs. In addition, the operating
mode of the PWM (single or double update mode) is selected by
Bit 6 of the MODECTRL Register. These registers, in conjunction
with the three 16-bit duty cycle registers (PWMCHA, PWMCHB,
and PWMCHC), control the output of the three-phase timing unit.
PWM Switching Frequency: PWMTM Register
The PWM switching frequency is controlled by the PWM
period register, PWMTM. The fundamental timing unit of
the PWM controller is T
CLKOUT frequency (DSP instruction rate). Therefore, for a
20 MHz CLKOUT, the fundamental time increment is 50 ns.
The value written to the PWMTM Register is effectively the
number of T
required PWMTM value is a function of the desired PWM
switching frequency (f
Therefore, the PWM switching period, T
PWM controller, generates three pairs of complemented and
dead-time-adjusted center-based PWM signals.
of the three-phase timing unit for each channel to either the
high side or low side output. In addition, the output control
unit allows individual enabling/disabling of each of the six
PWM output signals.
and its subsequent mixing with the PWM signals.
shutdown modes (via the PWMTRIP Pin, the analog block, or
the PWMSWT Register) and generates the correct RESET
signal for the Timing Unit.
as the DSP instruction rate, CLKOUT, and is capable of gener-
ating two interrupts to the DSP core. One interrupt is generated
on the occurrence of a PWMSYNC pulse, and the other is
generated on the occurrence of any PWM shutdown action.
CK
PWMTM
clock increments in half a PWM period. The
T
S
PWM
= ×
2
CK
) and is given by:
=
PWMTM T
= 1/f
2
f
CLKOUT
×
f
CLKOUT
PWM
×
=
S
, can be written as:
where f
CK
ADMCF340
f
f
CLKIN
PWM
CLKOUT
is the

Related parts for admcf340