Skip to main content
Associate III
September 6, 2023
Solved

MCSDK HRTIM

  • September 6, 2023
  • 3 replies
  • 3433 views

Does MCSDK support hrtim?

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

    Hello Iskan,

    The STM32 Motor Control Software Development Kit (MCSDK) does not utilize the HRTIM (High Resolution Timer). For our motor control, only the advanced-control timer (such as TIM1) is required to generate the output PWM waveform.

    Best regards

    3 replies

    iskanAuthor
    Associate III
    September 6, 2023

    I want to use hrtim to replace time1 in the ST motor library code, what should I do?

    Issamos
    Lead III
    September 6, 2023

    Hello @iskan 

    Can you add a few details to your question. I'm not sure I understand what you want to know.

    Best regards.

    II

    iskanAuthor
    Associate III
    September 6, 2023

    I want to use hrtim to replace time1 in the ST motor library code, what should I do?

    FouadB
    ST Employee
    September 7, 2023

    Hello Iskan,

    Please find here an introduction about HRTIMER capabilities and the mode suitable for motor control. (from p17, 18, 19): https://www.st.com/resource/en/product_training/STM32G4-WDG_TIMERS-High_Resolution_Timer_HRTIM.pdf

    You can use CubeMx to activate and set up the HRTIMER and subsequently update the FW FOC (MCSDK).

    Best regards

    If you agree with my answer, please accept it by clicking on 'Accept as solution'.""
    FouadB
    FouadBBest answer
    ST Employee
    September 6, 2023

    Hello Iskan,

    The STM32 Motor Control Software Development Kit (MCSDK) does not utilize the HRTIM (High Resolution Timer). For our motor control, only the advanced-control timer (such as TIM1) is required to generate the output PWM waveform.

    Best regards

    If you agree with my answer, please accept it by clicking on 'Accept as solution'.""