UCD3138 is a digital power supply controller from Texas Instruments offering superior levels of integration
and performance in a single chip solution targeting high-performance isolated power supply applications.
At its core are the digital control loop peripherals, also known as Digital Power Peripherals (DPP) that are
used for controlling the high-speed voltage/current loops, and a ARM7TDMI-S microcontroller (32-bit,
31.25MHz) that performs real-time monitoring, communication and configuration of peripherals. Each DPP
is capable of implementing a high speed digital control loop by employing a dedicated, high-speed Error
Analog to Digital Converter (EADC), a PID based 2 pole–2 zero digital compensator and digital pulse
width modulator (DPWM) outputs with 250-ps pulse width resolution. The device also contains 12-bit,
267ksps general purpose ADC with up to 14 channels, timers, interrupt control, JTAG debug and PMBus
& UART communications ports. In terms of memory, UCD3138 offers 32KB of program flash, 2kB of data
flash, 4KB RAM and 4KB of ROM.
1.1Scope of This Document
For the most up to date product specifications please consult the UCD3138 Device datasheet (SLUSAP2)
available at www.ti.com.
Chapter 1
SNIU028A–February 2016–Revised April 2016
Introduction
1.2A Guide to Other Documentation for all Members of UCD3138 Family of Products
All members of UCD3138 family of Controllers share the same core functions and features. But each one
of these devices also offers some unique abilities that may not exist in the other members of the family.
The following table is arranged in order to direct you to the right manual for a specific device of your
interest.
A downloading link is provided at the intersection only if the specific manual is needed for certain device.
The description of modules and peripherals in UCD3138 family of controllers are explained in 3 major
manuals and several complimentary/migration manuals.
The following table is arranged in order to direct you to the right manual for detailed information regarding
a specific module, peripheral or function that you are seeking.
GLBIO(Global IO), IOMUX, Current
Sharing, temperature sensor,
PKG_ID (Package identification)
Low res. PWM, Watchdog, capture,
compare
CIMSLUU994SLUUB54
Flash Interlock key, PFLASH,
DFLASH
Software reset, Exception status,
Clock Control (M_DIV_RATIO), DEV
(device identification)
Programmer’s
Manual
SLUU995
SLUU995
SLUU995SLUUB54
SLUU995
SLUU995SLUUAD8SLUUB54
SLUU996SLUUAD8SLUUB54
SLUU996
SLUU994SLUUAD8SLUUB54
SLUU994
SLUU994
SLUU994SLUUAD8SLUUB54
UCD3138064
Programmer's
Manual
UCD3138A64/
UCD3138128
Programmer’s
Manual
UCD3138A
Programmer's
Manual
The simplest configuration of the Digital Power Peripherals highlighting the key blocks involved in loop
control is shown below:
The Error ADC (in the Front End) accepts a differential voltage signal as an input. It measures the
difference between this input and a digitally controlled reference voltage and generates a digital error
output. It passes this digital error information to the Filter. The Error ADC (or EADC) is a specialized high
speed, high resolution ADC with a small dynamic range, optimized for power supply error measurement.
The Filter takes the error signal and passes it through a PID based digital filter which compensates for the
characteristics of the external loop. This filter can be dynamically reprogrammed for changing power load
source, and circuit characteristics. It also offers non-linear response capability for better handling of
transients.
A Guide to Other Documentation for all Members of UCD3138 Family of Products
The output of the compensator is passed to a Digital PWM (DPWM) generator. The DPWM has two
outputs, which can be used in many different ways. There are modes for synchronous rectification,
multiple phases, various bridge topologies, and LLC configurations. In addition to the 2 DPWM outputs,
the DPWM has other signals which are used externally and internally. These include:
•Frame start – start of a switching cycle
•Sample Trigger – signals Front end to take a sample
•Sync out – signals another DPWM to start a frame
•Sync in – a signal to this DPWM to start a frame
•Fault signals – signal the DPWM to take various fault actions
These signals will be covered in much more detail in Chapter 2.
The peripherals can be run tied together as shown above, or they can be used in different groupings and
interconnections, not shown in the picture above. For example, the DPWM can be used to trigger the Error
ADC, which will trigger the Filter at the end of its conversion.
The UCD3138 device supports multiple sets of the Digital Power Peripherals affording the ability to control
upto 3 feedback loops (voltage or current) and drive 8 outputs simultaneously. To inter-connect all the
DPPs, there is a large module called the Loop Mux. This permits a high degree of flexibility in DPP
configuration. Any Front End can be connected to any Filter, and any Filter output can be connected to
any DPWM. Additionally, information can be passed between the peripherals. For example, the output of
one Filter (eg. controlling a slow Voltage loop), can contribute to the reference of another Front End (eg.
monitoring a fast current loop) and enable implementation of nested loops (such as in Average Current
mode control).
In addition, the DPPs in UCD3138 provide other modules and functions for power supply and control.
These include:
•Fault Handling
•Cycle by Cycle Current Limit
•Constant Power/Constant Current
•Ramp up/Ramp Down
•Peak Current Mode control
and so on.
There is also a module called Fault Mux which connects fault detection circuitry outputs to control inputs,
primarily on the DPWMs, to customize fault handling and recovery.
This documentation provides information about the DPP modules in UCD3138, starting with a detailed
description, continuing with some configuration examples, and ending with a reference section which lists
each bit field in each DPP module.
The DPWM Module is probably the most complex and central of the DPPs. It takes the output of the Filter
and converts it into the correct PWM output for many power supply topologies. Each DPWM module has
two output pins – DPWMxA and DPWMxB (x=0, 1, 2 & 3). The DPWM provides for programmable dead
times and cycle adjustments for current balancing between phases. It controls the triggering of the EADC.
It can synchronize to other DPWMs or to external sources. Alternately, it can provide synchronization
information to other DPWMs or to external recipients. The DPWM can also be synchronized to external
devices using the SYNC pin as either an input or an output. In addition, it interfaces to several fault
detection circuits. The response to these faults is part of the DPWM function.
The picture below illustrates an overall view of a single DPWM block, which is composed of many different
individual modules, through which the signals propagate:
DPWM Block Diagram
•The Timing Generation Module outputs 3 DPWM signals (DPWMx_T, x=A, B, C), as well as many
other signals for other modules. It is the section where the filter output is translated into pulse widths
and sometimes into the period.
•The Fault Handling Module is next. It shuts off the DPWM signals if a fault occurs. After the DPWM
signals come from the Fault Module (DPWMx_F, x=A, B, C), they are sent to other DPWM Modules.
•The Edge Generation and Intra Mux modules can combine signals from several DPWMs to generate
new signals (DWMx_E, DPWMx_I, x=A, B, C).
The notation of DPWMx_T, DPWMx_F (where x=A, B, C) etc is very useful here to understand the origin
and relationship between the signals. For example DPWM2A_F may have no relationship at all to
DPWM2A_I.
Many topologies use neither the DPWMC signal nor Edge Generation and Intra Mux modules. The default
is for these modules to just pass signals through unchanged. However certain topologies such as Phase
Shifted Full Bridge (PSFB) use both modules as well as DPWMC signal.
These diagrams merely illustrate the signal propagation through the various modules in the DPWM and do
not show the configuration logic which controls how each module works and which can dynamically
reconfigure the DPWM between switching cycles.
Figure 2-2 shows a block diagram of just the Timing Module illustrating the data, signals and main
elements involved (once again, the real logic of the Timing Module is not illustrated here).
2.2Introduction to DPWM (DPWM Multi-Mode, Open Loop)
The DPWM is based on a DPWM counter, which counts up from 0 to a period value, and then is reset and
starts over again. The counter can also be reset by a sync signal, either from the SYNC pin, or from
another DPWM.
The DPWM logic causes transitions in many digital signals when the period counter hits the target value
for that signal. In the Timing Module block diagram shown above, this is functionality is represented by a
digital comparator.
The DPWM has a basic 250 MHz clock, giving a resolution of 4 nanoseconds. 15 other 250 MHz clocks
are generated spaced 250 picoseconds apart. Output pulse widths and pulse spacing are controlled by
these clocks, giving a resolution of 250 picoseconds. The edges generated by these clocks are hence
referred to as “High Resolution” in the illustrations throughout this section.
Most of the signals out of the DPWM are fairly simple. The only complex signals are DPWMA and
DPWMB. These vary depending upon the power supply topology and are the most important signals
coming out of the DPWM.
The DPWM has many modes to support different topologies. These are selected by a mode bit field in a
DPWM control register. The “Multi mode, Open loop” mode is used to introduce the DPWM here, while the
other DPWM modes are described in subsequent sections.
Figure 2-3 illustrates most of the signals involved in the DPWM in a mode known as “Multi mode, Open
loop”. Open loop means that the DPWM is controlled entirely by its own registers, not by the filter output.
In other words, the power supply control loop is not closed. This mode is used for introducing the DPWM
because there is a very simple correlation between DPWM register values and signal timing.
The Sample Trigger signals are used to trigger the Front End to sample input signals. The Blanking
signals are used to blank fault measurements during noisy events, such as FET turn on and turn off. This
prevents false detection of faults caused by noise. They only affect the Cycle By Cycle (CBC) module.
Other faults are not blanked.
Note that Sample Trigger 1 and 2, Blanking A and B, and Phase Trigger are shown at logical locations for
this specific mode, but they can be placed anywhere within the period.
Note that Sample Trigger 1 and 2, Blanking A and B, and Phase Trigger are shown at logical locations for
this specific mode, but they can be placed anywhere within the period.
Cycle Adjust A can be used to adjust pulse widths on individual phases of a multi-phase system. This can
be used if current balancing is necessary, for example. The Adaptive Sample Triggers can be used to
sample in the middle of the on-time (Adaptive Sample Trigger B - for an average output during on-time), or
at the end of the on-time (Adaptive Sample Trigger A - to minimize phase delay). The Adaptive Sample
Register provides an offset from the center or end of the on-time for DPWM signal from the chip. This can
compensate for external delays, such as FET and gate driver turn-on times.
The Blanking signals are used to disable the CBC fault signal during noise. Generally the noise is caused
by DPWM edges. The Blanking registers hold fixed values, so they are easiest to use with fixed edges,
rather than with edges that change dynamically. So in this case, the rising edge of DPWM A and the
falling edge of DPWM B are easy to provide blanking for. In this mode, both blanking times act on the
falling edge of A, since this is what the Cycle By Cycle logic works on.
Cycle Adjust B has no effect in Normal Mode.
www.ti.com
CAUTION
In Normal Mode, the DPWM calculated rising edge of DPWMB must not be
permitted to exceed DPWM Event 4. This can be done either with a clamp on
the filter output, or by using an appropriate KCOMP value in the filter output
multiply operation. If this is not done, the DPWMB on time may overlap the
DPWMA on time, causing shoot through
In most modes, it is possible to synchronize multiple DPWM modules using the phase shift signal. The
phase shift signal has two possible sources. It can come from the Phase Shift Register or from the Filter
Duty value.
The Phase Shift Register provides a fixed value, which is useful in simple multiphase systems such as
interleaved PFC.
When the Filter Duty is the source, the changes in the filter output cause changes in the phase
relationship of two DPWM modules. This is useful for phase shifted full bridge topologies if voltage mode
control is desired rather than peak current mode.
Multi Mode is used for systems where each phase has only one driver signal requirement. In this mode,
each DPWM peripheral can drive two phases with the same pulse width, but with a time offset between
the phases, and with different cycle adjusts for each phase.
Event 2 and Event 4 are not relevant in Multi mode.
As shown in the illustration, DPWMA is designed to turn on close to the start of the period. It can turn off
any time until the end of the period, achieving essentially 100% on-time. DPWMB is designed to start later
in the period to support a multi-phase system. Therefore DPWMB is designed to cross over the period
boundary safely, so long as it does not ever move into or out of an event update window. This makes
100% pulse width operation possible for DPWMB as well.
Since the rising edge on DPWMB is also fixed, Blanking B Begin and End can be used for blanking this
rising edge. In this mode, Blanking A works only on the falling edge of A, and Blanking B works only on
the falling edge of B.
And, of course, Cycle Adjust B is usable on DPWM B.
There is no restriction preventing the two signals from overlapping each other. The diagram shows the two
signals 180 degrees out of phase, but this is not required. They could be 90 degrees, 60 degrees or
whatever offset is desired.
2.6DPWM Resonant Mode
The resonant mode operation depends on the status of the RESON_DEADTIME_COMP_EN bit. Setting
the RESON_DEADTIME_COMP_EN bit provides for a symmetrical waveform where DPWMA and
DPWMB have the same pulse width. As the switching frequency changes, the dead times between the
pulses remain the same. This mode is ideal for the LLC topology.
Clearing the RESON_DEADTIME_COMP_EN bit provides a mode where the pulse widths are the same
and the duty cycle percentage is constant as the period changes. This means that as the frequency
increases, the dead times shrink proportionally.
The equations for this mode are designed for a smooth transition from PWM mode to Resonant mode, as
described in Section 2.10.1. Here is a diagram of this mode:
As seen later, the Filter module has two outputs, Filter Duty and Filter Period. In the Resonant mode, the
Filter is configured so that the Filter Period is twice the Filter Duty. With zero dead times, each DPWM pin
would be On for half of the period. For dead time handling, the average of the two dead times is
subtracted from the Filter Duty for both DPWM pins. Therefore both pins will have the same on-time, and
the dead times will be fixed regardless of the period. The only edge which is fixed relative to the start of
the period is the rising edge of DPWM A. Blanking A and Blanking B both work only on DPWMA.
2.7Triangular Mode
Triangular mode provides a very stable phase shift in interleaved PFC and similar topologies. In this case,
the PWM pulse is centered in the middle of the period, rather than starting at one end or the other. In
Triangular Mode, only DPWM B is available. Here is a diagram for Triangular Mode:
All edges are dynamic in triangular mode, so fixed blanking is not that useful. The adaptive sample trigger
is not needed. It is very easy to put a fixed sample trigger exactly in the center of the On-time, because
the center of the on-time does not move in this mode. Both Blanking A and Blanking B are applied to
DPWMB.
2.8DPWM Leading Edge Mode
Leading edge mode is very similar to Normal mode, reversed in time. The DPWM A falling edge is fixed,
and the rising edge moves to the left, or backwards in time, as the filter output increases. The DPWMB
falling edge stays ahead of the DPWMA rising edge by a fixed dead time. Here is a diagram of the
Leading Edge Mode:
Sync FET edge on DPWM B controlled by Ramp logic and/or Integrated Diode equation
Stays within dead time limits for Normal Mode
DaDa
Db
Db
www.ti.com
As in the Normal mode, the two edges in the middle of the period are dynamic, so the fixed blanking
intervals are mainly useful for the edges at the beginning and end of the period.
2.9Sync FET Ramp and IDE Calculation
For many topologies, it is useful to replace diodes with synchronous rectification (SR), a concept also
known as Ideal Diode Emulation (IDE). In continuous conduction mode, the SR FET control is simple,
because it can be turned on for the entire off time of the primary FET, minus a dead time. This is handled
perfectly by Normal mode. The Sync FET Ramp and IDE calculation are only available in Normal mode.
They are not compatible with the Cycle by Cycle Fault module.
However, in discontinuous mode, the SR FET needs to be turned off before the end of the period. The
UCD3138 hardware provides an automatic function to make this easier. In this case, the falling edge of
DPWMB is adjusted, as shown below:
Sync FET Ramp and IDE Calculation
Figure 2-10. SyncFET IDE (Normal Mode)
The digital hardware implements the equation Db= Da* Kd. The firmware measures Vin and Vout and
calculates Kd. For example, for a Buck topology, Kd= (Vin- V
FET, Dbis duty cycle of SR FET, Vinis input voltage and V
measures the slowly changing Vinand V
, and puts the calculated result into the Kdregister. The DPWM
out
out
is output voltage. The firmware periodically
out
hardware adjusts Dbevery switching cycle, maintaining proper IDE even during transients which cause
rapid changes in Da.
When starting up in prebias mode i.e. with a voltage already present on the outputs, it is difficult to
accomplish precise diode emulation (IDE). One solution to this issue is to ramp the voltage up to the
target without synchronous rectification (SR), and then to activate SR after the voltage is regulated. When
activating or de-activating SR, in order to avoid glitches in the regulated voltage, it is best to gradually
increase/decrease the Sync FET on-time. The UCD3138 provides what is termed as Sync FET SoftOn/Soft-Off (ramp) logic to accomplish this. This is documented in Section 3.3.8. The Ramp module in the
Front End is used for this function. It will ramp up to either the limits imposed by normal mode, or to the
limits imposed by the IDE logic.
With digital IDE enabled, as the system transitions from discontinuous mode into continuous conduction
Mode (sync FET is on until end of the period) the IDE will stop reducing the Sync FET pulse width. This is
because the reverse conduction through the Sync FET will keep Da and Db the same. It is necessary to
detect DCM (Discontinuous Conduction Mode) current levels in the IDE approach. Once these levels are
detected, the Sync FET should be ramped down, and then ramped back up with IDE enabled.
Automatic Mode switching enables the DPWM module to switch between modes automatically, with no
firmware intervention. This is useful to increase efficiency and power range and also to achieve smooth
system performance (such as monotonic start-up) in certain topologies. An example of mode switching in
LLC topology is provided next.
2.10.1 Resonant LLC Example
In Resonant LLC topology, three modes are used. At the lowest power, a pulse width modulated mode
(Multi Mode) is used. As power increases and frequency decreases, Resonant mode is used. As the
frequency gets still lower, resonant mode is still used, however the Sync FET driver changes so that the
on-time is fixed and does not increase (SR Pulse Width is clamped). Here are the waveforms for the LLC:
Figure 2-11. Resonant LLC implementation in UCD3138 with Automatic Mode Switching
www.ti.com
2.10.2 Mechanism for Automatic Mode Switching
Many of the configuration parameters for the DPWM, including the mode, are in DPWM Control Register
1. For automatic mode switching, some of these parameters are duplicated in the Auto Config Mid and
Auto Config High registers.
If automatic mode switching is enabled, the Filter Duty signal is used to select which of these three
registers is used. There are 4 registers which are used to select the points at which the mode switching
takes place. They are used as shown below:
As shown, the registers are used in pairs for hysteresis. The transition from Control Register 1 to Auto
Config Mid only takes place when the Filter Duty goes above the Low Upper threshold. It does not go
back to Control Register 1 until the Low Lower Threshold is passed. This prevents oscillation between
modes if the filter duty is close to a mode switching point. In some applications it is necessary to make the
values the same, disabling hysteresis. This has to be done to make the DPWM signals from the two
modes match properly at the mode switching point.
Figure 2-12. Mechanism for Automatic Mode Switching in UCD3138
The UCD3138 has sophisticated hardware for generating complex waveforms beyond the simple DPWMA
and DPWMB waveforms already discussed. The DPWMC, the Edge Generation Module, and the IntraMux
play a key role in delivering this capability.
DPWMC is a signal inside the DPWM logic. It goes high at the Blanking B begin time, and low at the
Blanking B end time.
The Edge Gen module takes DPWMA and DPWMB from its own DPWM module, and the next one, and
uses them to generate edges for two outputs. For DPWM3, the DPWM0 is considered to be the next
DPWM. Each edge (rising and falling for DPWMA and DPWMB) has 8 options which can cause it. The
options are:
•0 = DPWM(n) A Rising edge
•1 = DPWM(n) A Falling edge
•2 = DPWM(n) B Rising edge
•3 = DPWM(n) B Falling edge
•4 = DPWM(n+1) A Rising edge
•5 = DPWM(n+1) A Falling edge
•6 = DPWM(n+1) B Rising edge
•7 = DPWM(n+1) B Falling edge
The Edge Gen is controlled by the DPWMEDGEGEN register. It also has an enable/disable bit.
The IntraMux is controlled by the Auto Config registers. The IntraMux takes signals from multiple DPWMs
and from the Edge Gen. It can be programmed to route these signals to the DPWMA and DPWMB
outputs. This is useful for complex topologies like Phase Shifted Full Bridge, especially when they are
controlled with automatic mode switching. It is disabled by setting the Intramux to Pass Through mode for
each of the DPWM signals, A and B. If the Intra Mux is enabled, high resolution must be disabled.
•8 = DPWMC(n+3)
Here is a list of the IntraMux modes for DPWMB:
•0 = DPWMB(n) pass through (default)
•1 = Edge-gen output, DPWMB(n)
•2 = DPWNC(n)
•3 = DPWMA(n) (Crossover)
•4 = DPWMA(n+1)
•5 = DPWMB(n+1)
•6 = DPWMC(n+1)
•7 = DPWMC(n+2)
•8 = DPWMC(n+3)
The DPWM number wraps around just like the Edge Gen unit. For DPWM4, DPWM(n+1) is DPWM0,
DPWM(n+2) is DPWM1, and so on.
Note that the Fault logic affects the Fault module, which is before the Edge Gen and IntraMux units (refer
to Figure 2-1). The effect of a fault must be calculated taking into account the impact of the Edge Gen and
IntraMux units.
Also the GPIO_A_EN & GPIO_B_EN bits inside the DPWMCTRL1 register affect the signal state before
the IntraMux unit. So if these bits are meant to be used to turn the DPWM output off, the bits in the
original DPWM are supposed to be altered. And not the bits in the DPWM module that the outputs are
redirected through.
Time Resolution of Various DPWM Registers
2.12 Time Resolution of Various DPWM Registers
Different registers in the DPWM block have different time resolutions. Pulse widths are generally
adjustable in nominal 250 picosecond steps, while period and phase shift are adjustable in 4 nanosecond
steps. The sample trigger is adjustable in 16 nanosecond steps.
Table 2-1. DPWM Register Time Resolutions in UCD3138
RegisterResolutionNumber of BitsBit Alignment
Phase Trigger,
Period,
Event1,
Blanking A and B Begin
Blanking A and B End
Minimum Duty Cycle Low
Minimum Duty Cycle High
Counter Preset
Sample Trigger 1 and 216 ns12Standard
Event2,3,4250 ps18Standard
Cycle Adjust A and B250 ps16 (signed)Standard
Adaptive Sample16 ns12 (signed)16 ns LSbit
Table 2-1. DPWM Register Time Resolutions in UCD3138 (continued)
RegisterResolutionNumber of BitsBit Alignment
Resonant Duty4 ns.
On the UCD3138, all these registers are aligned so that their bit fields match the scaling, except for the
Resonant Duty and Adaptive Sample register. All the registers are unsigned, except for the 2 adjust
registers, Resonant Duty and Adaptive Sample register, which are signed to permit positive or negative
adjustment.
The Resonant Duty register is used in the UCD3138 LLC reference firmware (implemented in
UCD3138LLCEVM-028 EVM) as a 14 bit unsigned register. It can also be used as a 16 bit signed register.
See Section 2.21.
This means that the Phase Trigger, Period, and Event1 registers ignore the 4 least significant bits, as
shown below:
Table 2-2. DPWM Period Register (DPWMPRD)
All other 4 ns registers with standard alignment are the same.
Bit Number17:43:0
Bit NamePRDRESERVED
AccessR/WDefault00_0011_0100_00010000
16 (signed) or
14 (unsigned)
www.ti.com
4 ns LSbit
The Sample Trigger registers ignore the 6 least significant bits, as shown here:
Bit NameSAMPLE_TRIGGERRESERVED
AccessR/WDefault0000_0010_000000_0000
Only the Event 2, 3, and 4 registers use all 18 bits of the field, as shown below.
Table 2-4. DPWM Event 2 Register (DPWMEV2)
Event 3 and 4 are the same, Cycle Adjust registers
only go to bit 15
Bit Number17:0
Bit NameEVENT2
AccessR/W
Default00_0000_0001_0110_0011
This means that in all these registers, each bit has the same weight in terms of time. This makes
configuration simpler, since all register loads can use the same time base.
To use this feature, use the .all extension on the register structure. The bit fields do not include the
ignored bits.
All of these C statements put 10 microseconds into the respective registers. Note that the “Low” resolution
clock is at 4 nanoseconds, and “High” resolution is at 250 picoseconds So the corresponding numbers for
the registers are 2,500 and 40,000 respectively.
Dpwm0Regs.DPWMPRD.all = 40000; //includes 4 unused least significant bits
Dpwm0Regs.DPWMPRD.bit.PRD = 2500; //only puts in PRD bit field = 40000/16
Dpwm0Regs.DPWMEV1.all = 40000; //includes 4 unused bits
Dpwm0Regs.DPWMEV1.bit.EVENT1 = 2500; //EV1 is the only low resolution event register
Dpwm0Regs.DPWMEV2.all = 40000; //EV2 is high resolution, so
Dpwm0Regs.DPWMEV2.bit.EVENT2 = 40000; //both forms are the same
Dpwm0Regs.DPWMSAMPTRIG1.all = 40000; //includes 6 unused lsbs
Dpwm0Regs.DPWMSAMPTRIG1.bit.SAMPLE_TRIGGER = 625;
//needs to be divided by 64 for 6 bits
The adaptive sample and resonant duty registers do not follow the standard bit alignment. Their least
significant bits are worth 16 nanoseconds and 4 nanoseconds respectively.
2.13 PWM Counter and Clocks
The PWM counter is the center of the DPWM logic. There is no register that can be read to give the value
of the PWM counter, but most events are triggered by it. In all modes it is allowed to count up to the
period value, and then restarted at zero. Since it restarts at zero, the period is technically equal to
PERIOD + 1. So in the example above, the number should really be 2499. Generally the error is
unimportant. In all modes but the resonant modes, the period is a fixed value. In the resonant modes, the
period comes from the output of a Filter.
The PWM counter is also restarted by the receipt of a sync signal (if sync is enabled), as shown above in
Section 2.4.
Sync signals received exactly at the end of the period run very smoothly. Sync signals received at other
times during the period will restart the counter and the period. The effects of this should be taken into
consideration for each application.
Even though the period register has only 14 bits, the PWM counter effectively has 18 bits. Each 4
nanosecond period is subdivided into 16 intervals, nominally 250 picoseconds long. The extra 4 bits
representing these intervals are called “high resolution bits”.
PWM Counter and Clocks
2.14 DPWM Registers - Overview
This section discusses each DPWM register, with examples of their use where appropriate. In addition, it
interacts with many other peripherals, parts of which are also described below.
2.15 DPWM Control Register 0 (DPWMCTRL0)
The DPWM Control Register 0 is one of 3 DPWM control registers which configure the DPWM. All 3
registers control a variety of DPWM functions. It is not possible to draw a clear dividing line between the 3
registers.
2.15.1 DPWM Auto Config Mid and Max Registers
There are two other registers – DPWMAUTOMAX and DPWMAUTOMID, which have many of the same
bits as control register 0.
These two Auto Mode Switching (AMS) registers are used in topologies where the DPWM mode changes
automatically as the filter output changes, such as resonant and phase shifted full bridge. See
Section 2.10.2 on the auto switch level registers for more information on mode switching.
Not all bits in DPWMCTRL0 are duplicated in the auto registers. The bits that occur only in DPWMCTRL0
are used for all modes. Bits were selected based on mode switching needs for LLC and PSFB topologies.
The following bitfield descriptions tell whether each field occurs in the auto mode switching registers.
2.15.2 Intra Mux
The Intra Mux bit fields, PWM_A_INTRA_MUX, and PWM_B_INTRA_MUX, enable signals from different
sources to be multiplexed into the 2 DPWM outputs, A and B. This functionality is used in full and half
bridge topologies. The default value for this bit field, 0, causes normal functionality, with the standard
DPWM waveforms as described in the mode descriptions above section to appear on the DPWMA and
DPWMB pins. For details of the Intra Mux, see Section 2.11.
There are several enable bits related to cycle by cycle current limit:
DPWMCTRL0 contains:
CBC_PWM_C_EN
CBC_PWM_AB_EN
CBC_ADV_CNT_EN
CBC_SYNC_CUR_LIMIT_EN
CBC_BSIDE_ACTIVE_EN
All of these bits, except for CBC_BSIDE_ACTIVE_EN also occur in the AMS registers.
The first two, CBC_PWM_C_EN and CBC_PWM_AB_EN simply enable cycle by cycle current limit for
their respective signals. In all modes, CBC_PWM_EN has an independent effect on DPWMC.
The other bits have no effect on DPWMC The other three bits have different effects in different modes.
Here are the effects:
Normal Mode
In normal mode, a CBC event will cause DPWMA to go low before the time dictated by the CLA. The dead
time for DPWMB will be preserved, so the rising edge of DPWMB will be moved forward by the same
amount as the falling edge of DPWMA.
There are only two options for setting the CBC bits in normal mode:
1. All cleared, no CBC.
2. Set both CBC_PWM_AB_EN and CBC_ADV_CNT_EN to get CBC
CBC_BSIDE_ACTIVE_EN has no effect. Normal mode has some support for negative dead times, as
does the CBC logic. Even negative dead times will be preserved. As seen in Figure 2-14, if there is a
negative dead time, the minimum pulse width on DPWMA will be equivalent to the dead time. To preserve
a negative dead time, the CBC will trigger a rising edge on DPWMB. After the dead time is expired, then
DPWMA will fall.
With a positive dead time, of course, DPWMA will fall with the CBC event, and DPWMB will rise after the
dead time:
Even if DPWMB is being used as a GPIO, it is important to program Event 3 for dead times with CBC.
Resonant/Multi Mode
In resonant/multi mode, the systems are often symmetrical. In this case, DPWMB may need to be
controlled by the Cycle by Cycle Fault logic as well. Sometimes a shortened on time on one DPWM pin
needs to be followed by an equal length on time on the other DPWM pin to prevent an offset from building
up in a capacitor or inductor. In this case, it is possible to enable duty cycle matching in these two modes.
If DPWMA or DPWMB is cut short by a CBC event, the next pulse, on the other DPWM pin, will also be
shortened to the same length.
Here are the states for resonant and multi modes:
•All cleared - no CBC
•Only CBC_PWM_AB_EN set - CBC on A and B, no duty cycle matching
•CBC_PWM_AB_EN and CBC_ADV_CNT_EN set, CBC_BSIDE_ACTIVE_EN not set - CBC on A only
and B duty cycle matches to A
•All three set - CBC on A and B, duty cycle matching both ways
Table 2-5. Truth Table
CBC_PWM_AB_ENCBC_ADV_CNT_ENCBC_BSIDE_ACTIVE_ENCBC ACBC BDuty Match
CBC_SYNC_CUR_LIM_EN is used to control the slave sync. If this bit is set, the slave sync is advanced
during current limit. This is not used in any topology configuration at this time. If this bit is set, the sync out
pulse from the DPWM will occur if the CBC fault occurs. If the CBC fault does not occur during a period,
the sync pulse will occur according to the normal setting of the sync control bit fields.
For more information on cycle by cycle current limit, refer to Chapter 6.
2.15.4 Multi Mode On/Off
The MULTI_MODE_CLA_A_OFF and MULTI_MODE_CLA_B_OFF bits dictate which calculation is used
for each DPWM pin in multi mode only. In other modes they should not be set. If the bit is cleared, the ontime of the DPWM pin is controlled by the Filter output. If the bit is set, then the on-time is controlled by
the Event registers.
The AMS registers only have MULTI_MODE_CLA_B_OFF, they do not have
MULTI_MODE_CLA_A_OFF.
2.15.5 Minimum Duty Mode
The MIN_DUTY_MODE bits select how the DPWM handles minimum duty cycle limits.
•0 Default - Filter output is passed directly through to the DPWM
•1 - Filter value passed through if above minimum. If below minimum, no pulse from DPWM
•2 - Filter value passed through if above minimum. If below minimum, DPWM pulse width = minimum
value
There are two registers setting minimum duty and hysteresis:
DPWMMINDUTYLOW
DPWMMINDUTYHI
The Low register sets the point at which the minimum duty mode will take effect as the duty drops. In
mode 2, it also sets the minimum duty.
The High register sets the point at which minimum duty mode is exited as the duty goes up.
These bits are not duplicated in the AMS registers.
These two graphs show modes 1 and 2 with PMMINDUTYLOW at 30, and DPWMMINDUTYHI at 70.
The MASTER_SYNC_CNTL_SEL bit selects where the sync output of the DPWM channel comes from.
The default value, 0, causes the sync delay to come from the Phase Trigger register. This is useful for
systems that have fixed intervals between phases, such as interleaved PFC and hard switching full bridge.
See Section 2.4.
Putting a 1 into this bit causes the master sync output to be controlled by the Filter output.
This bit is duplicated in the AMS registers.
2.15.7 Master Sync Slave Enable
Setting the MSYNC_SLAVE_EN bit enables the DPWM channel to be slaved to the sync output of another
DPWM channel. This bit works together with the DPWMx_SYNC_SEL bits in the DPWMMUX register in
Chapter 5. The sample code below makes DPWM1 a slave to DPWM0:
LoopMuxRegs.DPWMMUX.bit.DPWM1_SYNC_SEL = 0; //DPWM1 is slave to DPWM0
Dpwm1Regs.DPWMCTRL0.bit.MSYNC_SLAVE_EN = 1; //enable slave mode for DPWM1
This bit is not duplicated in the AMS registers.
2.15.8 D Enable
Normally, the Filter Duty (D) is used to set the on-time of DPWM pins directly. In other words, OnTime =
D. The D_ENABLE bit can be used to make the OnTime = 1-D instead.
A default value (0) causes the output of the Filter to be used directly for DPWM output calculations. So in
multi mode, for example, the DPWMA and B on-times would increase as the Filter Duty increases.
If the D_ENABLE bit is set, however, the Filter Duty is subtracted from the period register. In this case, as
the Filter Duty increases from zero to full range, the on-time will decrease from 100% of the period to 0%
of the period.
This bit is not duplicated in the AMS registers.
www.ti.com
2.15.9 Resonant Mode Fixed Duty Enable
The RESON_MODE_FIXED_DUTY_EN bit only controls the duty cycle width in the resonant modes. With
the default (0) value, the duty cycle comes from the filter directly. This is for use above the lower resonant
frequency, Fmin, and provides a duty cycle that fills half the period minus a fixed dead time.
Setting this bit causes the pulse width to be derived from the Auto Switch High Upper Threshold Register.
This bit is generally only set for LLC for the Sync FETs in the mode where the output frequency is below
the lowest resonant frequency of the circuit. At this point any increases in pulse width are not beneficial,
so they are stopped. There is also a waveform showing the modes in Section 2.10.1.
This bit is duplicated in the AMS registers.
2.15.10 DPWM A and B Fault Priority
The PWM_A_FLT_POL and PWM_B_FLT_POL bits increase the flexibility of the DPWM by permitting
arbitrary output states for the DPWM pins in case of a fault. The values in these bits will also appear on
these pins when the DPWM is disabled. These values actually appear on the output of the Fault Module in
the DPWM. Therefore, if the IntraMux or Edge Generation units are used, the same value may not appear
on the output of the DPWM.
These bits do not affect the DPWM status after device reset. After reset, all DPWM pins are configured as
outputs and actively driven low.
These bits are not duplicated in the AMS registers.
The BLANK_A_EN and BLANK_B_EN bits are used for fault detection. They work with the blanking
registers – See Section 2.26 – to enable blanking for current limit detection. Without blanking, noise may
cause false Cycle By Cycle (CBC) fault detection.
These bits are not duplicated in the AMS registers.
2.15.12 DPWM Mode
The PWM_MODE bits select the mode for the DPWM. See Section 2.31 for the mode numbers, and
sections above for the descriptions of the various modes.
These bits are duplicated in the AMS registers.
2.15.13 DPWM Invert
The PWM_A_INV and PWM_B_INV bits invert the output of the DPWMA and DPWMB pins.
These bits do not affect the DPWM status after device reset however. After reset, all DPWM pins
configured as outputs which are actively driving low.
These bits are not duplicated in the AMS registers.
2.15.14 1.15.14 Filter Enable (CLA_EN)
In the past, the filter was called a Control Law Accelerator, so for historical reasons, the Filter Enable bit is
called CLA_EN. This bit, when set, causes the DPWM to take its input from a Filter. Otherwise, the
DPWM output comes from the DPWM registers only.
This bit is duplicated in the AMS registers.
The filter which controls each DPWM is selected by the DPWMx_FILTER_SEL bit in the DPWMMUX
register in the Loop Mux.
DPWM Control Register 0 (DPWMCTRL0)
2.15.15 DPWM Enable
The PWM_EN bit, when set enables the DPWM channel. If it is 0 (default), the DPWM outputs are set to
the value in the DPWM Fault Polarity bits (Section 2.15.10).
Note that if edge generation is enabled, the bits will be controlled by the edge gen logic. To make the bits
go to the desired values, it will be necessary to clear the EDGE_EN bit in DPWMEDGEGEN.
This bit occurs only in the Control 0 register, not in the AMS registers.
2.16 DPWM Control Register 1
Like DPWMCRTL0, the DPWMCTRL1 register contains a wide assortment of control bits for the DPWM.
2.16.1 Period Counter Preset Enable
The PRESET_EN bit adds flexibility for systems with multiple DPWM modules that have different period
starting times. It can be used to start up all DPWMs simultaneously, even if their periods do not start at
the same times. It can also be used for synchronizing these DPWMs.
Normally, the period counter is reset to zero by three events
1. DPWM ENABLE
2. Sync Received (slave mode enabled)
3. Counter reaches Period Register value
If PRESET_EN is enabled, this changes:
1. DPWM_ENABLE – Period Counter set to preset value
2. Sync Received (slave mode enabled) – Period Counter set to preset value
3. Counter reaches Period Register value – Period counter set to zero
The SYNC_FET_EN bit enables the Sync FET Ramp logic to take control of DPWM B. For more on the
Ramp logic, see Section 3.3.8. The Front End which provides the Ramp data is selected in the
DPWMMUX register in the Loop Mux. The following code enables Sync FET Ramp for DPWM0, and sets
up Front End 0’s Ramp Engine to provide the ramp source.
LoopMuxRegs.DPWMMUX.bit.DPWM0_SYNC_FET_SEL = 0;
//use ramp engine on Front End 03
Dpwm0Regs.DPWMCTRL1.bit.SYNC_FET_EN = 1; //enable sync FET ramp
The Sync FET Ramp logic ramps the pulse width of DPWMB up from a starting point to a width controlled
by Normal mode, or by the IDE function, if enabled. It only works in Normal mode.
2.16.3 Burst Mode Enable
Setting the BURST_EN bit enables burst (light load) mode for this DPWM. For more information on Light
load mode, see the light load section.
2.16.4 Current/Flux Balancing Duty Adjust
Setting the CLA_DUTY_ADJ_EN bit enables the Current Balancing logic to modify the input to the DPWM
so that current controlled by this DPWM can be balanced with the current controlled by another DPWM in
the same UCD3138. For more information, see the Current Balancing section.
2.16.5 1.16.5 Sync Out Divisor Selection
The SYNC_OUT_DIV_SEL bit field selects a divisor generating the sync out pulse on the external sync
out pin. It is only effective on the sync out, not on internal chip sync signals sent to other DPWMs.
The divisor has 4 bits, and a range from 1 to 16 for the divisor. The divisor = SYNC_OUT_DIV_SEL + 1.
So 0 in the bit field would give a divisor of 1, 1 gives a divisor of 2, and so on.
www.ti.com
2.16.6 FIlter Scale
The CLA_SCALE bits control shifting of the Filter Duty output before it is used by the DPWM. Shifts
available range from a 3 bit right shift to a 3 bit left shift. The Filter Period is not scaled by these bits.
The default value, 0, causes no shift. For the shift table, see Section 2.31.2.
This can be used in complex topologies where the same filter output is needed for different circuits at
different frequencies. It can also be used to change the overall gain of the Filter.
2.16.7 External Sync Enable
Setting the EXT_SYNC_EN bit causes the DPWM to use the Sync In pin as a source for Sync.
2.16.8 Cycle By Cycle B Side Active Enable
Setting the EXT_SYNC_EN bit causes the DPWM to use the Sync In pin as a source for Sync.
2.16.9 Auto Mode Switching Enable
The AUTO_MODE_SEL bit, when set, enables auto mode switching.
The EVENT_UP_SEL enables 4 different modes of DPWM Event Updating. The DPWM needs a period of
72 nanoseconds (nominal) to update its timing for the next period. During this period, it takes the latest
Filter outputs and any firmware changes to register values and recalculates the timing of the DPWM
signals. The time selected for update should NOT have any DPWM edges moving in or out of the
window.
If DPWM edges move in or out of the Event Update Window, those transitions
may be missed, leading to DPWM pulses longer or shorter than expected.
The modes are:
•0 - As soon as Filter calculation is done
•1 - At end of period (starts at end of period, and extends 72ns into start of new period)
•2 - At time set by sample trigger 2
•3 - At both End of Period and at time set by sample trigger 2
Note that all modes except for mode 1 make the Event Update timing dependent on the position of the
sample trigger. For most topologies, mode 1 is used, and dead times or minimum pulse widths are used to
keep moving edges out of the first 72nsec of the DPWM period. Please refer to the reference firmware
code provided with UCD3138 EVMs for specific guidance regarding each topology.
DPWM Control Register 1
CAUTION
2.16.11 Check Override
The CHECK_OVERRIDE bit, when set, overrides the internal DPWM checking. The DPWM checking will
prevent invalid placement of Event settings/period settings or invalid configurations.
Setting this bit may be necessary for some topologies.
2.16.12 Global Period Enable
The GLOBAL_PERIOD_EN bit, if set, enables the use of the Global Period register to provide the period
for this DPWM. It is intended for use with systems which use multiple DPWMs and have need for
frequency dithering. This makes it possible to change the frequency of multiple DPWMs at one location.
For more information, see 5.8 PWM Global Period Register (PWMGLBPRD).
2.16.13 Using DPWM Pins as General Purpose I/O
There are 6 bits in DPWMCTRL1 which can be used to make the DPWM pins into general purpose I/O
pins:
These bits take effect immediately.
•PWM_A_OE – 0 makes DPWMA into an output if enabled as a GPIO, 1 makes it an input
•PWM_B_OE – 0 makes DPWMB into an output if enabled as a GPIO, 1 makes it an input
•GPIO_A_VAL – Value put on DPWMA if it is an output
•GPIO_B_VAL – Value put on DPWMA if it is an output
GPIO_A_EN – 1 enables DPWMA as a GPIO
GPIO_B_EN – 1 enables DPWMB as a GPIO
In addition, there are 2 bits in the DPWMOVERFLOW register which are also used for GPIO:
•GPIO_A_IN – reports level on DPWM_A pin if used as input
•GPIO_B_IN – reports level on DPWM_B pin if used as input
There are 5 bits which all enable/disable High Resolution Mode in some way or another
•PWM_HR_MULT_OUT_EN – Set only for multi mode
•HIRES_SCALE (2 bits) – Sets resolution of DPWM high res block
•ALL_PHASE_CLK_ENA – enables all phases or only needed phases
•HIRES_DIS – disables high res logic
As a general rule, all can be disabled when high resolution is not possible, and all should be enabled
when high resolution is possible and required.
2.16.15 Asynchronous Protection Disable
The PWM_A_PROT_DIS and PWM_B_PROT_DIS bits disable asynchronous protection on their
respective pins. Please consult to the reference firmware code provided with UCD3138 EVMs for specific
guidance on whether to set these bits or not in the desired topology.
2.16.16 Single Frame Enable
The SFRAME_EN bit enables a single frame to be output from the DPWM. It is useful for putting out a
single pulse on the DPWM, and triggering a single Front End and Filter cycle. It can be used, for example,
when measuring input voltage on an isolated supply. To use Single Frame enable, first initialize the
DPWM module and set the SFRAME_EN bit, and enable the DPWM globally. To actually start the single
frame, set the PWM_EN bit. This will trigger a single frame.
www.ti.com
2.17 DPWM Control Register 2
The DPWMCTRL2 register, like the other 2 control registers, has a wide selection of bit fields.
2.17.1 External Synchronization Input Divide Ratio
The SYNC_IN_DIV_RATIO bit field has 4 bits, which are initialized to zero at reset. They set the divide
ratio for the synchronization both from the outside and from another DPWM. The divide ratio is the bit field
value plus 1. So 0 is divide by 1, 1 divide by 2, and so on.
2.17.2 Resonant Deadtime Compensation Enable
Setting the RESON_DEADTIME_COMP_EN bit enables a dead time adjustment to the CLA Duty signal
from the Filter. This compensation, which only has an effect in resonant mode, makes it possible to have
constant, fixed, symmetrical dead time in resonant mode for the full range of frequencies. Generally this is
the best configuration for LLC. If the bit is not set, the CLA Duty Signal is used without adjustment. This
leads to DPWMA putting out 50% Duty + Cycle Adjust A, and DPWMB putting 50% - dead time + Cycle
Adjust B, which cannot be made to yield a symmetrical signal on A and B over the frequency range for
LLC.
The FILTER_DUTY_SEL bit field has 2 bits, selecting from 3 modes. These modes select what value is
sent to the Resonant Duty input of the Filter Duty multiplicand multiplexer. For example, if
LoopMux.FILTERMUX.FILTER0_PER_SEL is set to 0, and the OUTPUT_MULT_SEL bits for Filter 0 are
set to 3, then the FILTER_DUTY_SEL will select the Filter Duty multiplicand. This value will be multiplied
by the output of the filter to scale it appropriately for the DPWM.
2.17.4 IDeal Diode Emulation (IDE) Enable for PWMB
Setting the IDE_DUTY_B_EN bit enables the digital IDE logic to take control of DPWM B. The IDE logic is
used to make sync FETs turn off at the perfect times, emulating an ideal diode (one with lower voltage
drop). See Section 2.9 for more details.
2.17.5 Sample Trigger 1 Oversampling
As mentioned earlier, the DPWM module generates signals to generate a sample trigger in the Error ADC
in the Front End. The DPWMs can also provide oversampling function in co-ordination with the sample
triggers. The SAMP_TRIG1_OVERSAMPLE bit field permits oversampling of 2, 4, and 8 samples in the
Front End. The samples are equally distributed in time, starting at the start of the period, and with the last
sample at the Sample Trigger 1 point.
The values are:
•0 – 1 sample at the sample trigger time.
•1 – 1 sample at 1/2 of the sample trigger time, and one at the sample trigger time
•2 – 4 samples at 1/4, 1/2, 3/4, and full sample trigger time
•3 – 8 samples at 1/8, 1/4, 3/8, 1/2, 5/8, 3/4, 7/8 and full sample trigger
Sample trigger 1 can be used either to trigger a complete cycle with Front End and Filter, or it can be used
for spatial averaging. See Chapter 3, especially Section 3.1.5.
DPWM Control Register 2
2.17.6 Sample Trigger 1 Mode
In addition to oversampling, Sample Trigger 1 offers several modes of calculation. The
SAMPLE_TRIG1_MODE bit field selects from 4 of these:
•0 – Sample Trigger is set using Sample Trigger register (DPWMSAMPTRIG1)
•1 – Sample Trigger = Event 1 + (DUTY/2) + Adaptive Offset where Duty is most recent Filter Duty
•2 – Sample Trigger = Event 1 + (DUTY/2) + Adaptive Offset where Duty is Filter Duty from last cycle
•3 – Sample Trigger = Event 1 + DUTY + Adaptive Offset + Fixed Offset where Filter Duty is from last
cycle
On the diagrams earlier in this chapter, option 1 is called Adaptive Sample Trigger B, and option 3 is
called Adaptive Sample Trigger A.
The Adaptive Offset comes from the DPWMADAPTIVE register, which is an 11 bit signed register. Without
the Adaptive Offset, the sample trigger will be in the middle of the on-time for DPWMA in Normal and Multi
Modes. The Adaptive Offset is used to correct for system delays in gate drivers, FET turn-on times and
voltage and current sensing circuits. Using the Adaptive Offset properly can put the sample trigger in the
middle of the voltage or current on-time. The adaptive offset register has the same resolution as the
Sample Trigger Register – 16 nanoseconds. The adaptive register, though is not mapped the same. Bit 0
is the first usable bit. See Section 2.31 for more information.
Note that using adaptive offset will cause the phase delay of the control loop to change somewhat as the
duty cycle changes.
The Fixed Offset in mode 3 is a value of 4. This is added to the DPWMADAPTIVE Register and to the
Event 1 and Duty Terms.
2.17.7 Sample Trigger Enable Bits
Sample Trigger 2 is only driven by the Sample Trigger 2 Register - DPWMSAMPTRIG2. Setting the
SAMPLE_TRIG_2_EN bit enables it.
SAMPLE_TRIG_1_EN enables Sample Trigger 1.
2.18 Period and Event Registers
The period and event registers DPWMPRD, DPWMEV1, DPWMEV2, DPWMEV3, and DPWMEV4 have
different effects in different modes. See DPWM Modes below for more information about each mode.
Generally the registers work somewhat as described above in Section 2.2. Often, the pulse widths are
controlled by the filter, and the differences between Event Registers are used as dead times.
2.19 Phase Trigger Registers
The DPWMPHASETRIG register is a low resolution (4 ns.) register. It dictates the number of 4 ns. steps
between the start of the period and the output of a sync pulse for synchronizing a slave DPWM. See
Section 2.4.
www.ti.com
2.20 Cycle Adjust Registers
DPWMCYCADJA and DPWMCYCADJB are registers that are added to the Filter Duty before the DPWM
pulse width is calculated. They have different effects in different modes, see the DPWM Mode sections
above. They are signed high resolution registers so that the duty can be increased or decreased from the
Filter value. They only have 16 bits, so they cannot adjust the full 18 bit range of the DPWM. But their
range is still +-8 milliseconds, which is typically more than a whole switching period
High resolution is 250 picosec, and the range of a signed 16 bit value is ±215. So
215x 250 psec = 8.192 msec(1)
2.21 Resonant Duty Register
This register is used in LLC topologies to produce the correct Filter Duty output. The Filter output is
multiplied by this register to calculate Filter Duty. In the LLC reference firmware (UCD3138LLCEVM-028) it
is set to 1/2 of the maximum desired period. In this case, bits 13-0 are used as an unsigned number. To
enable this mode, the DPWM must be in Resonant Mode, and the FILTER_DUTY_SEL field in
DPWMCTRL2 must be set to a 2.
If FILTER_DUTY_SEL is set to 0 or 1 and the DPWM is in resonant mode, the 16 bit signed contents of
the register are added to the Filter Period value, and the result is used for the DPWM Period. This is
another option for adjusting the resonant mode timing to match other modes across a mode shift. This
mode is not currently used in any topologies.
2.22 DPWM Fault Control Register
See Chapter 6 for information on the DPWMFLTCTRL register.
2.23 DPWM Overflow Register
The DPWMOVERFLOW register has, as already mentioned, 2 bits which give the input status of the
DPWM pins when they are used as general purpose I/O.
It also has 6 bits which indicate that the protection logic for the DPWM has detected overflows.
The DPWMINT register has interrupt enable bits, interrupt flags, one interrupt flag clear bit, and one
interrupt scale register.
For more information on the enable bits and flags related to faults, see Section 6.11.
2.24.1 DPWM Period Interrupt Bits
There are three bit fields related to the Period interrupt.
PRD is the flag which indicates that there is a period interrupt occurring. It is only a strobed signal, so it is
very unlikely that it will ever be read as set. If the interrupt bit is set, and no other bits are set, this means
it is the period bit which has set it.
PRD_INT_EN enables the period interrupt.
PRD_INT_SCALE programs a divider for the period interrupt. The selections range from an interrupt every
period to an interrupt every 256 periods. See the DPWM Reference section for the table.
Note that if the DPWM is disabled, under most circumstances, it will generate a period interrupt
continuously, if the interrupt is enabled.
2.24.2 Mode Switching Interrupt Bits
There are three bit fields related to the Mode Switching Interrupt.
See Section 2.29 DPWM Auto Switch Registers, for more detail on Mode Switching.
MODE_SWITCH goes high when the DPWM has switched modes.
MODE_SWITCH_INT_EN enables this interrupt.
A rising edge on MODE_SWITCH_FLAG_CLR clears the MODE_SWITCH bit. This bit is not auto cleared,
so it will be necessary to clear it with firmware before the next rising edge.
DPWM Interrupt Register
2.24.3 INT Bit
The INT bit shows that one or more of the interrupt flags is set and enabled, and the DPWM is sending an
interrupt to the Central Interrupt Module (CIM). When the interrupt bits are cleared, so is the INT bit.
2.25 DPWM Counter Preset Register
If enabled, the DPWMCNTPRE register is loaded into the Period Counter at DPWM startup or on a rising
sync edge. This is used for applications requiring complex synchronization and phase shifting between
DPWMs. See 2.16.1 Period Counter Preset Enable for more information.
2.26 Blanking Registers
There are 4 Blanking Registers in each DPWM:
DPWMBLKABEG
DPWMBLKBBEG
DPWMBLKAEND
DPWMBLKBEND
There are two blanking periods, A and B, which both have a beginning and an end, measured in 4
nanosecond steps of the period counter.
These registers are used to blank out CBC signals during noisy times of the signal, for example around
hard switching. See the Fault Mux section for more information. They can also be used to align current
limit response times between multiple DPWMs with different dead times.
The Blank B values are also used to generate the DPWMC signal for the IntraMux for complex topologies.
See Section 2.15.2.
The DPWMADAPTIVE register is used in adaptive sample trigger modes. See Figure 9-11 for more
information.
2.28 DPWM Fault Status Register
The DPWMFLTSTAT Register has bits which indicate faults, IDE detection, and Burst mode detection.
See Chapter 6 for Faults, Section 6.9 for IDE, and Section 5.10 for Burst mode.
2.29 DPWM Auto Switch Registers
For an overview of what these registers do, see Section 2.10. There are 4 Auto Switch threshold registers:
DPWMAUTOSWIHIUPTHRESH
DPWMAUTOSWIHILOWTHRESH
DPWMAUTOSWILOUPTHRESH
DPWMAUTOSWILOLOWTHRESH
These registers are used in topologies which dynamically switch from one DPWM mode to another, such
as Phase Shifted Full Bridge and LLC. They control which one of three registers sets many of the DPWM
control bits. There are 4 registers so that each of the 2 dividing lines can have hysteresis.
The three registers are:
DPWMCTRL0
AUTOCONFIGMID
AUTOCONFIGMAX
If the Filter input to the DPWM goes above DLWMAUTOSWIHIUPTHRESH, then the AUTOCONFIGMAX
register is used until the Filter input goes below the DPWMAUTOSWIHILOWTHRESH register value.
Below this value the AUTOCINFIGMID control bits are used, until the Filter value goes below
DPWMAUTOSWILOLOWTHRESH. Below this value, DPWMCTRL0 is used.
Mode switching is enabled by setting the AUTO_MODE_SEL bit in DPWMCTRL1. Making the waveforms
transition smoothly across the mode switching boundary can be complex.
www.ti.com
2.30 DPWM Edge PWM Generation Register
DPWMEDGEGEN is used for complex systems like phase shifted full bridge, in conjunction with the
IntraMux. It enables each edge to be generated from a wide selection of sources in a very flexible manner.
The options are described in Section 2.11. Section 2.31 shows the specific bit assignments.
High Resolution should also be disabled if the Edge Generator is enabled.
Table 2-6. DPWM Control Register 0 (DPWMCTRL0) Register Field Descriptions (continued)
BitFieldTypeResetDescription
20CBC_PWM_AB
_EN
19CBC_ADV_CNT
_EN
18-17MIN_DUTY
_MODE
16MASTER_SYNC
_CNTL_SEL
15MSYNC_SLAVE
_EN
14D_ENABLER/W0
13CBC_SYNC_CUR
_LIMIT_EN
12RESON_MODE
_FIXED_DUTY
_EN
11PWM_B_FLT_POL R/W0
10PWM_A_FLT_POL R/W0
9BLANK_B_ENR/W0
8BLANK_A_ENR/W0
7-4PWM_MODER/W0010
R/W0
R/W0
R/W00
R/W0
R/W0
R/W0
R/W0
Sets if Fault CBC changes output waveform for PWM-A and PWM-B
0 = PWM-A and PWM-B unaffected by Fault CBC (Default)
1 = PWM-A and PWM-B affected by Fault CBC
Selects cycle-by-cycle of operation
Normal Mode
0 = CBC disabled (Default)
1 = CBC enabled
Multi and Resonant Modes
0 = PWM-A and PWM-B operate independently (Default)
1 = PWM-A and PWM-B pulse matching enabled
Minimum Duty Cycle Mode
00 = Suppression of minimum duty cycles is disabled (Default)
01 = CLA value is clamped to zero when below input value is less than
MIN_DUTY_LOW
10 = CLA value is clamped to MIN_DUTY_LOW register value when input value is
less than MIN_DUTY_LOW
Configures master sync location
0 = Master Sync controlled by Phase Trigger Register (Default)
1 = Master Sync controlled by CLA value
Multi-Sync Slave Mode Control
0 = PWM not synchronized to another PWM channel (Default)
1 = Enable Multi-Sync Slave Mode, current channel will be slaved from
corresponding channel
Converts CLA duty value to DPWM as period-CLA duty value
0 = Value used for event calculations if CLA Duty (Default)
1 = Value used for event calculations is period minus CLA duty value
Sets how current limit affects slave sync
0 = Slave sync is unaffected during current limit (Default)
1 = Slave sync is advanced during current limit.
Configures how duty cycle is controlled in Resonance Mode
0 = Resonant mode duty cycle set by Filter duty (Default)
1 = Resonant mode duty cycle set by Auto Switch High Register
Sets the fault output polarity during a disable condition (i.e. fault or module disabled)
0 = PWM B fault output polarity is set to low (Default)
1 = PWM B fault output polarity is set to high
Sets the fault output polarity during a disable condition (i.e. fault or module disabled)
0 = PWM A fault output polarity is set to low (Default)
1 = PWM A fault output polarity is set to high
Comparator Blanking Window B Enable
0 = Comparator Blanking Window for PWM-B Disabled (Default)
1 = Comparator Blanking Window for PWM-B Enabled
Comparator Blanking Window A Enable
0 = Comparator Blanking Window for PWM-A Disabled (Default)
1 = Comparator Blanking Window for PWM-B Enabled
Sets the divider for generating the Sync Out pulse.
0000 = Sync Out generated on every switching cycle (Default)
0001 = Sync Out generated once every 2 switching cycles
0010 = Sync Out generated once every 3 switching cycles
……….
1111 = Sync Out generated once every 16 switching cycles
Table 2-7. DPWM Control Register 1 (DPWMCTRL1) Register Field Descriptions (continued)
BitFieldTypeResetDescription
23-21CLA_SCALER/W000
20EXT_SYNC_ENR/W0
19CBC_BSIDE
_ACTIVE_EN
18AUTO_MODE
_SEL
17-16EVENT_UP_SELR/W01
15CHECK
_OVERRIDE
14GLOBAL_PERIOD
_ENGLOBAL
_PERIOD_EN
13PWM_B_OER/W0
12PWM_A_OER/W0
11GPIO_B_VALR/W0
10GPIO_B_ENR/W0
9GPIO_A_VALR/W0
8GPIO_A_ENR/W0
R/W0
R/W0
R/W0
R/W0
Scaling for CLA Input Data
000 = CLA Value (Default)
001 = CLA Value multiplied by 2
010 = CLA Value divided by 2
011 = CLA Value multiplied by 4
100 = CLA Value divided by 4
101 = CLA Value multiplied by 8
110 = CLA Value divided by 8
111 = CLA Value
Slave DPWM to external sync
0 = DPWM not synchronized to external sync (Default)
1 = Slave DPWM to external sync
Sets if CBC responds to Fault CBC when PWM-B is active, only available in Multi
and Reson modes
0 = Response to Fault CBC when PWM-A active (Default)
1 = Response to Fault CBC when PWM-A or PWM-B active
Auto Switching Mode Select
0 = Auto Switching Mode disabled (Default)
1 = Auto Switching Mode enabled
Update End Period Mode
00 = Events updated anytime
01 = Events updated at End of Period (Default)
10 = Events updated at count value equal to Sample Trigger 2 register
11 = Events updated at End of Period and Sample Trigger 2 position
PWM Check Override
0 = DPWM checks mathematical settings within module, correct placement of Event
settings/period settings. Invalid configurations are not allowed.
1 = Overrides checking for invalid configurations and turns off PWM mathematical
checking functions (Default)
0 = Event calculations use DPWM Period register (Default)
1 = Event calculations use Global Period register
Direction for PWM B pin
0 = PWM B configured as output (Default)
1 = PWM B configured as input
Direction for PWM A pin
0 = PWM A configured as output (Default)
1 = PWM A configured as input
Sets value of PWM B output in GPIO mode
0 = PWM B driven low in GPIO mode (Default)
1 = PWM B driven high in GPIO mode
Enables GPIO mode for PWM B output
0 = PWM B in DPWM mode (Default)
1 = PWM B in GPIO mode
Sets value of PWM A output in GPIO mode
0 = PWM A driven low in GPIO mode (Default)
1 = PWM A driven high in GPIO mode
Enables GPIO mode for PWM A output
0 = PWM A in DPWM mode (Default)
1 = PWM A in GPIO mode
Table 2-7. DPWM Control Register 1 (DPWMCTRL1) Register Field Descriptions (continued)
BitFieldTypeResetDescription
7PWM_HR_MULTI
_OUT_EN
6SFRAME_ENR/W0
5PWM_B_PROT
_DIS
4PWM_A_PROT
_DIS
3-2HIRES_SCALER/W00
1ALL_PHASE_CLK
_ENA
0HIRES_DISR/W0
R/W0
R/W0
R/W0
R/W1
Control bit for Hi-Res Block
0 = Disabled (Default)
1 = Enabled
PWM Single Step Frame Mode Enable
0 = Disable Single Frame Mode (Default)
1 = Enable Single Step Frame Mode. One EADC sample is requested, CLA then
Filters, then one PWM duty cycle performed, then wait on Single Frame Trigger
toggle before advancing to next frame.
PWM B Asynchronous Protection Disable
0 = Allows asynchronous protection to turn off PWM B Output (Default)
1 = Disables asynchronous protection from turning off PWM B Output
PWM A Asynchronous Protection Disable
0 = Allows asynchronous protection to turn off PWM A Output (Default)
1 = Disables asynchronous protection from turning off PWM A Output
Determines resolution of high resolution steps
00 = Resolution of 16 phases. Full resolution enabled. Resolution step = PCLK/16
(Default)
11 = Resolution of 2 phases. Resolution step = PCLK/2
10 = Resolution of 4 phases. Resolution step = PCLK/4
01 = Resolution of 8 phases. Resolution step = PCLK/8
00 = Resolution of 16 phases. Full Resolution enabled.
Resolution step = PCLK/16
High Speed Oscillator Phase Enable
0 = Enables only required phases of clock when needed
1 = Enables all phases of high resolution clock from oscillator (Default)
PWM High Resolution Disable
0 = Enable High Resolution logic (Default)
1 = Disable High Resolution logic
IDE Duty Cycle Side B Enable
0 = Disabled (Default)
1 = Enabled
Oversample Select for Sample Trigger 1
00 = Trigger an EADC Sample at PWM Sample Trig Register value (Default)
01 = Trigger an EADC Sample at PWM Sample Trig Register value and at PWM
Sample Trig Register value divided by 2
10 = Trigger a EADC Sample at PWM Sample Trig Register value, at PWM Sample
Trig Register value divided by 2 and at PWM Sample Trig Register value divided by
4
11 = Trigger a EADC Sample at PWM Sample Trig Register value, at PWM Sample
Trig Register value divided by 2, at PWM Sample Trig Register value divided by 4
and at PWM Sample Trig Register value divided by 8
Mode select for Sample Trigger 1
00 = Trigger value is set using PWM Sample Trig Register value (Default)
01 = Trigger value is adaptive midpoint (EV1+CLA_DUTY/2 + Adaptive Offset) and
uses current CLA value at update event
10 = Trigger value is adaptive midpoint (EV1+CLA_DUTY/2 + Adaptive Offset) and
uses previous CLA value at update event
11 = Trigger value is adaptive midpoint (EV1+CLA_DUTY + Fixed offset + Adaptive
Offset) and uses current CLA value at update event
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-11. DPWM Event 2 Register (DPWMEV2) Register Field Descriptions
BitFieldTypeResetDescription
17-0EVENT2R/W0 0000
0011
0000
0000
Configures the location of Event 2. Value equals number of PCLK clock periods in
Bits 17:4 and number of high resolution clock phases of PCL in Bits 3:0 (dependent
on Bits 3:2 of DPWM Control Register 2).
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-12. DPWM Event 3 Register (DPWMEV3) Register Field Descriptions
BitFieldTypeResetDescription
17-0EVENT3R/W00 0000
0011
1110
0000
Configures the location of Event 3. Value equals number of PCLK clock periods in
Bits 17:4 and number of high resolution clock phases of PCL in Bits 3:0.
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-13. DPWM Event 4 Register (DPWMEV4) Register Field Descriptions
BitFieldTypeResetDescription
17-0EVENT4R/W00 0000
0111
0000
0000
Configures the location of Event 4. Value equals number of PCLK clock periods in
Bits 17:4 and number of high resolution clock phases of PCL in Bits 3:0.
Configures the location of the sample trigger within a PWM period. Value equals the
number of PCLK clock periods. Enables start of conversion for EADC. Low resolution
register, last 6 bits are read-only.
Configures the location of the sample trigger within a PWM period. Value equals the
number of PCLK clock periods. Enables start of conversion for EADC. Low resolution
register, last 6 bits are read-only.
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-16. DPWM Phase Trigger Register (DPWMPHASETRIG) Register Field Descriptions
BitFieldTypeResetDescription
17-4PHASE_TRIGGER R/W00 0000
0000
0000
3-0ReservedR0000
Configures the phase trigger delay within multi-output mode. Value equals the
number of PCLK clock periods. Low resolution register, last 4 bits are read-only.
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
BitFieldTypeResetDescription
7PWM_B_CHECKR0
6PWM_A_CHECKR0
5GPIO_B_INR0
4GPIO_A_INR0
3-0OVERFLOWR0
PWM_A
_CHECK
GPIO_B_INGPIO_A_INOVERFLOW
Table 2-21. DPWM Overflow Register (DPWMOVERFLOW) Register Field Descriptions
Value of PWM B internal check
0 = Passed checks
1 = Failed checks (override required to enable output)
Value of PWM B input
0 = Passed check
1 = Failed check (override required to enable output)
Value of PWM B input
0 = Low signal on PWM B
1 = High signal on PWM B
Value of PWM A input
0 = Low signal on PWM A
1 = High value on PWM A
PWM Event 4 Overflow Status
0 = CLA Event 4 has not overflowed
1 = Overflow condition found on CLA Event 4
OVERFLOW[2] – CLA Event 4 Overflow Status
0 = PWM Event 4 has not overflowed
1 = Overflow condition found on PWM Event 4
OVERFLOW[1] – CLA Event 3 Overflow Status
0 = CLA Event 3 has not overflowed
1 = Overflow condition found on CLA Event 3
OVERFLOW[0] – CLA Event 2 Overflow Status
0 = CLA Event 2 has not overflowed
1 = Overflow condition found on CLA Event 2
Table 2-22. DPWM Interrupt Register (DPWMINT) Register Field Descriptions (continued)
BitFieldTypeResetDescription
9MODE_SWITCH
_INT_EN
8FLT_A_INT_ENR/W0
7FLT_B_INT_ENR/W0
6FLT_AB_INT_ENR/W0
5FLT_CBC_INT_EN R/W0
4PRD_INT_ENR/W0
3-0PRD_INT_SCALE R/W1111
R/W0
Mode Switching Interrupt Enable
0 = Interrupt is not enabled (Default)
1 = Interrupt is enabled
Fault A Flag Interrupt Enable
0 = Interrupt is not enabled (Default)
1 = Interrupt is enabled
Fault B Flag Interrupt Enable
0 = Interrupt is not enabled (Default)
1 = Interrupt is enabled
Fault AB Flag Interrupt Enable
0 = Interrupt is not enabled (Default)
1 = Interrupt is enabled
Fault Cycle-by-Cycle Flag Interrupt Enable
0 = Interrupt is not enabled (Default)
1 = Interrupt is enabled
PWM Period Interrupt Enable
0 = Disables generation of periodic PWM interrupt (Default)
1 = Enables generation of periodic PWM interrupt
This value scales the period interrupt signal from an interrupt every switching cycle to
16 switching cycles
0000 = Period Interrupt generated every switching cycle (Default)
0001 = Period Interrupt generated once every 2 switching cycles
0010 = Period Interrupt generated once every 4 switching cycles
0011 = Period Interrupt generated once every 6 switching cycles
0100 = Period Interrupt generated once every 8 switching cycles
0101 = Period Interrupt generated once every 16 switching cycles
0110 = Period Interrupt generated once every 32 switching cycles
0111 = Period Interrupt generated once every 48 switching cycles
1000 = Period Interrupt generated once every 64 switching cycles
1001 = Period Interrupt generated once every 80 switching cycles
1010 = Period Interrupt generated once every 96 switching cycles
1011 = Period Interrupt generated once every 128 switching cycles
1100 = Period Interrupt generated once every 160 switching cycles
1101 = Period Interrupt generated once every 192 switching cycles
1110 = Period Interrupt generated once every 224 switching cycles
1111 = Period Interrupt generated once every 256 switching cycles
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-23. DPWM Counter Preset Register (DPWMCNTPRE) Register Field Descriptions
BitFieldTypeResetDescription
17-4PRESETR/W00 0000
0000
0000
3-0ReservedR0000
Counter preset value, counter reset to this value upon detection of sync when
PRESET_EN bit in DPWMCTRL2 is enabled. Low resolution register, last 4 bits are
read-only.
2.31.19 DPWM Blanking A Begin Register (DPWMBLKABEG)
Address 00050048 – DPWM 3 Blanking A Begin Register
Address 00070048 – DPWM 2 Blanking A Begin Register
Address 000A0048 – DPWM 1 Blanking A Begin Register
Address 000D0048 – DPWM 0 Blanking A Begin Register
Figure 2-35. DPWM Blanking A Begin Register (DPWMBLKABEG)
17430
BLANK_A_BEGINReserved
R/W-00 0000 0000 0000R-0000
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-24. DPWM Blanking A Begin Register (DPWMBLKABEG) Register Field Descriptions
BitFieldTypeResetDescription
17-4BLANK_A_BEGIN R/W00 0000
0000
0000
3-0ReservedR0000
Configures start of Comparator Blanking Window for PWM A. Low resolution register,
last 4 bits are read-only.
2.31.20 DPWM Blanking A End Register (DPWMBLKAEND)
Address 0005004C – DPWM 3 Blanking A End Register
Address 0007004C – DPWM 2 Blanking A End Register
Address 000A004C – DPWM 1 Blanking A End Register
Address 000D004C – DPWM 0 Blanking A End Register
Figure 2-36. DPWM Blanking A End Register (DPWMBLKAEND)
17430
BLANK_A_ENDReserved
R/W-00 0000 0000 0000R-0000
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-25. DPWM Blanking A End Register (DPWMBLKAEND) Register Field Descriptions
BitFieldTypeResetDescription
17-4BLANK_A_ENDR/W00 0000
0000
0000
3-0ReservedR0000
Configures end of Comparator Blanking Window for PWM A. Low resolution register,
last 4 bits are read-only.
2.31.21 DPWM Blanking B Begin Register (DPWMBLKBBEG)
Address 00050050 – DPWM 3 Blanking B Begin Register
Address 00070050 – DPWM 2 Blanking B Begin Register
Address 000A0050 – DPWM 1 Blanking B Begin Register
Address 000D0050 – DPWM 0 Blanking B Begin Register
Figure 2-37. DPWM Blanking B Begin Register (DPWMBLKBBEG)
17430
BLANK_B_BEGINReserved
R/W-00 0000 0000 0000R-0000
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-26. DPWM Blanking B Begin Register (DPWMBLKBBEG) Register Field Descriptions
BitFieldTypeResetDescription
17-4BLANK_B_BEGIN R/W00 0000
0000
0000
3-0ReservedR0000
Configures start of Comparator Blanking Window for PWM B. Low resolution register,
last 4 bits are read-only.
2.31.22 DPWM Blanking B End Register (DPWMBLKBEND)
Address 00050054 – DPWM 3 Blanking B End Register
Address 00070054 – DPWM 2 Blanking B End Register
Address 000A0054 – DPWM 1 Blanking B End Register
Address 000D0054 – DPWM 0 Blanking B End Register
Figure 2-38. DPWM Blanking B End Register (DPWMBLKBEND)
17430
BLANK_B_ENDReserved
R/W-00 0000 0000 0000R-0000
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-27. DPWM Blanking B End Register (DPWMBLKBEND) Register Field Descriptions
BitFieldTypeResetDescription
17-4BLANK_B_ENDR/W00 0000
0000
0000
3-0ReservedR0000
Configures end of Comparator Blanking Window for PWM B. Low resolution register,
last 4 bits are read-only.
2.31.27 DPWM Auto Switch High Upper Thresh Register (DPWMAUTOSWHIUPTHRESH)
Address 00050068 – DPWM 3 Auto Switch High Upper Thresh Register
Address 00070068 – DPWM 2 Auto Switch High Upper Thresh Register
Address 000A0068 – DPWM 1 Auto Switch High Upper Thresh Register
Address 000D0068 – DPWM 0 Auto Switch High Upper Thresh Register
Figure 2-43. DPWM Auto Switch High Upper Thresh Register (DPWMAUTOSWHIUPTHRESH)
17430
AUTO_SWITCH_HIGH_UPPERReserved
R/W-00 0000 0000 0000R-0000
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-32. DPWM Auto Switch High Upper Thresh Register (DPWMAUTOSWHIUPTHRESH)
Register Field Descriptions
BitFieldTypeResetDescription
17-4AUTO_SWITCH
_HIGH_UPPER
3-0ReservedR0000
R/W00 0000
0000
0000
Configures upper threshold for Auto Switch Mode High operation. Mode switching
does not occur between Auto Switch High Upper and Auto Switch High Lower
thresholds. Low resolution register, last 4 bits are read-only.
2.31.28 DPWM Auto Switch High Lower Thresh Register (DPWMAUTOSWHILOWTHRESH)
Address 0005006C – DPWM 3 Auto Switch High Lower Thresh Register
Address 0007006C – DPWM 2 Auto Switch High Lower Thresh Register
Address 000A006C – DPWM 1 Auto Switch High Lower Thresh Register
Address 000D006C – DPWM 0 Auto Switch High Lower Thresh Register
Figure 2-44. DPWM Auto Switch High Lower Thresh Register (DPWMAUTOSWHILOWTHRESH)
17430
AUTO_SWITCH_HIGH_LOWERReserved
R/W-00 0000 0000 0000R-0000
LEGEND: R/W = Read/Write; R = Read only; -n = value after reset
Table 2-33. DPWM Auto Switch High Lower Thresh Register (DPWMAUTOSWHILOWTHRESH)
Register Field Descriptions
BitFieldTypeResetDescription
17-4AUTO_SWITCH
_HIGH_UPPER
3-0ReservedR0000
R/W00 0000
0000
0000
Configures lower threshold for Auto Switch Mode High operation. Mode switching
does not occur between Auto Switch High Upper and Auto Switch High Lower
thresholds. Low resolution register, last 4 bits are read-only.