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.
您好、专家:
您有任何可以在 CCS Theia 1.3.1中共享的示例演示吗?该演示说明了如何使用 PWM 打开/关闭/更改 LED 的占空比?谢谢。
比尔
您好、Bill、
我们的 SDK 提供了使用 PWM 来驱动 LED 的相关演示代码。 ...:\ti\mspm0_sdk_1_30_00_03\examples\nortos\LP_MSPM0C1104\driverlib\timx_timer_mode_pwm_edge_sleep
您可以参考以下 API:
要开启: DL_TimerG_startCounter;
要关闭、请执行以下操作:DL_TimerG_stopCounter;
要更改占空比: DL_TimerG_setCaptureCompareValue
B.R.
佐伊
大家好、Zoey:
非常感谢。
比尔