Electronic Components Datasheet Search
  English  ▼

X  

HT46R94 Datasheet(PDF) 35 Page - Holtek Semiconductor Inc

Part # HT46R94
Description  A/D Type 8-Bit MCU with 1616 High Current LED Driver
PDF  62 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46R94 Datasheet(HTML) 35 Page - Holtek Semiconductor Inc

Back Button HT46R94 Datasheet HTML 31Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 32Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 33Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 34Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 35Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 36Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 37Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 38Page - Holtek Semiconductor Inc HT46R94 Datasheet HTML 39Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 62 page
background image
HT46R94
Rev. 1.10
35
November 5, 2008
Interrupt Operation
A Timer/Event Counter overflow, a Time Base overflow,
an end of A/D conversion or the external interrupt line
being pulled low will all generate an interrupt request by
setting their corresponding request flag, if their appropri-
ate interrupt enable bit is set. When this happens, the
Program Counter, which stores the address of the next
instruction to be executed, will be transferred onto the
stack. The Program Counter will then be loaded with a
new address which will be the value of the correspond-
ing interrupt vector. The microcontroller will then fetch its
next instruction from this interrupt vector. The instruction
at this vector will usually be a JMP statement which will
jump to another section of program which is known as
the interrupt service routine. Here is located the code to
control the appropriate interrupt. The interrupt service
routine must be terminated with a RETI statement,
which retrieves the original Program Counter address
from the stack and allows the microcontroller to continue
with normal execution at the point where the interrupt
occurred.
The various interrupt enable bits, together with their as-
sociated request flags, are shown in the following dia-
gram with their order of priority.
Once an interrupt subroutine is serviced, all the other in-
terrupts will be blocked, as the EMI bit will be cleared au-
tomatically. This will prevent any further interrupt nesting
from occurring. However, if other interrupt requests oc-
cur during this interval, although the interrupt will not be
immediately serviced, the request flag will still be re-
corded. 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 rou-
tine, to allow interrupt nesting. If the stack is full, the in-
terrupt 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.
Interrupt Priority
Interrupts, occurring in the interval between the rising
edges of two consecutive T2 pulses, will be serviced on
the latter of the two T2 pulses, if the corresponding inter-
rupts are enabled. In case of simultaneous requests, the
following table shows the priority that is applied. These
can be masked by resetting the EMI bit.
Interrupt Source
Vector
Priority
External Interrupt
04H
1
Timer/Event Counter 0 Overflow
08H
2
Timer/Event Counter 1 Overflow
0CH
3
Time Base Overflow
10H
4
A/D Converter Conversion End
14H
5
Interrupt Priority
In cases where both external and internal interrupts are
enabled and where an external and internal interrupt oc-
curs simultaneously, the external interrupt will always
have priority and will therefore be serviced first. Suitable
masking of the individual interrupts using the INTC0 and
INTC1 registers can prevent simultaneous occurrences.
External Interrupt
For an external interrupt to occur, the global interrupt en-
able bit, EMI, and external interrupt enable bit, EEI, must
first be set. An actual external interrupt will take place
when the external interrupt request flag, EIF in INTC0. As
the external interrupt is a dual edge triggered type, the
EIF flag will be set when either a high to low or low to high
transition appears on the INT line. The external interrupt
pin is pin-shared with the output pin PD0 and can only be
configured as an external interrupt pin if the correspond-
ing external interrupt enable bit in the INTC0 register has
been set and the PD0 output is disabled by setting the
LCDEN bit in the LCDC register to zero and the PD0 bit
set high. If the external interrupt enable bit is not set then
the pin can be used as a PD0 CMOS output pin. When
the interrupt is enabled, the stack is not full and a high to
A u t o m a t i c a l l y C l e a r e d b y I S R
M a n u a l l y S e t o r C l e a r e d b y S o f t w a r e
E x t e r n a l I n t e r r u p t
R e q u e s t F l a g E I F
E E I
E M I
P r i o r i t y
I n t e r r u p t
P o l l i n g
H i g h
A u t o m a t i c a l l y D i s a b l e d b y I S R
C a n b e E n a b l e d M a n u a l l y
T i m e r / E v e n t C o u n t e r 0
I n t e r r u p t R e q u e s t F l a g T 0 F
E T 0 I
L o w
E T B I
T i m e B a s e
I n t e r r u p t R e q u e s t F l a g T B F
T i m e r / E v e n t C o u n t e r 1
I n t e r r u p t R e q u e s t F l a g T 1 F
E T 1 I
E A D I
A / D C o n v e r t e r
I n t e r r u p t R e q u e s t F l a g A D F
Interrupt Structure



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com