DC-DC Buck Converter Closed Loop Control for F283349C

17 vues (au cours des 30 derniers jours)
Thomas
Thomas le 13 Juin 2025
Commenté : Thelma le 4 Sep 2025 à 8:12
Hello,
The example is set up to work with the F28379D.
I am using the F280049C LaunchPad instead. This is also one of the things that is mentioned under "Other Things to Try" in the example.
I am facing issues in the process to set up the project for the F280049C and wanted to ask if anyone could help me guiding me through the process. Or maybe someone has already set up the project for the F280049C as mentioned in the example?
What I have done so far:
  • Change the "Hardware board" name under the Hardware Configuration Parameters to the "F280049C LaunchPad"
  • Delete the "#include "F2837xD_Ipc_drivers.h" under the "custom code"-pane in the Code Generation parameters as this is not needed for the F280049C which has only one core instead of two.
  • Change all hardware-blocks in the model to those of the F280049C and change the GPIOs, ePWMs and ADCs to match the pins of the original example as the LaunchPad is connected to the same Digital Power Buck Converter BoosterPack (BOOSTXL-BUCKCONV).
When debugging the model step-by-step, I could validate that I am using the correct pins of the ADCs, GPIOs and ePWMs.
ePWM settings result in the frequency and the Duty Cycle that I would expect when I try the ePWM isolated from everything else.
What I cannot get to work until now is the serial communication as well as the overall system including the PI-controller.
I am still trying to debug everything step-by-step.
But I thought maybe someone already got it to work and can maybe provide some help.
Thanks,
Thomas
  2 commentaires
Liam
Liam le 8 Juil 2025
Hi Thomas, you're doing a great job adapting the example to the F280049C. For the serial issue and PI controller behavior, double-check the SCI module configuration and ensure your PI loop timing aligns with ADC sampling and ePWM updates. Retro Bowl College
Thelma
Thelma le 4 Sep 2025 à 8:12
So, wrestling with a DC-DC buck converter example designed for an F28379D, but adapting it to an F280049C LaunchPad? Ah, that's a specific flavor of headache I know well. Once I was debugging a motor control system where the interrupt timings were off, and it felt like chasing shadows in the Slope Game of embedded systems. I feel like the error of me had been doing something wrong with the PLL configuration, or, more likely, something completely unrelated.

Connectez-vous pour commenter.

Réponses (1)

Aditya Padmanabha
Aditya Padmanabha le 25 Juil 2025
Hi Thomas,
Can you refer to this example Digital DC/DC Buck Converter Using Peak Current Mode Control - MATLAB & Simulink which has model specifically set for F280049C LaunchPad with BOOSTXL-BUCKCONV? Though this uses CMPSS modules this should have rest of the configurations and customizations matching the settings needed for F28004C. This should give you clear understanding on what is working or what is missing.
In general, you can try following debugging steps
  1. Comment out all subsystems and keep pnly Serial Receive block with ISR and Serial transmit block with constant as input and try running host model and validate what is missing with Serial communication and fix that first. You may need to validate the serial baudrate used for F280049C launchpad which could be different from F28379D Launchpad.
  2. Once serial works, you can validate ePWM by enabling PWM generation with constant duty cycle. Validate if ePWM waveforms are proper in oscilloscope
  3. Then enable ADC with rest of the blocks and try to supply a Sinewaave for ADC with proper frequency and see if the outout of ADCs are proper.
  4. Once all the peripherals are in working condition, enable the rest of the system and see if PID is working correctly.
Thanks,
Aditya

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by