本帖最后由 airwill 于 2015-6-5 08:11 编辑
看这里的代码:
TIM_ICStructInit(&TIM_HALLICInitStructure);
TIM_HALLICInitStructure.TIM_Channel = TIM_Channel_1;
TIM_HALLICInitStructure.TIM_ICPolarity = TIM_ICPolarity_Falling;
TIM_HALLICInitStructure.TIM_ICFilter = pDParams_str->hInpCaptFilter;
TIM_ICInit(TIMx,&TIM_HALLICInitStructure);
....................
/* Enables the XOR of channel 1, channel2 and channel3 */
TIM_SelectHallSensor(TIMx, ENABLE);
霍尔信号还是单边沿检测.
当然, 如果你只是完全静止条件下的变化, 应该不和这个问题有关, 如果电机发生震动, 那就不能排除这个因素了
|