Toshiba – Toshiba TMP87CP24AF User Manual
Page 43
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

TOSHIBA
TMP87CM24A/P24A
Notes on the usage of INT3 pin (external interrupt)
1. In the case of using the INT3 pin for one edge (either rising or falling).
Note:
In order to set/rewrite external interrupt control register(EINTCR), set/rewirte external
interrupt
register
in
the
interrupt
disable
state
(IMF
=
0).
Then,
enable
interrupt
acceptance after interrupt latch cleared.
2. In the case of using the INT3 pin for both edge (rising and falling).
Note 1:
When using the INT3 pin for both edges (rising and falling), set bit 0 (INT3W) in EINTCR
(#0037
h
) to 1.
Note 2:
To detect the edge at which an interrupt is generated, read bit 7 (INTEDT) in EINT3CR
(#001 E
h
), that is, at the beginning of the interrupt processing routine.
Note3:
INTEDT is valid only for both-edge interrupts (INT3W = 1). INTEDT is set to 1 by an
interrupt as the non-selected edge; cleared to 0 after read automatically.
When rising edge is selected (INT3ES = 0), bit 7 in INTEDT (#001 E
h
) is set to 1 when a falling
edge is detected at the INT3 pin. (That is, remains 0 if rising edge is detected.)
When falling edge is selected (INT3ES = 1), bit 7 in INTEDT: #001 F
h
is set to 1 when a rising
edge is detected at the INT3 pin. (That is, remains 0 at falling edge.)
Note
4:
In
order
to
set/rewrite
external
interrupt
control
register(EINTCR),
set/rewirte
external
interrupt
register
in
the
interrupt
disable
state
(IMF
=
0).
Then,
enable
interrupt
acceptance after interrupt latch cleared.
3
-
24-43
2002
-
10-03