TIMER A
7.3 Timer mode
(2) Pulse output function
The pulse output function is selected by setting the pulse output function select bit (bit 2 at addresses
5616 to 5A16, D616 to DA16) to “1.” When this function is selected, the TAiOUT pin is forcibly set for the
pulse output pin regardless of the corresponding bits of the port P6, P2, and P4 direction registers.
The TAiOUT pin outputs a pulse of which polarity is inverted each time a counter underflow occurs.
When the count start bit (addresses 4016, 4116) is “0” (count stopped), the TAiOUT pin outputs “L” level.
Figure 7.3.5 shows an example of operation with the pulse output function selected.
FFFF16
Starts counting.
Starts counting.
n
Restarts
counting.
000016
Time
Set to “1” by software.
Cleared to “0” by software.
Set to “1” by software.
Count start bit
Pulse output from
TAiOUT pin
Timer Ai interrupt
request bit
Cleared to “0” when interrupt request is accepted or cleared by software.
n : Reload register’s contents
Fig. 7.3.5 Example of operation with pulse output function selected
7905 Group User’s Manual Rev.1.0
7-16