English
Language : 

7733 Datasheet, PDF (540/940 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER
EXTERNAL ROM VERSION
20.7 Timer A
(5) Selectable functions
The pulse width modulation function and the RTP0 output level reverse function are described below.
q Pulse width modulation function
The RTP0 operation when the positive polarity is selected is described below.
Note: Description in ( ) is applied to the RTP1 operation.
When “the pulse width modulation selection bit by timer A1(A3)” [bit 4(5)) at address 6216] is set
to “1,” “modulated” (Refer to Figure 20.7.5.) is selected. The pulse width modulation is performed
while pins RTP00 to RTP03 (RTP10 to RTP13) output “H” level. (Refer to section “6.6 Pulse width
modulation (PWM) mode” and Figure 20.7.4.) Figure 20.7.11 shows an operation example when
“modulated” is selected.
Counting is started. Pulse output is started.
FFFF16
m
n, m : Reloaded value
n
000016
Count start flag
Contents of
pulse output data register 0
RTP03 output
RTP02 output
RTP01 output
RTP00 output
Timer A0 interrupt request bit
Timer A1 interrupt request bit
3 (00112)
6 (01102)
C (11002)
9 (10012)
Cleared to “0” when an interrupt request is accepted;
otherwise, cleared by software.
Cleared to “0” when an interrupt request is accepted;
otherwise, cleared by software.
Note: The output level of the pulse output port is undefined from when the pulse output port mode is set until
the first timer underflow occurs. Also, this output level is at a floating state after reset because the
pulse output port becomes the input port at that time.
In the above example, in order to shorten this undefined period, the following procedure is performed:
• A small value (n) is set to the timer counter as the initial value.
• After the first underflow occurs, the normal value (m) is set to the timer counter.
Fig. 20.7.11 Operation example when “modulated” is selected
20–24
7733 Group User’s Manual