![Infineon XDPP1100 Скачать руководство пользователя страница 147](http://html1.mh-extra.com/html/infineon/xdpp1100/xdpp1100_technical-reference-manual_2055193147.webp)
User Manual
147 of 562
V 1.0
2021-08-25
XDPP1100 technical reference manual
Digital power controller
Digital pulse width modulator
In addition to setting an interrupt on t1 and t2:
•
Register
rampX_t1_irq_sel
may also select an arbitrary phase location within the ramp for an interrupt. The
phase location is defined by the register
rampX_irq_phase
. Its value is defined according to Equation (7.14).
•
Register
rampX_t2_irq_sel
may also select the falling edge of V
RECT
to generate the interrupt.
𝐼𝑅𝑄 𝑃ℎ𝑎𝑠𝑒 = (
𝑟𝑎𝑚𝑝𝑋_𝑖𝑟𝑞_𝑝ℎ𝑎𝑠𝑒[3:0]
16
) ∗ 360°
(7.14)
The frequency of the interrupts can be controlled by the register
rampX_irq_rate
. It is possible to program the
interrupts to occur from once per switching period to once every 64 switching periods, as shown in
Table 47
Ramp generator interrupt rate selection
rampX_irq_rate
Interrupt frequency
0
Every T
switch
1
Every 2 T
switch
2
Every 4 T
switch
3
Every 8 T
switch
4
Every 16 T
switch
5
Every 32 T
switch
6, 7
Every 64 T
switch
It should be noted that
rampX_irq_rate
applies to both the t1 and t2 interrupts if they are both enabled.
7.7
PWM registers
The relevant PWM registers and their descriptions are provided in
Table 48
PWM-related registers and their descriptions
Peripheral Field name
Access Address
Bits
Description
pwm
ramp0_pid_sel
RW
7000_2C00h [0]
PID source select for PWM ramp0.
PID0 receives its error input from
the VSEN input. PID1 receives its
error input from the BVSEN input.
Generally, ramp0 should always use
PID0.
0: PID0 (typical setting)
1: PID1
pwm
ramp0_sync_sel
RW
7000_2C00h [1]
Sync select for ramp0. Should
always be set to 1.
pwm
ramp0_m_flavor
RW
7000_2C00h [3:2]
Edge modulation type for ramp0.
0: DE
1: LE
2 to 3: TE
pwm
ramp0_half_mode
RW
7000_2C00h [4]
Half-mode enable for ramp0. When
half-mode is enabled, the
maximum ramp count is equal to
half of T
switch
, otherwise it is equal to
T
switch
. Half-mode should be enabled
for bridge-type primary-side