Skip to main content
Knowledgebase
Home
Renesas Electronics Europe - Knowledgebase

What processing to use without using interrupts?

Latest Updated:08/01/2001

Question:

Can I use the following processing to simply wait a given time interval with the timer without using interrupts?

(1) TMMK50 = 0 (interrupt enabled)
(2) Timer-related register set
(3) Timer start
(4) Endless loop until interrupt request TMIF50 = 1

Answer:

There is a problem with this method.
If you want to perform timer processing without using interrupts, please mask the interrupt.
You can then wait in an endless loop until TMIF50 is set, but before entering the loop, clear TMIF50.
Also, once TMIF50 is set and the loop is exited, clear TMIF50.
Suitable Products
RL78 Family
78K Family