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.
例子是..\ti\controlSUITE\development_kits\TemplateProjects\DPLibv3Template-F2802x
里面代码:PWM_1ch_CNF(1, 300,1,0); //PWM初始化
PWMDRV_1ch_Duty=&Duty1A;Duty1A =_IQ24(0.8); 是直接输出0.8占空比的PWM波 。
但计算出的Duty1A的值是(16777216*0.8),远大于300,
通过单步调试发现寄存器CMPAM,TBPRDM 的值发送改变,正好是0.8的关系。
不知道参数是如何传递 ?通过哪段代码实现这个功能的?PWMDRV_1ch_Duty 主要起个什么作用,在其他地方没看到调用, 请赐教 !! 麻烦了!