Start of APIC timer
Posted: Thu Sep 17, 2009 7:32 am
Hi all,
I have configured the APIC timer in period-mode. In Intel's manuals is stated that:
"In one-shot mode, the timer is started by programming its initial-count register. The initial count value is then copied into the current-count register and count-down begins."
Although is not stated clearly, I assume that this is the case for period-mode as well. The difference, as the manual says, is that in periodic-mode the counter is reloaded and starts again.
So, when the initial-count register is programmed, the count-down begins. I am wondering if there is another way to start up the timer.
For instance, if I first program the initial-count register but have the interrupt masked (i.e. not allowing its reception), will the timer start counting when I un-mask it or I will need to reprogram the initial-count register?
Thanks in advance.
I have configured the APIC timer in period-mode. In Intel's manuals is stated that:
"In one-shot mode, the timer is started by programming its initial-count register. The initial count value is then copied into the current-count register and count-down begins."
Although is not stated clearly, I assume that this is the case for period-mode as well. The difference, as the manual says, is that in periodic-mode the counter is reloaded and starts again.
So, when the initial-count register is programmed, the count-down begins. I am wondering if there is another way to start up the timer.
For instance, if I first program the initial-count register but have the interrupt masked (i.e. not allowing its reception), will the timer start counting when I un-mask it or I will need to reprogram the initial-count register?
Thanks in advance.