Interrupt latency reduction
A method in accordance with one embodiment of the invention can include detecting an interrupt request during execution of an instruction by a processor of an integrated circuit. Additionally, a clock signal frequency can be changed that is received by the processor. An interrupt service routine can be executed that corresponds to the interrupt request.
1. A method, comprising:
providing a first clock signal having a first frequency to a processor;
executing an instruction stream on the processor at the first frequency;
in response to detecting an interrupt request, changing the first frequency of the first clock signal to a second frequency;
storing processor status information associated with the instruction stream at the second frequency greater than the first frequency prior to executing an interrupt service routine;
executing the interrupt service routine on the processor at the second frequency;
restoring the processor status information at the second frequency;
changing the second frequency of the first clock signal to the first frequency; and
resuming execution of the instruction stream on the processor at the first frequency.
2. The method of claim 1 , wherein providing the clock signal comprises generating an oscillator signal using a crystal-less programmable oscillator.
3. The method of claim 1 , wherein providing the clock signal comprises multiplying an oscillator signal.
4. The method of claim 3 , wherein providing the clock signal comprises dividing a signal generated by multiplying the oscillator signal.
5. The method of claim 1 , wherein providing the clock signal comprises dividing an oscillator signal.
6. The method of claim 1 , further comprising providing a second clock signal having a third frequency to a digital system while the processor is executing the instruction stream at the first frequency, wherein the digital system is separate from the processor.
7. The method of claim 6 , further comprising providing the second clock having the third frequency to the digital system while processor is executing the interrupt service routine at the second frequency.
8. The method of claim 6 , wherein the third frequency is equal to the first frequency.
9. The method of claim 6 , wherein the third frequency is equal to the second clock frequency.
10. A method, comprising:
providing a first clock signal having a first frequency to a processor;
executing an instruction stream on the processor at the first frequency;
in response to detecting an interrupt request during execution of an instruction of the instruction stream, completing the execution of the instruction of the instruction stream at the first frequency;
changing the first frequency of the first clock signal to a second frequency;
storing processor status information associated with the instruction stream at the second frequency greater than the first frequency prior to executing an interrupt service routing;
executing an interrupt service routine on the processor at the second frequency;
restoring the processor status information;
changing the second frequency of the first clock signal to the first frequency; and
resuming execution of the instruction stream on the processor at the first frequency.
11. The method of claim 10 , wherein providing the clock signal comprises generating an oscillator signal using a crystal-less programmable oscillator.
12. The method of claim 10 , wherein providing the clock signal comprises multiplying an oscillator signal.
13. The method of claim 12 , wherein providing the clock signal comprises dividing a signal generated by multiplying the oscillator signal.
14. The method of claim 10 , wherein providing the clock signal comprises dividing an oscillator signal.
15. The method of claim 10 , further comprising providing a second clock signal having a third frequency to a digital system while the processor is executing the instruction stream at the first frequency, wherein the digital system is separate from the processor.
16. The method of claim 15 , further comprising providing the second clock having the third frequency to the digital system while processor is executing the interrupt service routine at the second frequency.
17. The method of claim 15 , wherein the third frequency is equal to the first frequency.
18. The method of claim 15 , wherein the third frequency is equal to the second frequency.