RX 8564 LC

13.2.4. Diagram of fixed-cycle timer interrupt function13.2.4.1. Operation example of level interrupt mode ( TI / TP = " 0 " )After an interrupt event has occurred, this function operates only once.

Start of fixed-cycle timer operation

TE bit

(1)

 

 

" 1 "

TIE bit

(4)

 

(5)

/INT output
TF bit

 

(3)

 

 

 

1st period

2nd period

Internal interrupt

(1)

• • • 01 h 00 h

• • • 01 h 00 h

processing

 

(2)

(6)

 

 

(6)Even if the TE bit is cleared to zero, the TF bit value

is held as "1". Also, the /INT pin is not canceled. The TF bit value is held until it is directly cleared to zero.

After the TF bit is cleared to zero, the /INT pin is set to Hi-Z mode regardless of the TE bit's value.

(7)

When the TF bit is cleared to zero, /INT is canceled.

When TE = "0" the countdown is stopped

" 1 " " 0 "

" 1 " " 0 "

Hi - z " L "

" 1 " " 0 "

The fixed-cycle timer function starts (the countdown starts) when the TE bit value changes from "0" to "1".

Before starting the fixed-cycle timer interrupt function each time, be sure to write a value (preset value/Reg-0F[h]) as the timer's down counter value (when TE = "0").

RTC's internal operation

Write operation

Before starting the fixed-cycle timer interrupt function each time, be sure to write a value (preset value/Reg-0F[h]) as the timer's down counter value (when TE = "0").

(Note) Note with caution that the preset value must be set or reset to enable correct operation.

Before entering operation settings, we recommend first clearing the TE bit to "0" and then clearing the TF and TIE bits to "0" in that order, so that all control-related bits are zero-cleared (= set to operation stop mode) to prevent hardware interrupts from occurring inadvertently while entering settings.

(1)When the TE bit value is changed from "0" to 1", the fixed-cycle timer's countdown begins.

(2)A fixed-cycle timer interrupt event occurs when the down counter value goes from 01h to 00h during a countdown in which the down counter's count value is decremented at each source clock cycle.

(3)When a fixed-cycle timer interrupt event occurs, the TF bit value is changed to "1".

(4)If the TIE bit = "1" when a fixed-cycle timer interrupt occurs, /TIRQ pin output goes low.

If the TIE bit = "0" when a fixed-cycle timer interrupt occurs, /TIRQ pin output remains Hi-Z.

(5)During the period when the TF bit value is "1" following the occurrence of an interrupt event, the TIE bit can be set to switch the /INT pin to any status.

(6) As long as the TE bit value remains “1", the operation sequence "countdown by timer's down counter internal event processing loading of preset value countdown…" is repeated regardless of the operation mode, etc. However, this operation sequence has no effect unless the TF bit has been cleared to zero.

If the TE bit value remains "1" and only the TF bit is cleared to zero, (the fixed-cycle timer continues to operate), note with caution that an interrupt event will occur the next time the counter value changes from 01h to 00h (the TF bit will become "1" again and the /INT pin status will be "L").

(6)When the TF bit = "1" its value is retained until it is cleared to zero.

Even when the TE bit is cleared to zero, the TF bit value is retained as "1" and the /INT pin status is not reset.

(7)After the TF bit is cleared to zero, the /TIRQ pin is set to Hi-Z status regardless of the TIE bit's value.

Page 23

ETM12E-01