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 5816, 5A16, DA16) to “1.” When this function is selected, the TAjOUT pin is forcibly set for the
pulse output pin regardless of the corresponding bits of the port P2 and port P6 direction registers.
The TAjOUT 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 TAjOUT 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
TAjOUT pin
Timer Aj 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
7906 Group User’s Manual Rev.2.0
7-16