跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

About PWM output by PWM function of timer RD (duty change)

Last Updated:01/16/2018

Question:

After changing a duty factor when the PWM function of Timer RD is used, an unintended wave may be output for a period of one cycle.
What is the cause of this unintended wave?

Answer:

With the PWM function of Timer RD, when the value of a general register to specify a duty factor (e.g.: TRDGRBi) is rewritten, a compare match will not occur at the changed cycle if the value of Timer RD counter i (TRDi) is less than the rewritten value of the general register.
By using buffer operation, the value rewritten to the general register will be applicable (reflected) after the next cycle starts.
*Note that some channels may not support PWM output using buffer operation. Please check this in the relevant user's manuals.
Suitable Products
RL78/F13
RL78/F14
RL78/F15
RL78/G14
  • 这篇文章对您有帮助吗?