PULSE OUTPUT PORT MODE
9.2 Block description
9.2.4 Timers A0 to A4
Timers A0 and A3 are used as control registers; each generates a pulse output trigger. When using timers
A0 and A3, be sure to use them in the timer mode. (Refer to section “7.3 Timer mode.”)
When performing the pulse width modulation, be sure to use timers A1, A2, A4 in the pulse width modulation
mode. (Refer to section “7.6 Pulse width modulation (PWM) mode.”) Note that, from pin P2
0
/TA4OUT, a
PWM pulse by timer A4 is output. When it is unnecessary to output a PWM pulse, be sure to clear bit 2
of the timer A4 mode register (address 5A16) to “0.” At this time, pin P2 can be used as a programmable
0
I/O port pin.
Figure 9.2.6 shows the structure of the timer A0 and A3 mode registers (in the pulse output port mode);
Figure 9.2.7 shows the structures of the timer A1, A2, A4 mode registers (in the pulse output port mode
with pulse width modulation used).
b7 b6 b5 b4 b3 b2 b1 b0
Timer A0 mode register (Address 5616
Timer A3 mode register (Address 5916
)
)
0 0 0 0 0 0
Functions
Bit
0
Bit name
At reset R/W
0
0
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
RW
RW
Fix these bits to “000000
2
” in the pulse output port mode.
1
2
3
4
5
See Table 7.2.3.
Count source select bits
6
7
Fig. 9.2.6 Structure of timer A0 and A3 mode registers (in pulse output port mode)
7906 Group User’s Manual Rev.2.0
9-11