HT56R66 Holtek Semiconductor Inc., HT56R66 Datasheet - Page 71

no-image

HT56R66

Manufacturer Part Number
HT56R66
Description
Tinypower Tm A/d Type With Lcd 8-bit Otp Mcu
Manufacturer
Holtek Semiconductor Inc.
Datasheet
nal peripheral interrupt pin is pin-shared with one of the
segment pins, and is configured as a peripheral interrupt
pin via a configuration option. When the interrupt is en-
abled, the stack is not full and a negative transition type
appears on the external peripheral interrupt pin, a sub-
routine call to the Multi-function interrupt vector at
location18H, will take place. When the external periph-
eral interrupt is serviced, the EMI bit will be cleared to
disable other interrupts, however only the MFF interrupt
request flag will be reset. As the PEF flag will not be au-
tomatically reset, it has to be cleared by the application
program.
Timer/Event Counter Interrupt
For a Timer/Event Counter 0 or Timer/Event Counter 1
interrupt to occur, the global interrupt enable bit, EMI,
and the corresponding timer interrupt enable bit, ET0I or
ET1I must first be set. An actual Timer/Event Counter in-
terrupt will take place when the Timer/Event Counter re-
quest flag, T0F or T1F is set, a situation that will occur
when the Timer/Event Counter overflows. When the in-
terrupt is enabled, the stack is not full and a Timer/Event
Counter overflow occurs, a subroutine call to the timer
interrupt vector at location 0CH or 10C, will take place.
When the interrupt is serviced, the timer interrupt re-
quest flag, T0F or T1F, will be automatically reset and
the EMI bit will be automatically cleared to disable other
interrupts.
Timer Event Counter 0 and Timer/Event Counter 1 have
their own individual interrupt vectors, however the inter-
rupt vector for Timer/Event Counter 2 or Timer/Event
counter 3 is contained within the Multi-function Interrupt.
For a Timer/Event Counter 2 or a Timer/Event counter 3
interrupt to occur, the global interrupt enable bit, EMI,
Timer/Event Counter 2 or Timer/Event counter 3 inter-
rupt enable bit, ET2I or ET3I, and Multi-function interrupt
enable bit, EMFI, must first be set. An actual interrupt
will take place when the Timer/Event Counter 2 or
Timer/Event counter 3 request flag, T2F or T3F, is set, a
situation that will occur when the Timer/Event Counter 2
or Timer/Event counter 3 overflows. When the interrupt
is enabled, the stack is not full and the Timer/Event
Rev. 1.10
Interrupt Active Edge Register - INTEDGE
71
Counter 2 or Timer/Event counter 3 overflows, a subrou-
tine call to the Multi-function interrupt vector at location
18H, will take place. When the Timer/Event 2 or
Timer/Event counter 3 interrupt is serviced, the EMI bit
will be cleared to disable other interrupts, however only
the MFF interrupt request flag will be reset. As the T2F
or T3F flag will not be automatically reset, it has to be
cleared by the application program.
A/D Interrupt
The A/D Interrupt is contained within the Multi-function
Interrupt.
For an A/D Interrupt to be generated, the global interrupt
enable bit, EMI, A/D Interrupt enable bit, EADI, and
Multi-function interrupt enable bit, EMFI, must first be
set. An actual A/D Interrupt will take place when the A/D
Interrupt request flag, ADF, is set, a situation that will oc-
cur when the A/D conversion process has finished.
When the interrupt is enabled, the stack is not full and
the A/D conversion process has ended, a subroutine
call to the Multi-function interrupt vector at location18H,
will take place. When the A/D Interrupt is serviced, the
EMI bit will be cleared to disable other interrupts, how-
ever only the MFF interrupt request flag will be reset. As
the ADF flag will not be automatically reset, it has to be
cleared by the application program.
SPI/I
For an SPI/I
able bit, EMI, and the corresponding interrupt enable bit,
ESIM must be first set. An actual SPI/I
take place when the SPl/I
situation that will occur when a byte of data has been
transmitted or received by the SPI/I
an I
abled, the stack is not full and a byte of data has been
transmitted or received by the SPI/I
address match occurs, a subroutine call to the SPI/I
interrupt vector at location 14H, will take place. When
the interrupt is serviced, the SPI/I
will be automatically reset and the EMI bit will be auto-
matically cleared to disable other interrupts.
2
C address match occurs. When the interrupt is en-
2
C Interface Interrupt
2
C interrupt to occur, the global interrupt en-
HT56R66/HT56R666
2
C request flag, SIMF, is set, a
2
C request flag, SIMF
2
2
C interface or an I
C interface or when
September 8, 2009
2
C interrupt will
2
2
C
C

Related parts for HT56R66