你好,我在配置HRTIM的Fault功能,首先配置fault enable: 然后External Event: 接下来配置Fault line: 然后配置Interrupt Configuration: 启动HRTIM Fault global Interrupt: 设置好后,在COMP1的输入正弦信号,复制3.3V,DAC输出配置位2048,预计正弦信号超过1.65V就会触发Fault Event.示波器波形看一看到PWM被封住: 但是中断句柄一直无法进入, void HRTIM1_FLT_IRQHandler(void) { / USER CODE BEGIN HRTIM1_FLT_IRQn 0 / / USER CODE END HRTIM1_FLT_IRQn 0 / HAL_HRTIM_IRQHandler(&hhrtim1,HRTIM_TIMERINDEX_COMMON); / USER CODE BEGIN HRTIM1_FLT_IRQn 1 / / USER CODE END HRTIM1_FLT_IRQn 1 / } 请教哪里设置错误了。
|