| Electronic Components Datasheet Search |
|
HT48R01A Datasheet(PDF) 22 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT48R01A Datasheet(HTML) 22 Page - Holtek Semiconductor Inc |
|
22 / 49 page ![]() HT48R01A Rev. 1.10 22 August 4, 2008 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 N o t i m p l e m e n t e d , r e a d a s " 0 " b 7 b 0 E T 0 I E E I E M I T i m e r / E v e n t C o u n t e r 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 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 T 0 F E x t e r n a l 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 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 N o t i m p l e m e n t e d , r e a d a s " 0 " INTC0 Register Interrupts Interrupts are an important part of any microcontroller system. When an external event or an internal function such as a Timer/Event Counter requires microcontroller attention, their corresponding interrupt will enforce a temporary suspension of the main program allowing the microcontroller to direct attention to their respective needs. The device contains a single external interrupt and a single internal interrupt function. The external in- terrupt is controlled by the action of the external inter- rupt pin, while the internal interrupt is controlled by the Timer/Event Counter overflow. Interrupt Register Overall interrupt control, which means interrupt enabling and request flag setting, is controlled by a single INTC0 register, which is located in the Data Memory. By con- trolling the appropriate enable bits in this registers each individual interrupt can be enabled 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 or an active edge on the external interrupt pin will all generate an interrupt re- quest by setting their corresponding request flag, if their appropriate interrupt enable bit is set. When this hap- pens, 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 corre- sponding 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 inter- rupt 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 in- terrupt occurred. 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 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 E I E T 0 I E M I 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 P r i o r i t y H i g h L o w I n t e r r u p t P o l l i n g Interrupt Scheme |
|
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 |
| 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 |