TIMER A
7.5 One-shot pulse mode
7.5.3 Operation in one-shot pulse mode
➀ When the one-shot pulse mode is selected with the operating mode select bits, the TAjOUT pin outputs
“L” level.
➀ When the count start bit is set to “1,” the counter is enabled for counting. After that, counting starts when
a trigger is generated.
➀ When the counter starts counting, the TAjOUT pin outputs “H” level. (When a value of “000016” is set to
the timer Aj register, the counter stops operating, the output level at pin TAjOUT remains “L,” and no timer
Aj interrupt request does not occur.)
➀ When the counter value becomes “000016,” the output from the TAjOUT pin becomes “L” level.
Additionally, the reload register’s contents are reloaded and the counter stops counting there.
➀ Simultaneously with ➀, the timer Aj interrupt request bit is set to “1.”
This interrupt request bit remains set to “1” until the interrupt request is accepted or until the interrupt
request bit is cleared to “0” by software.
Figure 7.5.5 shows an example of operation in the one-shot pulse mode.
When a trigger is generated after ➀ above, the counter and TAjOUT pin perform the same operations
beginning from ➀ again. Furthermore, if a trigger is generated during counting, the counter performs
countdown once after this new trigger is generated, and then, it continues counting with the reload register’s
contents reloaded. If generating a trigger during counting, make sure that a certain time which is equivalent
to one cycle of the timer’s count source or more has passed between the previously trigger occurrence and
a new trigger occurrence.
The one-shot pulse output from the TAjOUT pin can be disabled by clearing the timer Aj mode register’s bit
2 to “0.” Accordingly, timer Aj can also be used as an internal one-shot timer that does not perform the
pulse output. In this case, the TAjOUT pin functions as a programmable I/O port pin.
7906 Group User’s Manual Rev.2.0
7-35