Question
Hall sensor(TIM3) fails to control TIM1 for motor controll
Posted on January 25, 2014 at 14:06
Hello,
I most likely miss something, maybe anyone can get me on the right way. I'm usinghttp://www.mikrocontroller.net/articles/STM32_BLDC_Control_with_HALL_Sensor
as reference, in functionBLDCMotorPrepareCommutation()
I have placed some trace(blinking leds according to hall values read), that part seems to be working well, but at the TIM1 outputs I get 1st position I detect on interupt and after that is isn't changing.Basically tracing leds which are switching inside that function does switch as predicted - showing value I read from hall sensors. TIM1 outputs changes only once - after reset.I think it might be something with not loading shadow registers to real ones. how to confirm-solve this little issue?Current application is just simple PMSM motor spin up.Thank you in advance,Laurynas.