2023-10-05 11:58 AM
Hello everyone,
I am unable to understand how to get one pulse . Tried methods from online but cannot get any result. I only see a sine pulse from the terminals in oscilloscope.
I would like to give a pulse of 15 V and 3A for 50 micro seconds to my 3 phase PMSM motor using STM32G431 discovery kit.Please help me find a solution.
And in main fuction i added HAL_TIM_OnePulse_Start(&htim1, TIM_CHANNEL_1) ;
Thanks in advance
2023-10-06 02:59 AM
Hello @Kv.2,
N-pulse waveform generation using one pulse is quite detailed in the timers cookbook AN4776,
I also recommend checking its corresponding software package X-CUBE-TIMCOOKER, following this path :
Projects> STM32F302R8- Nucleo > NpulseWave_OnePulseMode.
This example runs on STM32F3 devices but can be tailored to any other device and dev board.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.