Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HT46CU26 Datasheet(PDF) 53 Page - Holtek Semiconductor Inc

Part # HT46CU26
Description  A/D Type 8-Bit MCU with UART
PDF  86 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HOLTEK [Holtek Semiconductor Inc]
Direct Link  http://www.holtek.com
Logo HOLTEK - Holtek Semiconductor Inc

HT46CU26 Datasheet(HTML) 53 Page - Holtek Semiconductor Inc

Back Button HT46CU26 Datasheet HTML 49Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 50Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 51Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 52Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 53Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 54Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 55Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 56Page - Holtek Semiconductor Inc HT46CU26 Datasheet HTML 57Page - Holtek Semiconductor Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 53 / 86 page
background image
HT46RU26/HT46CU26
Rev. 1.00
53
June 12, 2008
Interrupts
Interrupts are an important part of any microcontroller
system. When an external event or an internal function
such as a Timer/Event Counter, UART, I
2C, SPI Bus,
Time-base, real-time clock 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 external interrupt is con-
trolled by the action of the external INT pin.
Interrupt Registers
Overall interrupt control, which means interrupt enabling
and request flag setting, is controlled by the INTC0,
INTC1 and MFIC registers, which are located in the
Data Memory. By controlling the appropriate enable bits
in these registers each individual interrupt can be en-
abled or disabled. Also when an interrupt occurs, the
corresponding request flag will be set by the
microcontroller. The global enable flag if cleared to zero
will disable all interrupts.
Interrupt Operation
A Timer/Event Counter overflow, an end of A/D conver-
sion, the external interrupt line being pulled low, a
UART, SPI, I
2C Bus or multi-function interrupt will all
generate an interrupt request by setting their corre-
sponding request flag, if their appropriate interrupt en-
able 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 ad-
dress which will be the value of the corresponding inter-
rupt 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.
I N T C 0 R e g i s t e r
M a s t e r I n t e r r u p t G l o b a l E n a b l e
1 : g l o b a l e n a b l e
0 : g l o b a l d i s a b l e
F o r t e s t m o d e u s e o n l y .
M u s t b e w r i t t e n a s " 0 " o t h e r w i s e m a y
r e s u l t i n u n p r e d i c t a b l e o p e r a t i o n
b 7
b 0
E T 0 I
E E I ,
E A D I
E S I I
E M I
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 E n a b l e
1 : e n a b l e
0 : d i s a b l e
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
1 : a c t i v e
0 : i n a c t i v e
E I F ,
A D F ,
S I F
T 0 F
E T 1 I
T 1 F
E x t e r n a l I n t e r r u p t E n a b l e , A / D C o n v e r t e r I n t e r r u p t , S P I I n t e r r u p t E n a b l e
1 : e n a b l e
0 : d i s a b l e
E x t e r n a l I n t e r r u p t , A / D C o n v e r t e r I n t e r r u p t , S P I I n t e r r u p t R e q u e s t F l a g
1 : a c t i v e
0 : i n a c t i v e
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 E n a b l e
1 : e n a b l e
0 : d i s a b l e
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
1 : a c t i v e
0 : i n a c t i v e
Interrupt Control 0 Register



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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86


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