Specifications

Table Of Contents
S1C62740 TECHNICAL SOFTWARE EPSON II-37
CHAPTER 6: PERIPHERAL CIRCUITS (Clock Timer)
However, regardless of the interrupt mask register setting, the
interrupt factor flag is set to "1" at the falling edge of the corre-
sponding signal.
Clock timer timing chart
FrequencyRegisterAddress
E4H
D3
D0
D1
D2
4 Hz
2 Hz
32 Hz interrupt request
8 Hz interrupt request
1 Hz interrupt request
E3H
2 Hz interrupt request
D3 1 Hz
D0
D1
D2
128 Hz
16 Hz
8 Hz
32 Hz
64 Hz
Fig. 6.7.1 Timing chart of clock timer
Following program shows the clock timer controlling procedure.
Label Mnemonic/operand Comment
Example program
for the clock timer
;*
;* CLOCK TIMER
;*
ZIT EQU 0C6H ;CLOCK TIMER INTERRUPT FACTOR FLAG
ZEIT EQU 0CCH ;CLOCK TIMER INTERRUPT MASK REGISTER
ZTMRST EQU 0E2H ;CLOCK TIMER RESET
ZTML EQU 0E3H ;CLOCK TIMER DATA LOW
ZTMH EQU 0E4H ;CLOCK TIMER DATA HIGH
;
ORG 102H
JP TMINT ;TIMER INTERRUPT ROUTINE
;
TMINIT:
LD X,ZTMRST ;RESET CLOCK TIMER
OR MX,0001B
;
DI
LD X,ZIT ;RESET IT FLAGS