
60
EPSON
S1C6S460 TECHNICAL MANUAL
CHAPTER 8: TIMERS
IPT (F02H [D0], R)
This is the interrupt factor flag of the programmable timer.
When "1" is read: Interrupt has occurred
When "0" is read: Interrupt has not occurred
Writing: Invalid
From the status of this flag, the software can decide whether the programmable timer interrupt. Note,
however, that even if the interrupt is masked, this flag will be set to "1" by the counter value will become
"00H".
Be sure that the interrupt factor flag reading is done with the interrupt in the DISABLE state (DI). Read-
ing the interrupt factor flag while in the ENABLE state (EI) may cause malfunction.
At initial reset, this flag is set to "0".
8.3.4 Programming notes
(1) When initiating programmable timer count, perform programming by the following steps:
1. Set the initial data to RD0–RD7.
2. Reset the programmable timer by writing "1" to PTRST.
3. Start the down-count by writing "1" to PTRUN.
(2) When the reload register (RD0–RD7) value is set at "00H", the down-counter becomes a 256-value
counter.
(3) When data of the timer is read consecutively in 8 bits in the RUN mode, perform the reading after
suspending the timer once and then set the PTRUN to "1" again. Moreover, it is required that the
suspension period be within 1/4 cycle of the input clock (in case of 1/2 duty). Accordingly, when the
input clock is a fast clock faster than a 256 Hz, high speed processing by OSC3 is required.
(4) Be sure that writing to the interrupt mask register is done with the interrupt in the DISABLE state
(DI). Writing to the interrupt mask register while in the ENABLE state (EI) may cause malfunction.
(5) Be sure that the interrupt factor flag reading is done with the interrupt in the DISABLE state (DI).
Reading the interrupt factor flag while in the ENABLE state (EI) may cause malfunction.