Chapter 11 - MPLAB® Mindi™ Analog Simulator - High Voltage Peak Current Mode Buck LED Drivers

Last modified by Microchip on 2023/11/10 10:59

The goal of this chapter is to understand how to use buck LED drivers using open-loop, peak-current mode control. In order to showcase the functionality of the parts, the MPLAB® Mindi™ simulation tool will be used to explore the HV9910B/C models.

11.1 Prerequisites

Back to top

11.2 Case Study: HV9910C Led Driver (120 VAC/DC and 230V AC/DC)

The goal of this section is to understand and analyze using MPLAB® Mindi™ analog simulator how to set the input voltage Vin for a specific AC Offline input.

  • Vin=120 VAC (Sine, F=60 Hz, Initial= -120*1.414, Pulse= 120*1.414).

HV9910C Led Driver sim

  • Vin=230 VAC (Sine, F=50 Hz, Initial= -230*1.414, Pulse= 230*1.414).

HV9910C Led Driver sim 2

Back to top

11.2.1 Open Loop Peak Current Controller

The goal of this section is to understand and analyze what an open-loop peak current controller does. Throughout these exercises, the benefits of this control method will be presented.

A peak-current-controlled buck converter can give reasonable LED current variation over a wide range of input and LED voltages. It needs little effort in feedback control design. An open loop, peak current mode average current can be calculated by:

Open Loop Peak Current Controller

Back to top

11.2.2 Start-up Simulation Examples

Open the HV9910C application schematic by selecting Power Management > High-Voltage LED Drivers > HV9910C.

Add two differential voltage probes for VIN and VLED.

Add one inline current probe with the LED.

Modify the names for ILED and VLED to use the same graph name.

Run the simulation and observe the results.

HV9910C sim

Modify the number of series and parallel LEDs in the LED string (DLED1), as seen in the following figure.

modify number LEDs

Run the simulation and observe the changes to the waveforms.

Back to top

11.3 Case Study: Constant Frequency or Constant Off-Time Modes

This section illustrates the differences between constant frequency and constant off-time operation.

Constant Frequency Constant Off Time Modes

Open the HV9910C application schematic by selecting Power Management > High-Voltage LED Drivers > HV9910C.

Connect the resistor (R1) to GND to enable constant frequency mode.

connect R1 GND

Change the value of R1 to 1 Meg.

Run the simulation.

Select VGATE and stack the selected curve. Do the same for the VRT curve.


Use the cursors to measure the desired parameter.

VGATE sim 2

In-constant frequency is easier to design the EMI filter for the application.

To enable constant off-time mode, connect the resistor R1 to the GATE.

Connect R1 Gate

Run the simulation and analyze the waveforms as before.

Constant Frequency sim

Constant Frequency sim 2

In constant TOFF mode, TS variation depends on duty cycle:

  • Large Duty cycle => Large variation in TS with VIN
  • Small Duty cycle => Small variation in TS with VIN

Back to top

11.4 Case Study: Linear and PWM Dimming

The linear dimming pin (LD) is used to control the LED current. It is useful when we cannot find the exact R1 value required for obtaining the LED current and when adjusting the current level is desired. In these cases, an external voltage divider from the VDD pin can be connected to the LD pin to obtain a voltage (less than 250 mV) corresponding to the desired voltage across R1.

PWM Dimming can be achieved by driving the PWMD pin with a low-frequency square wave signal. When the PWM signal is zero, the GATE driver is turned off; when the PWMD signal is high, the GATE driver is enabled.

Back to top

11.4.1 Linear Dimming Start-Up Example

Open the HV9910C application schematic by selecting Power Management > High-Voltage LED Drivers > HV9910C.

HV9910B has two current sense threshold voltages, an internally set 250 mV and an external voltage at the LD pin. The actual threshold voltage will be the lower of these two.

The default configuration is linear dimming, as the PWMD pin is tied high at 5V.

Linear Dimming Start Up

Change the value of wiper position to 90%.

change wiper position

Run the simulation and display the VLED and ILED curves.


Change the value of wiper position to 10%.

Run the simulation again and display the new VLED and ILED curves to see the difference between the two duty cycles.


When using the LD pin, it is not possible to obtain zero LED current, even if the LD pin is pulled to GND. This is because of the minimum on time for the FET (450 ns). To get zero LED current, the PWMD pin needs to be used.

Back to top

11.4.2 PWM Dimming Start-Up Example

HV9910C includes a TTL-compatible, PWM-dimming input that can accept an external control signal with a duty ratio of 0 – 100% and a frequency of up to a few kilohertz.

Remove the connection of LD with the wiper potentiometer and connect it at VDD.

PWM Dimming Start Up

Replace the power supply with a Waveform Generator V1 (Place > Voltage Sources > Waveform Generator) and configure it a Pulse generator (F=5 kHz, Duty=10%, Pulse voltage=5V, Rise and fall times=200 ns).

Run the simulation and display VPWMD, VLED, and ILED.



Change the value of the duty cycle to 90%.

Run the schematic and display the new VPWMD, VLED, and ILED curves to see the difference in comparison with 10% Duty Cycle.



These plots show you that the PWM-dimming response is limited only by the rate of rise of the inductor current, enabling a very fast rise and fall times of the LED current.

This happens because the PWMD signal does not turn off the other parts of the IC, therefore, the response of HV9910C to the PWMD signal is almost instantaneous.

Back to top

11.5 References


Demo Boards

Application Notes

Back to top

Learn More

Back to top