摘要 |
In a timer circuit mounted on a mobile communication terminal etc, a plurality of time measurements with different sets of measurement time are realized with measurement errors reduced, and the power consumption is reduced. The timer circuit includes a counter 101 that operates under a reference clock, a storage unit (time memory 102 and comparison register 103) that stores the timer timeout time corresponding to a time measurement request when receiving the time measurement request from a CPU 120, and a comparator 104 that generates an interruption signal to the CPU 120 when the time corresponding to the output value of the counter 101 is coincident with the timer timeout time stored in the storage unit. The storage unit stores a plurality of sets of timer timeout time corresponding to a plurality of time measurement requests, and one of those plural sets of timer timeout time which is closest to the time corresponding to the output value of the counter 101 is set to the timer timeout time to be compared by the comparator 104. |