Pular para o conteúdo principal
Renesas Brasil - Knowledgebase

What processing to use without using interrupts?

Latest Updated:08/01/2001


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


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