工具与软件:
团队成员、您好!
我如何才能仅生成一个 PWM 脉冲? 我是否需要在内部使用单次触发模式中断并触发 PWM 中断?
如果有任何示例代码、请告诉我。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
团队成员、您好!
我如何才能仅生成一个 PWM 脉冲? 我是否需要在内部使用单次触发模式中断并触发 PWM 中断?
如果有任何示例代码、请告诉我。
我想您可以使用示例 timx_timer_mode_pwm_edge_sleep:
https://dev.ti.com/tirex/explore/node?node=A__AJKqQhYQGIeFg2xNN9p1ng__MSPM0-SDK__a3PaaoK__LATEST
并向添加呼叫
> DL_Timer_setCounterRepeatMode (PWM_0_INST、 DL_TIMER_REPEAT_MODE_DISABLED);
每次调用 DL_TimerG_startCounter ()时,您都会得到一个脉冲。