Rev. 1.71
114
April 11, 2017
Rev. 1.71
115
April 11, 2017
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
HT66F002/HT66F0025/HT66F003/HT66F004
Cost-Effective A/D Flash MCU with EEPROM
If an interrupt requires immediate servicing while the program is already in another interrupt service
routine, the EMI bit should be set after entering the routine, to allow interrupt nesting. If the stack
is full, the interrupt request will not be acknowledged, even if the related interrupt is enabled, until
the Stack Pointer is decremented. If immediate service is desired, the stack must be prevented from
becoming full. In case of simultaneous requests, the accompanying diagram shows the priority that
is applied. All of the interrupt request flags when set will wake-up the device if it is in SLEEP or
IDLE Mode, however to prevent a wake-up from occurring the corresponding flag should be set
before the device is in SLEEP or IDLE Mode.
INT Pin
Time Base 0
INTF
TB0F
INTE
TB0E
EMI
04H
EMI
08H
EEPROM
DEF
DEE
0CH
10H
14H
18H
1CH
Interrupt
Name
Request
Flags
Enable
Bits
Master
Enable
Vector
EMI auto disabled in ISR
Priority
High
Low
M. Funct. 1
MF1F
MF1E
Interrupts contained within
Multi-Function Interrupts
xxE
Enable Bits
xxF
Request Flag, auto reset in ISR
Legend
xxF
Request Flag, no auto reset in ISR
EMI
EMI
EMI
STM P
STMP0F
STMP0E
STM A
STMA0F
STMA0E
EMI
EMI
Time Base 1
TB1F
TB1E
M. Funct. 0
MF0F
MF0E
A/D
ADF
ADE
PTM P
PTMP1F
PTMP1E
PTM A
PTMA1F
PTMA1E
HT66F003 only
Interrupt
Name
Request
Flags
Enable
Bits
Interrupt Structure – HT66F002/HT66F0025/HT66F003
INT0 Pin
Time Base 0
INT0F
TB0F
INT0E
TB0E
EMI
04H
EMI
08H
EEPROM
DEF
DEE
0CH
10H
14H
18H
1CH
Interrupt
Name
Request
Flags
Enable
Bits
Master
Enable
Vector
EMI auto disabled in ISR
Priority
High
Low
INT1 Pin
INT1F
INT1E
Interrupts contained within
Multi-Function Interrupts
xxE
Enable Bits
xxF
Request Flag, auto reset in ISR
Legend
xxF
Request Flag, no auto reset in ISR
EMI
EMI
EMI
PTM0 P
PTMP0F
PTMP0E
PTM0 A
PTMA0F
PTMA0E
EMI
EMI
Time Base 1
TB1F
TB1E
M. Funct. 0
MF0F
MF0E
A/D
ADF
ADE
PTM1 P
PTMP1F
PTMP1E
PTM1 A
PTMA1F
PTMA1E
Interrupt
Name
Request
Flags
Enable
Bits
Interrupt Structure – HT66F004