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.

[FAQ] [参考译文] [常见问题解答] MSPM0L1106:从单个计时器 G 生成低电平有效互补 PWM 的方法(TIMG0)

Guru**** 657500 points
Other Parts Discussed in Thread: MSPM0L1306, SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1233745/faq-mspm0l1106-method-to-generate-active-low-complementary-pwm-from-single-timer-g-timg0

器件型号:MSPM0L1106
主题中讨论的其他器件:MSPM0L1306SysConfig

仅计时器的 TIMAx 实例支持用于 PWM 生成的死区功能、MSPM0器件中提供的 TIMGx 实例不支持该功能。

 可以对 M0Lx 器件的 timx_timer_mode_pwm_edge_sleep 工程进行以下更改、以在 MSPM0L1306 Launchpad (LP‑MSPM0L1306)上添加低电平有效互补 PWM。

SysConfig 中不支持 CCACT 以用于配置、因此应在 main.c 中添加以下代码

 

SYSCFG_DL_init ();

   *( 无符号 内部 *) 0x40085854 = 0x00000440;

   DL_TimerG_startCounter (PWM_0_INST);

输出:

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Frangline:

    感谢您的发帖。 我相信其他人会发现此方法很有用。 我现在要将该主题标记为已结束。  

    此致、
    Brandon Fisher