因为您没有使用MR5YPLAY16BITSET()来给该周期的值提供一个合适的值,并且它默认为零。因此,如果启动计时器值为零,当TMR5等于PR5(默认为零)时,它总是重置为零。如果启动计时器以外的值,当TMR5等于0xFFFF时,它将溢出,然后停留在零。
以上来自于百度翻译
以下为原文
Because you did not use TMR5_Period16BitSet() to give a suitable value to the value of the period, and it's default to zero. So if you start the timer with value zero, it will always reset to zero when TMR5 equals to PR5 (default to zero).
If you start the timer with value other than zero, it will just overflow when TMR5 equals 0xFFFF, then stays at zero.
因为您没有使用MR5YPLAY16BITSET()来给该周期的值提供一个合适的值,并且它默认为零。因此,如果启动计时器值为零,当TMR5等于PR5(默认为零)时,它总是重置为零。如果启动计时器以外的值,当TMR5等于0xFFFF时,它将溢出,然后停留在零。
以上来自于百度翻译
以下为原文
Because you did not use TMR5_Period16BitSet() to give a suitable value to the value of the period, and it's default to zero. So if you start the timer with value zero, it will always reset to zero when TMR5 equals to PR5 (default to zero).
If you start the timer with value other than zero, it will just overflow when TMR5 equals 0xFFFF, then stays at zero.
举报