beautypg.com

7 programming notes – Epson S1C88650 User Manual

Page 143

background image

S1C88650 TECHNICAL MANUAL

EPSON

135

5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Interrupt and Standby Status)

Refer to the explanations on the respective peripheral circuits for the setting content and control method for each bit.

5.14.7 Programming notes

(1) When executing the RETE instruction without

resetting the interrupt factor flag after an
interrupt has been generated, the same interrupt
will be generated. Consequently, the interrupt
factor flag corresponding to that routine must
be reset (writing "1") in the interrupt processing
routine.

(2) Beware. If the interrupt flags (I0 and I1) have

been rewritten (set to lower priority) prior to
resetting an interrupt factor flag after an
interrupt has been generated, the same interrupt
will be generated again.

(3) An exception processing vector is fixed at 2

bytes, so it cannot specify a branch destination
bank address. Consequently, to branch from
multiple banks to a common exception process-
ing routine, the front portion of an exception
processing routine must be described within the
common area (000000H–007FFFH).

(4) Do not execute the SLP instruction for 2 msec

after a NMI interrupt has occurred (when f

OSC1

is 32.768 kHz).

Table 5.14.6.1(c) Interrupt control bits

SR R/W

Address Bit

Name

Function

Comment

1

0

00FF29 D7

D6

D5

D4

D3

D2

D1

D0

FTC3

FTU3

FTC2

FTU2

FTC1

FTU1

FTC0

FTU0

PTM3 compare match interrupt factor flag

PTM3 underflow interrupt factor flag

PTM2 compare match interrupt factor flag

PTM2 underflow interrupt factor flag

PTM1 compare match interrupt factor flag

PTM1 underflow interrupt factor flag

PTM0 compare match interrupt factor flag

PTM0 underflow interrupt factor flag

0

R/W

(R)

No interrupt

factor is

generated

(W)

No operation

00FF2E D7

D6

D5

D4

D3

D2

D1

D0

FTC7

FTU7

FTC6

FTU6

FTC5

FTU5

FTC4

FTU4

PTM7 compare match interrupt factor flag

PTM7 underflow interrupt factor flag

PTM6 compare match interrupt factor flag

PTM6 underflow interrupt factor flag

PTM5 compare match interrupt factor flag

PTM5 underflow interrupt factor flag

PTM4 compare match interrupt factor flag

PTM4 underflow interrupt factor flag

0

R/W

(R)

Interrupt

factor is

generated

(W)

Reset

(R)

Interrupt

factor is

generated

(W)

Reset

(R)

No interrupt

factor is

generated

(W)

No operation