
Rev. 1.21
154
�ove��e� ��� 2�1�
Rev. 1.21
155
�ove��e� ��� 2�1�
HT66F488/HT66F489
A/D Flash MCU with EEPROM
HT66F488/HT66F489
A/D Flash MCU with EEPROM
INT0 Pin
EEPROM
INT0F
DEF
INT0E
DEE
EMI
04H
EMI
20H
EMI
24H
Time Base 0
TB0F
TB0E
PTM0P
PTM0PF
PTM0PE
EMI
30H
Interrupt
Name
Request
Flags
Enable
Bits
Master
Enable
Vector
EMI auto disabled in ISR
Priority
High
Low
CTMP
CTMPF
CTMPE
CTMA
CTMAF
CTMAE
M. Funct. 0
MF0F
MF0E
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
34H
EMI
38H
M. Funct. 1
MF1F
MF1E
Time Base 1
TB1F
TB1E
PTM0A
PTM0AF
PTM0AE
A/D
ADF
ADE
EMI
2CH
EMI
28H
PTM1P
PTM1PF
PTM1PE
M. Funct. 2
MF2F
MF2E
PTM1A
PTM1AF
PTM1AE
STMP
STMPF
STMPE
STMA
STMAF
STMAE
INT1 Pin
INT1F
INT1E
EMI
08H
INT2 Pin
INT2F
INT2E
EMI
0CH
INT3 Pin
INT3F
INT3E
EMI
10H
INT4 Pin
INT4F
INT4E
EMI
14H
INT5 Pin
INT5F
INT5E
EMI
18H
SIM
SIMF
SIME
EMI
3CH
EMI
1CH
UART
UARF
UARE
LVD
LVF
LVE
Interrupt Structure
External Interrupt
The external interrupt is controlled by signal transitions on the pins INT0~INT5. An external
interrupt request will take place when the external interrupt request flag, INTnF, is set, which
will occur when a transition, whose type is chosen by the edge select bits, appears on the external
interrupt pin. To allow the program to branch to the interrupt vector address, the global interrupt
enable bit, EMI, and the external interrupt enable bit, INTnE, must first be set. Additionally the
correct interrupt edge type must be selected using the INTEGn register to enable the external
interrupt function and to choose the trigger edge type. As the external interrupt pin is pin-shared
with an I/O pin, it can only be configured as external interrupt pin if its external interrupt enable bit
in the corresponding interrupt register has been set. The pin must also be setup as an input by setting
the corresponding bit in the port control register. When the interrupt is enabled, the stack is not full
and the correct transition type appears on the external interrupt pin, a subroutine call to the external
interrupt vector, will take place. When the interrupt is serviced, the external interrupt request flag,
INTnF, will be automatically reset and the EMI bit will be automatically cleared to disable other
interrupts. Note that the pull-high resistor selection on the external interrupt pin will remain valid
even if the pin is used as an external interrupt input.
The INTEG0~INTEG1 registers are used to select the type of active edge that will trigger the
external interrupt. A choice of either rising or falling or both edge types can be chosen to trigger an
external interrupt. Note that the INTEG0~INTEG1 registers can also be used to disable the external
interrupt function.