EM78P5840/5841/5842
8-bit Micro-controller
IOCF (Interrupt mask)
(Interrupt mask register)
Bit7
INT3
Bit6
X
Bit5
X
Bit4
INT1
Bit3
INT0
Bit2
X
Bit1
CNT1
R/W-0
Bit0
TCIF
R/W-0
-
-
R/W-0
R/W-0
-
R/W-0
Bit 0~1; 3~4 ; Bit 7 : interrupt enable bit
0 Î disable interrupt
1 Î enable interrupt
Bit 2, 5~6 : (remain these values to “0”othwise it will generate unpredicted interrupts)
The status after interrupt and the interrupt sources list as the table below.
Interrupt signal
SLEEP mode
GREEN mode
NORMAL mode
RESET and Jump to Interrupt (jump to address 8 Interrupt (jump to address 8
TCC time out
IOCF bit0=1
And "ENI"
ENI
address 0
at page0)
at page0)
DISI
No function
No function
No function
COUNTER1 time out
IOCF bit1=1
And "ENI"
Interrupt (jump to address 8 Interrupt (jump to address 8
No function
at page0)
at page0)
PORT70
Only at IRC mode or
crystal mode
Interrupt
(jump to address 8 at
page0)
RESET and Jump to Interrupt
address 0
(jump to address 8 at page0)
(at P70S = 0)
Interrupt
(jump to address 8 at
page0)
PORT71
Only at P71S = 0
Interrupt
(jump to address 8 at page0)
RESET and Jump to
address 0
Interrupt
(jump to address 8 at
(jump to address 8 at page0) page0)
PORT73
IOCF bit3 bit7 =1
And "ENI"
RESET and Jump to Interrupt
address 0
ADI
Interrupt
IOCE bit5 = 1
And “ENI
PWM1
IOCE bit4 = 1
And “ENI
No function
No function
No function
(jump to address 8 at
page0)
Interrupt
(jump to address 8 at
page0)
Interrupt
(jump to address 8 at page0)
PORT70 's interrupt function is controlled by IOCF bit 3. It's falling edge or rising edge trigger (controlled
by CONT register bit7).
PORT71 's interrupt function is controlled by IOCF bit 4. It’s falling edge trigger.
PORT73 's interrupt function is controlled by IOCF bit 7. They are falling edge trigger.
ADI interrupt source function is controlled by RE PAGE0 bit 5. It is rising edge trigger after ADC
sample complete.
__________________________________________________________________________________________________________________________________________________________________
* This specification is subject to change without notice.
25
2004/11/10 V2.6