This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Configure hall sensor on STM32_ini.c

Hi

So, I need help to configure TIM4 for hall sensors in BLDC.

Regards

  • What help, exactly, do you need?

    What materials have you studied so far to help you?

    www.8052.com/.../160143

  • Sorry my mistake.

    the thing is, I have the configuration TIM4 like interfacing timer whit STM32 standart lib, but what I want is configure TIM4 for interfacing with 3 sensor of hall for motor controlling with STM32_ini.c

    exemple:

    TIM_ICInitStructure.TIM_Channel = TIM_Channel_1;

    TIM_ICInitStructure.TIM_ICPolarity = TIM_ICPolarity_Rising;

    TIM_ICInitStructure.TIM_ICSelection = TIM_ICSelection_TRC;

    TIM_ICInitStructure.TIM_ICPrescaler = TIM_ICPSC_DIV1;

    TIM_ICInitStructure.TIM_ICFilter = 0xF;

    TIM_ICInit(TIM4, &TIM_ICInitStructure);

    do this in STM32_ini.c