Cypress技术william hill官网
直播中

董达勇

7年用户 216经验值
私信 关注
[问答]

发现周期PWM UM发生器偏移

我发现PWM用户模块估计输出周期增加一个偏移等于你的外部时钟的1 CLK周期。因此,公式最后保持:Tou= n周期*TCLK+1CyCuryCLK;(其中n期为计数器周期,CLK输入RISNG边数计算PWM输出方波周期)。我认为这是由于一种预充电或设置时间TE PWM UM需要再次充电计数器中的值或一旦倒计时结束中断。我还没有在PWM数据表中找到任何关于这个的说法。谁能证实这个理论,或者我错了?谢谢大家。

以上来自于百度翻译


     以下为原文
  I have found the PWM user modules estimate the output period adding an Offset equal
to 1 clk cycle of your external clock.
Therefore the formula remains finally:

Tout= nºPERIOD*Tclk+1cycle_clk;

(Where nºPERIOD is the counter PERIOD, the number of clk input risng edges to calculate
the PWM output square wave period).

I have supposed it's due to a kind of precharge or setup time te PWM UM needs to charge again the values
in the counter or make the interrupts once the countdown is over.

I haven't find any statement about this in the PWM datasheet.

Anyone could confirm that theory or I'm wrong?

Thanks for all.

回帖(2)

马雁翔

2019-3-13 14:58:44
你好,
是的,你是对的。实际周期值是在周期寄存器+ 1中输入的值。它也提到在PWM UM数据表中。
当做,
基肖尔

以上来自于百度翻译


     以下为原文
  Hi,
     
    Yes you are right. The actual period value is the value whatever you are entering in Period register + 1. It is also mentioned in the PWM UM datasheet.
     
    Regards,
    Kishore.
举报

马昱

2019-3-13 15:05:35
你好,
额外的时钟是倒计时的PWM计数器值从1到0倒计时。
配置选项卡显示了“周期”值,它考虑了这个额外的时钟。可以根据所显示的值设置周期值。
当做,
DASG

以上来自于百度翻译


     以下为原文
  Hi,
     
    The extra clock is to count down the PWM counter value from 1 to 0 when counting down.
    The configuration tab shows the "Period" value which takes into account this extra clock. You can set the Period value depending upon this value displayed.
     
    Regards,
    dasg
举报

更多回帖

发帖
×
20
完善资料,
赚取积分