HT68F04 Holtek Semiconductor, HT68F04 Datasheet - Page 106

no-image

HT68F04

Manufacturer Part Number
HT68F04
Description
Small Package Enhanced Flash Type 8-Bit MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT68F04
Manufacturer:
ST
Quantity:
14 500
Interrupts
Interrupts are an important part of any microcontroller
system. When an external event or an internal function
such as a Timer Module or an A/D converter requires
microcontroller attention, their corresponding interrupt
will enforce a temporary suspension of the main pro-
gram allowing the microcontroller to direct attention to
their respective needs. The device contains several ex-
ternal interrupt and internal interrupts functions. The ex-
ternal interrupt is generated by the action of the external
INT pin, while the internal interrupts are generated by
various internal functions such as the TMs, Comparator,
Time Base, LVD, EEPROM, SIM and the A/D converter.
Interrupt Registers
Overall interrupt control, which basically means the set-
ting of request flags when certain microcontroller condi-
tions occur and the setting of interrupt enable bits by the
application program, is controlled by a series of regis-
ters, located in the Special Purpose Data Memory, as
shown in the accompanying table. The number of regis-
ters depends upon the device chosen but fall into three
categories. The first is the INTC0~INTC2 registers
which setup the primary interrupts, the second is the
MFI0~MFI2 registers which setup the Multi-function in-
terrupts. Finally there is an INTEG register to setup the
external interrupt trigger edge type.
Each register contains a number of enable bits to enable
or disable individual registers as well as interrupt flags to
indicate the presence of an interrupt request. The nam-
·
Rev. 1.00
Interrupt Register Contents
¨
* MFI1 register is reserved for advanced expansion. It is recommended that do not access the MFI1 register and
keep its initial setting to avoid malfunction.
HT66F03
INTEG
INTC0
INTC1
INTC2
Name
MFI1*
MFI0
MFI2
TB0F
T1AF
¾
¾
¾
¾
7
MF0F
T1PF
ADF
¾
¾
¾
6
MF2F
T0AF
CPF
DEF
¾
¾
5
106
TB1F
T0PF
HT66F03/HT66F04/HT68F03/HT68F04
INTF
LVF
¾
¾
4
Reserved
ing convention of these follows a specific pattern. First is
listed an abbreviated interrupt type, then the (optional)
number of that interrupt followed by either an ²E² for en-
able/disable bit or ²F² for request flag.
Global
INT Pin
Comparator
A/D Converter
Multi-function
Time Base
LVD
EEPROM
TM
Bit
Function
Interrupt Register Bit Naming Conventions
MF0E
TB0E
T1AE
¾
¾
3
T1PE
Enable
CPE
ADE
MFnE
TBnE
TnPE
TnAE
TnBE
INTE
CPE
ADE
DEE
¾
¾
LVE
EMI
2
Bit
Request
INTS1
MF2E
T0AE
INTE
DEE
MFnF
TBnF
TnPF
TnAF
TnBF
INTF
Flag
CPF
ADF
DEF
LVF
¾
1
¾
April 16, 2010
n=0~2
n=0~1
n=0~2
n=2
www.DataSheet4U.com
INTS0
Notes
TB1E
T0PE
EMI
LVE
¾
¾
¾
¾
¾
¾
¾
0

Related parts for HT68F04