Skip to main content
Explorer
February 13, 2025
Solved

DAC Sawtooth waveform generation for peak current mode boost converter

  • February 13, 2025
  • 1 reply
  • 943 views

Hi everyone,

I am working on implementing the Peak Current Control Method for a boost converter. As an initial step, I am trying to interface the sawtooth waveform for my ramp signal.

I have followed the ST YouTube video on this topic:
"STM32G4 Series Video App Note: DAC Sawtooth waveform generation for peak current mode buck converter",
but I am still unable to generate the sawtooth waveform successfully.

I would be really grateful if someone could help me with this. Any guidance or suggestions would be highly appreciated!

Thanks in advance! :smiling_face_with_smiling_eyes:

    This topic has been closed for replies.
    Best answer by STea

    Hello @waaizkhan ,

    have you seen the example in Cube Firmware _G4 examples:

     STM32CubeG4/Projects/NUCLEO-G474RE/Examples/DAC/DAC_SignalsGeneration2 at master · STMicroelectronics/STM32CubeG4 

    this example offers 2 use cases using sinewave and sawtooth signals, but you can keep the sawtooth for you to make it work. this is similar to the examples you followed in the video but quite easier as it is developed with HAL and not in LL like in the example.
    Regards 

    1 reply

    STeaAnswer
    ST Employee
    February 13, 2025

    Hello @waaizkhan ,

    have you seen the example in Cube Firmware _G4 examples:

     STM32CubeG4/Projects/NUCLEO-G474RE/Examples/DAC/DAC_SignalsGeneration2 at master · STMicroelectronics/STM32CubeG4 

    this example offers 2 use cases using sinewave and sawtooth signals, but you can keep the sawtooth for you to make it work. this is similar to the examples you followed in the video but quite easier as it is developed with HAL and not in LL like in the example.
    Regards