This repository contains the C source code for a digital Voltage Mode Control (VMC) system implemented on a TI C2000 MCU (TMS320F28379D) for a DC-DC Boost Converter.
The control loop and switching both run synchronously at 10 kHz, regulating the output voltage to a reference target of 24V using a discrete PI controller.
- Controller Platform: TI F28379D (Delfino)
- Control Type: Voltage Mode Control (Single Loop)
- Switching Frequency: 10 kHz (ePWM2 - Up-Down Count Mode)
- Sampling Frequency: 10 kHz (ePWM1 - Up Count Mode)
- Target Output Voltage: 24V
- Feedback Scaling: 0-3.3V ADC input maps to 0-36V actual voltage.
The control system utilizes a discrete Proportional-Integral (PI) controller implemented in the Tustin (Bilinear) transformation.
The error is calculated as:
The duty cycle is updated using the incremental form:
Where coefficients
$K_p = 100$ $K_i = 100$ -
$T_s = 100 \mu s$ (Sampling Time)
- ADC A (Channel 2): Reads the output voltage feedback.
- ePWM 1: Configured in Up-Count mode (TBPRD=2500) to act as the time-base, triggering the ADC and ISR at 10 kHz.
- ePWM 2: Configured in Up-Down Count mode (TBPRD=5000) to generate the complementary PWM signals at 10 kHz.
main.c: Contains the main control loop, peripheral initialization, and the ISR.
Rohan