20.4.3.2.1 Slope Generation Mode

The slope generator function can be utilized in Peak Current-mode control-based power supply applications, where slope compensation is required. The slope function modifies the non-slope PDM DAC value repeatedly, at a user-defined rate, until the DAC data value reaches its endpoint. The slope generation function can be enabled or disabled by the SLOPEN bit (SLPxCON[31]). The slope rate is controlled by the data in the SLPxDAT register. The direction of slope being positive or negative is controlled by the PSE bit (SLPxCON[25]). For negative slopes (default, PSE = 0), DACDAT holds the nominal non-slope count, while DACLOW holds the count corresponding to the end of the slope. For positive slopes (PSE = 1), DACLOW holds the nominal non-slope count, while DACDAT holds the count corresponding to the end of the slope. If new DACDAT or DACLOW values are written during Slope Operation mode, a transient may occur. Data writes will put the DAC in Transition mode which has the fastest response time but reduced filtering.

In Slope mode, the order of output modes is different from static mode. When the slope cycle begins, the DAC starts in Transition mode, then moves to Steady-State mode and lastly to Fast mode for the ramp. Both TMODTIME and SSTIME timers are started on cycle start. TMODTIME defines the duration of Transition mode, and SSTIME defines the end of steady-state time. Therefore, the duration of steady-state is effectively TSS - TTR. Equation 20-2 and Equation 20-3 define the timer durations.

Note that the SSTIME[9:0] count should always be greater than the TMODTIME[9:0] count. At the end of the Steady-State mode, the DAC value settles at the new value and is ready for slope generation. The SLPSTRT[3:0] signal triggers the slope generation process.

Refer to the DAC electrical specifications for additional information on TSS and TTR values. These timing parameters can be additionally adjusted as needed for the application.

Figure 20-4. Slope Generation Mode DAC Output Waveform

The slope generation is terminated when one of the two stop signals is asserted. The eight control register bits, SLPSTOPA[3:0] (SLPxCON[11:8]) and SLPSTOPB[3:0] (SLPxCON[7:4]), select the control signal to terminate the slope generation. The stop signals are logically ORed so that the slope is terminated when one of the trigger events materializes. In most power supply applications, SLPSTOPA[3:0] can be configured to terminate the slope at the end of the PWM cycle, while SLPSTOPB[3:0] can be configured to trigger when the current reaches a limit under a normal or Fault condition. It should be noted that the stop signal must terminate the slope at least TSS (Steady-State Time) prior to the next PWM cycle start. This is necessary to allow the DAC value to reach and settle at the steady-state value, specified by DACDAT, before the next cycle begins.

The slope rate value to be specified in the SLPxDAT register depends on the start and end values of the slope specified by DACDAT and DACLOW, the PWM time period, the DAC clock frequency and the SSTIME[9:0] bits value. The SLPxDAT value can be determined by using Figure   2.

Equation 20-4. Determining the SLPxDAT Value

Where:

DACDAT = DAC value at the start of slope.

DACLOW = DAC value and the end of slope.

TSLOPE_DURATION = Slope duration time in seconds.

TDAC = 2/FDAC in seconds.

Note: Multiplication by 16 sets results in the SLPxDAT value in 12.4 format.