Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

What is the error of the clock used for the timer, etc.?

Last Updated:12/26/2017

Question:

What is the error of the clock used for the timer, etc.?

Answer:

There is no error between the internally generated clock based on fxx and the calculated value.
If there is an error, it is caused by the variation of the oscillation clock (main system clock).

Now, judging from the contents of your inquiry, what you are describing is more likely to be a timer interrupt variation rather than a clock error.
The timer interrupt variation is the variation that occurs in the interval from interrupt occurrence until the start of processing, and varies between 9 and 16 clocks, in the case of RL78/G13, depending on the instruction that is currently being executed.
(It's also based on the relationship with the other interrupts. The interval is even longer if the status is the interrupt disabled state.)

Suitable Products
RL78 Family