| Electronic Components Datasheet Search |
|
HT49RA1 Datasheet(PDF) 33 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT49RA1 Datasheet(HTML) 33 Page - Holtek Semiconductor Inc |
|
33 / 58 page ![]() HT49RA1/HT49CA1 Rev. 1.00 33 May 7, 2008 Timer/Event Counter Interrupt For a Timer/Event Counter interrupt to occur, the global interrupt enable bit, EMI, and the corresponding timer in- terrupt enable bit, ET0I, ET1I must first be set. An actual Timer/Event Counter interrupt will take place when the relevant Timer/Event Counter request flag, T0F, T1F is set, a situation that will occur when the relevant Timer/Event Counter overflows. When the interrupt is en- abled, the stack is not full and a Timer/Event Counter overflow occurs, a subroutine call to the timer interrupt vector at location 0CH, 10H, will take place. When the in- terrupt is serviced, the timer interrupt request flag, T0F, T1F will be automatically reset and the EMI bit will be au- tomatically cleared to disable other interrupts. Time Base Interrupt For a Time Base interrupt to occur the the global inter- rupt enable bit, EMI, and the corresponding internal in- terrupt enable bit, which is bit 1 of the INTC1 register, known as ETBI, must be first set. An actual Time Base interrupt will be generated when the Time Base interrupt request flag is set which is bit 5 of the INTC1 register and known as TBF. This will occur when when a time-out signal is generated from the Time Base. When the mas- ter interrupt global enable bit is set, the stack is not full and the corresponding Time Base interrupt enable bit is set, an internal Time Base interrupt will be generated when a time-out signal is generated from the Time Base. This will create a subroutine call to location 014H. When a Time Base interrupt occurs, the EMI bit will be cleared to disable other interrupts. The purpose of the Time Base interrupt is to provide an interrupt signal at fixed time periods. The Time Base interrupt clock source orig- inates from the internal clock source fS. This fS input clock first passes through a divider, the division ratio of which is selected by configuration options to provide longer Time Base interrupt periods. The Time Base in- terrupt time-out period ranges from 2 12/f S~2 15/f S. The clock source that generates fS, which in turn controls the Time Base interrupt period, can originate from three dif- ferent sources, the RTC oscillator, Watchdog Timer os- cillator or the System oscillator/4, the choice of which is determine by the fS clock source configuration option. Real Time Clock Interrupt For a Real Time Clock interrupt to occur the global inter- rupt enable bit, EMI, and the corresponding internal in- terrupt enable bit, which is bit 2 of the INTC1 register, known as ERTI, must be first set. An actual Real Time Clock interrupt will be generated when the Real Time Clock interrupt request flag is set which is bit 6 of the INTC1 register and known as RTF. When the master in- terrupt global enable bit is set, the stack is not full and the corresponding Real Time Clock interrupt enable bit is set, an internal Real Time Clock interrupt will be gen- erated when a time-out signal occurs, a subroutine call to location 018H will be created. When a Real Time in- terrupt occurs, the EMI bit will be cleared to disable other interrupts. Similar in operation to the Time Base interrupt, the pur- pose of the RTC interrupt is also to provide an interrupt signal at fixed time periods. The RTC interrupt clock source originates from the internal clock source fS. This fS input clock first passes through a divider, the division ratio of which is selected by programming the appropri- ate bits in the RTCC register to obtain longer RTC inter- rupt periods whose value ranges from 2 8/f S~2 15/f S. The clock source that generates fS, which in turn controls the RTC interrupt period, can originate from three different sources, the RTC oscillator, Watchdog Timer oscillator or the System oscillator/4, the choice of which is deter- mine by the fS clock source configuration option. Note that if the RTC oscillator is selected as the system clock, then fS, and correspondingly the RTC interrupt, will also have the RTC oscillator as its clock source. f S S o u r c e C o n f i g u r a t i o n O p t i o n f S Y S / 4 W D T O s c i l l a t o r R T C O s c i l l a t o r C o n f i g u r a t i o n O p t i o n D i v i d e b y 2 1 2 ~ 2 1 5 f S T i m e B a s e I n t e r r u p t 2 1 2 / f S ~ 2 1 5 / f S Time Base Interrupt f S S o u r c e C o n f i g u r a t i o n O p t i o n f S Y S / 4 W D T O s c i l l a t o r R T C O s c i l l a t o r D i v i d e b y 2 8 ~ 2 1 5 ( S e t b y R T C C R e g i s t e r s ) f S R T C I n t e r r u p t 2 8 / f S ~ 2 1 5 / f S R T 2 ~ R T 0 RTC Interrupt |
|
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 |