摘要 |
PROBLEM TO BE SOLVED: To provide an interruption generation circuit capable of shortening the time from the time when a detection object is actually laid in a desired state to the time of generating an interruption. SOLUTION: An external event detection part 101 detects valid edges of an external event signal. A count period generation circuit 103 generates an external event divided signal having a period obtained by multiplying the time interval of valid edges of the external event signal one before counted by a main timer 104 by 1/N times. A compare register 105 stores a value corresponding to the time when the interruption is to be generated, and an interruption determination circuit 106 generates the interruption when the count value of the main timer 104 becomes the value stored in the compare register 105. When the counter value of the main timer 104 is smaller than the value stored in the compare register 105 in the detection of a valid edge, the interruption determination circuit 106 generates the interruption at that timing. COPYRIGHT: (C)2006,JPO&NCIPI
|