STM32F334 HRTIM形成移相全桥波形有异常

2019-07-14 13:37发布

HRtiM形成移相全桥波形,
Q1 Q2超前臂   Q3 Q4滞后臂
HRTIM1_CHC1-Q1  HRTIM1_CHC2-Q2
HRTIM1_CHB1-Q3  HRTIM1_CHB2-Q4
以下是CUBE里面的设置:
Master Timer 144M Period 46080 Free-running mode
Preload Enable
Repetition Update enabled
Compare UNIT1 Enable

Timer C  46080
Half mode is enbable
Preload Enable
Repetition Update enabled
Deadtime is inserted between
Reset Trigger Sources is Master timer period event
Compare UNIT1 Enable

Timer B  46080
Half mode is enbable
Preload Enable
Repetition Update enabled
Deadtime is inserted between
Reset Trigger Sources is Master timer Compare1 event
Compare UNIT1 Enable

在程序中调节移相角:
__HAL_HRTIM_SETCOMPARE(&hhrtim1, HRTIM_TIMERINDEX_MASTER,

HRTIM_COMPAREUNIT_1, Phase);//        

很有规律Phase每次减少8,都是按4次 然后  移相全桥主变压器,异响一下,也就是32/23040*180度=0.25度的时候
怀疑是 HRTIM形成移相全桥波形 有异常,但是示波器观察不出来,当异常的时候,
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。