Книга: Real-Time Concepts for Embedded Systems
11.4 Timer Interrupt Service Routines
11.4 Timer Interrupt Service Routines
Part of the timer chip initialization involves installing an interrupt service routine (ISR) that is called when the timer interrupt occurs. Typically, the ISR performs these duties:
· Updating the system clock - Both the absolute time and elapsed time is updated. Absolute time is time kept in calendar date, hours, minutes, and seconds. Elapsed time is usually kept in ticks and indicates how long the system has been running since power up.
· Calling a registered kernel function to notify the passage of a preprogrammed period - For the following discussion, the registered kernel function is called announce_time_tick.
· Acknowledging the interrupt, reinitializing the necessary timer control register(s), and returning from interrupt.
The announce_time_tick function is invoked in the context of the ISR; therefore, all of the restrictions placed on an ISR are applicable to announce_time_tick. In reality, announce_time_tick is part of the timer ISR. The announce_time_tick function is called to notify the kernel scheduler about the occurrence of a timer tick. Equally important is the announcement of the timer tick to the soft-timer handling facility. These concepts are illustrated in Figure 11.3.
Figure 11.3: Steps in servicing the timer interrupt.
The soft-timer handling facility is responsible for maintaining the soft timers at each timer tick.
- Chapter 11: Timer and Timer Services
- Interrupt Service Routines
- Internet Service Providers who use assigned IP addresses
- Получение помощи по Windows SharePoint Services 3.0
- Чтобы установить Service Pack 2, надо ли предварительно устанавливать Service Pack 1?
- Я установил Service Pack 2 для Windows XP, но с ним не хотят работать некоторые программы. Как его удалить из системы?
- Можно ли интегрировать в пакет установки Windows Service Pack и другие обновления, чтобы потом не приходилось их устанав...
- Система просит вставить диск Windows XP и Windows XP Service Pack 2 CD. Но ведь диск с дистрибутивом Windows у меня один...
- 1.1.6. Denial of Service
- Distributed Denial of Service
- 11.7 Soft Timers and Timer Related Operations
- Phone Services