Hi, experts:
Do you have any example demo could share in CCS Theia 1.3.1, which shows how to turn on/off/change duty of leds by using pwm?Thanks.
Bill
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.
Hi, experts:
Do you have any example demo could share in CCS Theia 1.3.1, which shows how to turn on/off/change duty of leds by using pwm?Thanks.
Bill
Hi Bill,
Our SDK has the related demo code to drive LED by using PWM. ...:\ti\mspm0_sdk_1_30_00_03\examples\nortos\LP_MSPM0C1104\driverlib\timx_timer_mode_pwm_edge_sleep
Here is the API you can refer to:
To turn on: DL_TimerG_startCounter;
To turn off: DL_TimerG_stopCounter;
To change duty cycle: DL_TimerG_setCaptureCompareValue
B.R.
Zoey