Interrupt generation circuit
First Claim
1. An interrupt generation circuit comprising:
- an edge detection unit that receives a periodic external signal from a monitored object and, upon detecting an effective edge of the external signal, generates an edge detection signal;
a main timer that counts a pulse signal and, when the edge detection signal is generated, clears a count value; and
an interrupt determination circuit that compares the count value of said main timer with a value stored in a compare register, in which a desired value is stored, for determining whether an interrupt is to be generated based on the comparison result, wherein, when the edge detection signal is generated, said interrupt determination circuit generates an interrupt at a timing when the edge detection signal is generated if the count value of said main timer is smaller than the value stored in said compare register.
3 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides an interrupt generation circuit that can reduce the time between the moment a monitored object actually enters a desired state and the moment an interrupt is generated. An external event detection unit 101 detects the effective edge of an external event signal. A count period generation circuit 103 generates external event division signals which are counted by the main timer 104 and each of which has a period that is 1/N of the time interval between the effective edges of the immediately preceding external event signal. A compare register 105 stores a value corresponding to the time at which an interrupt is to be generated. When the count value of the main timer 104 becomes equal to or larger than the value stored in the compare register 105, the interrupt determination circuit 106 generated an interrupt. If the count value of the main timer 104 is smaller than the value stored in the compare register 105 when the effective edge is detected, the interrupt determination circuit 106 immediately generates an interrupt.
-
Citations
6 Claims
-
1. An interrupt generation circuit comprising:
-
an edge detection unit that receives a periodic external signal from a monitored object and, upon detecting an effective edge of the external signal, generates an edge detection signal;
a main timer that counts a pulse signal and, when the edge detection signal is generated, clears a count value; and
an interrupt determination circuit that compares the count value of said main timer with a value stored in a compare register, in which a desired value is stored, for determining whether an interrupt is to be generated based on the comparison result, wherein, when the edge detection signal is generated, said interrupt determination circuit generates an interrupt at a timing when the edge detection signal is generated if the count value of said main timer is smaller than the value stored in said compare register. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification