Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

HT56R666 View Datasheet(PDF) - Holtek Semiconductor

Part Name
Description
MFG CO.
HT56R666
Holtek
Holtek Semiconductor Holtek
'HT56R666' PDF : 104 Pages View PDF
HT56R66/HT56R666
b7
b0
IN T 1 S 1 IN T 1 S 0 IN T 0 S 1 IN T 0 S 0 IN T E D G E R e g is te r
IN T 0 E d g e S e le c t
IN T 0 S 1 IN T 0 S 0
0
0
0
1
1
0
1
1
d is a b le
r is in g e d g e tr ig g e r
fa llin g e d g e tr ig g e r
d u a l e d g e tr ig g e r
IN T 1 E d g e S e le c t
IN T 1 S 1 IN T 1 S 0
0
0
0
1
1
0
1
1
d is a b le
r is in g e d g e tr ig g e r
fa llin g e d g e tr ig g e r
d u a l e d g e tr ig g e r
N o t im p le m e n te d , r e a d a s " 0 "
Interrupt Active Edge Register - INTEDGE
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
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/I2C Interface Interrupt
For an SPI/I2C interrupt to occur, the global interrupt en-
able bit, EMI, and the corresponding interrupt enable bit,
ESIM must be first set. An actual SPI/I2C interrupt will
take place when the SPl/I2C request flag, SIMF, is set, a
situation that will occur when a byte of data has been
transmitted or received by the SPI/I2C interface or when
an I2C address match occurs. When the interrupt is en-
abled, the stack is not full and a byte of data has been
transmitted or received by the SPI/I2C interface or an I2C
address match occurs, a subroutine call to the SPI/I2C
interrupt vector at location 14H, will take place. When
the interrupt is serviced, the SPI/I2C request flag, SIMF
will be automatically reset and the EMI bit will be auto-
matically cleared to disable other interrupts.
Rev. 1.40
71
May 11, 2012
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]