M30622MA-XXXFP RENESAS [Renesas Technology Corp], M30622MA-XXXFP Datasheet - Page 319

no-image

M30622MA-XXXFP

Manufacturer Part Number
M30622MA-XXXFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Timer A
304
Operation
Note
Figure 2.2.24. Operation timing of pulse width modulation mode, 16-bit PWM mode selected
2.2.11 Operation of Timer A (pulse width modulation mode, 16-bit PWM mode selected)
In pulse width modulation mode, choose functions from those listed in Table 2.2.11. Operations of the
circled items are described below. Figure 2.2.24 shows the operation timing, and Figure 2.2.25 shows the
set-up procedure.
Count source
TA
input signal
Count start flag
PWM pulse output
from TA
Timer Ai interrupt
request bit
Conditions: Reload register = 0003
iIN
pin
(1) If the TAi
(2) The TAi
(3) The counter reloads the content of the reload register every time PWM pulses are output for
(4) Setting the count start flag to “0” causes the counter to hold its value and to stop. Also, the
• The period of PWM pulses becomes (2
Note: j = i – 1, but j = 4 when i = 0; k = i + 1, but k = 0 when i = 4.
Table 2.2.11. Choosed functions
iOUT
Count source
PWM mode
Count start condition
the timer Ai register is set to “0000
TAi
(fi : frequency of the count source f
performs a down count on the count source. Also, the TAi
time, the timer Ai interrupt request bit goes to “1”.
one cycle, and continues counting.
TAi
pin
OUT
Note: n = 0000
OUT
Item
pin output level remains at “L”.
OUT
“H”
“H”
outputs an “L” level.
“L”
“1”
“0”
“L”
“1”
“0”
IN
pin input level changes from “L” to “H” with the count start flag set to “1”, the counter
pin output level changes from “H” to “L” when a set time period elapses. At this
16
O
O
O
to FFFE
(1) Start count
8-bit PWM
External trigger input (falling edge of input signal to the TAi
Internal count source (f
16-bit PWM
External trigger input (rising edge of input signal to the TAi
Timer overflow (TB2/TAj/TAk overflow)
Set to “1” by software
16
, external trigger (rising edge of TAi
16
(2) Output level “H” to “L”
1
16
Trigger is not generated by this signal
, f
1 / f
1 / f
”, the pulse width modulator does not work, and the the
8
16
, f
i
i
X (2
32
1
X n
– 1)/fi, and the “H” level pulse width becomes n/fi. If
/ f
, f
16
8
Cleared to “0” when interrupt request is
accepted, or cleared by software
C32
/ f
–1)
32
;
/ fc
32
n : value of the timer)
)
Set-up
IN
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
pin input signal) is selected
OUT
(3) One period is complete
pin outputs an “H” level.
(4) Stop count
IN
IN
pin)
pin)
Cleared to “0”
by software
Mitsubishi microcomputers
M16C / 62 Group

Related parts for M30622MA-XXXFP