Toshiba TC9314F Manual page 46

Cmos digital integrated circuit silicon monolithic
Table of Contents

Advertisement

(4)
Interrupt enable flip-flops (IEF1, IEF2)
The interrupt enable flip-flops 1 and 2 are flags to enable or disable acceptance of interrupts 1 and
2, respectively.
To set interrupt enable 1 flip-flop (IEF1) to "1", set the INTS1 bit to "1", or execute the RN
instruction with INTE1 set to "1". The flip-flop is reset to "0" when interrupt 1 is received.
To set interrupt enable 2 flip-flop (IEF2) to "1", set the INTS2 bit to "1", or execute the RN
instruction with INTE2 set to "1". The flip-flop is reset to "0" when interrupt 2 is received.
(5)
Interrupt detector circuit
When the interrupt flip-flop is set to "1" with interrupt enabled, an interrupt request is issued to
the CPU. When the interrupt is accepted, the interrupt enable bit and interrupt enable flip-flop are
reset to "0". This disables any concurrent interrupt occurring immediately after the current interrupt
is generated. If interrupt 1 and interrupt 2 requests occur simultaneously, the CPU accepts interrupt
1, which has the higher priority.
(6)
Interrupt control ports
To set interrupts, use the interrupt control ports (φL28~φL2C) on the IO map.
• POL1, POL2 ..................Interrupt input logic control bits
1: Positive logic input
0: Negative logic input
• INTC1, INTC2 ..............Interrupt input control bits
1: Input on
0: Input off
Setting the INTC bit to "0" resets the corresponding noise rejection circuit, the interrupt counter
circuit, and the interrupt flip-flop.
• INT10~INT15 ...............Interrupt 1 counter setting bits
The measuring time can be set in 63 increments (one increment: 200 µs) from a minimum time
of 120 µs to a maximum time of 12.5 ms.
Note 50: Data setting "00H" is prohibited.
Measuring time = (0.2 × (N − 1) + 0.12) ms
• INTE1............................Interrupt 1 enable bit
This bit is used to enable or disable acceptance of interrupt 1 by software.
1: Enables interrupt
0: Disables interrupt
Setting INTE1 to "1" enables acceptance of interrupt 1.
When interrupt 1 or interrupt 2 is generated, bit INTE1 is reset to "0" to disable acceptance of
interrupts. Also, to temporarily disable the interrupt for a section of the program, set INTE1 to "0"
by software. However, as the interrupt counter continues to operate, if the interrupt condition is
satisfied, the counter sets the interrupt 1 flip-flop to 1. This sets the state to interrupt standby.
*: Measuring error = 0.2 ms
N: Setting increments (1~63)
46
TC9314F
2003-07-03

Advertisement

Table of Contents
loading

Table of Contents