Skip to main content
Explorer II
April 10, 2025
Question

STM32G051 - Current Control, Cycle by Cycle

  • April 10, 2025
  • 1 reply
  • 775 views

Hello,

I am new with STM32. We would like to do a current control exactly like on this document :

https://www.st.com/resource/en/product_training/STM32G0-Analog-Comparators-COMP.pdf

page 13

Marc38_0-1744274148620.png

But we would like to use COMP1 for ZCD and COMP2 for overcurrent.

However, it is not clear if it is possible and how to configure the MCU.

Marc38_3-1744276720125.png

Anyone can help ?

Best regards,

Marc

    This topic has been closed for replies.

    1 reply

    Super User
    April 10, 2025

    @Marc38 wrote:

    I'm new with STM32. We would like to do a current control exactly like on this document 


    Welcome to the forum.

    Do you have experience with any other microcontroller(s) ?

     

    On Getting Started with STM32:

    https://community.st.com/t5/stm32-mcus-products/for-better-learning-stm32-programming-and-debugging/m-p/719468/highlight/true#M260690

    Marc38Author
    Explorer II
    April 10, 2025

    Thanks.

    I have experience with TMS320F28XXX (Texas Instrument) and PIC (Microchip).