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.

[参考译文] MSPM0G3506:在 PWM 模式下配置 B 组 GPIO

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1387151/mspm0g3506-configure-group-b-gpio-in-pwm-mode

器件型号:MSPM0G3506
主题中讨论的其他器件:SysConfig

工具与软件:

我想将 GPIO PB4配置为可以驱动 Booster Pack 蜂鸣器的输出、我没有得到任何将 PB4视为输出引脚的示例或使用 GPIO 组 B 的任何示例。

我要求在 PWM 模式下配置 PB4、以便它能够驱动 mspm0g357中的蜂鸣器。

有人可以帮助我进行相关的 GPIO 配置、以选择 PB4作为输出、以及如果我必须将相同的 GPIO 配置为 PWM、则需要哪些附加设置。

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

    可以在 SysConfig 中导入此代码并更改 PWM 配置。 然后您可以在 PB4上输出 PWM。