摘要 |
The programmable timer for use in a microprocessor has a counter and a reset register each connected to a databus of the microprocessor, and a first comparator for comparing the counter against the reset register in providing the result of the comparison at a first comparison output. The counter includes a clock signal input for counting clock pulses. The counter may be reset to a reset value via a reset input provided on the counter. The reset register may receive and store a digital value from the microprocessor. The first comparison output is connected to the reset input in order to reset the counter when the counter reaches a count greater than or equal to the value stored in the reset register thereby providing a periodic signal at the first comparison output. The programmable timer may operate in various modes including, an interval timing mode, a PWM encode mode and a pulse timing mode.
|