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.

CC1310如何生成低频PWM

Other Parts Discussed in Thread: CC1310

上周因为项目需要,开始研究CC1310这款芯片。在研究到pwmled这个例子时,发现可以用自带封装好的PWM函数进行pwm的生成。但是不喜欢在任务里跑,想要把他从任务里剥离,led的闪灭直接由pwm控制。

我的需求是PWM的周期是2s,占空比50%。于是我直接设置

params.periodUnits = PWM_PERIOD_US;
params.periodValue = pwmPeriod;
params.dutyUnits = PWM_DUTY_US;//PWM_DUTY_US;
params.dutyValue = 0;

pwmPeriod的值最大不过340000,再往大设置,PWM_Open()就会返回NULL。我也尝试了对GPTimerA0进行分频,也不起任何作用。

请问TI的工作人员,如果不考虑别的,就用自带的PWM接口,我需要怎么操作