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

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
Table 1.17.5. Timer specifications in pulse width modulation mode
Figure 1.17.11. Timer Ai mode register in pulse width modulation mode
(4) Pulse width modulation (PWM) mode
Count source
Count operation
16-bit PWM
8-bit PWM
Count start condition
Count stop condition
Interrupt request generation timing
TAi
TAi
Read from timer
Write to timer
In this mode, the timer outputs pulses of a given width in succession. (See Table 1.17.5.) In this mode, the
counter functions as either a 16-bit pulse width modulator or an 8-bit pulse width modulator. Figure
1.17.11 shows the timer Ai mode register in pulse width modulation mode. Figure 1.17.12 shows the
example of how a 16-bit pulse width modulator operates. Figure 1.17.13 shows the example of how an 8-
bit pulse width modulator operates.
IN
OUT
pin function
Timer Ai mode register
b7
pin function
b6
Item
b5
b4
b3
b2
1
b1
1
b0
1
Note 1: Valid only when the TA
Note 2: Set the corresponding port direction register to “0”.
f
• The timer counts down (operating as an 8-bit or a 16-bit pulse width modulator)
• The timer reloads a new count at a rising edge of PWM pulse and continues counting
• The timer is not affected by a trigger that occurs when counting
• High level width
• Cycle time
• High level width n (m+1) / fi
• Cycle time
• External trigger is input
• The timer overflows
• The count start flag is set (= 1)
• The count start flag is reset (= 0)
PWM pulse goes “L”
Programmable I/O port or trigger input
Pulse output
When timer Ai register is read, it indicates an indeterminate value
• When counting stopped
• When counting in progress
Bit symbol
1
TMOD0
TMOD1
, f
TCK0
TCK1
When a value is written to timer Ai register, it is written to both reload
register and counter
When a value is written to timer Ai register, it is written to only reload register
(Transferred to counter at next reload time)
MR0
MR1
MR2
MR3
8
, f
(addresses 0382
Symbol
TAiMR(i=0 to 4)
32
, f
Operation mode
select bit
1 (Must always be “1” in PWM mode)
16/8-bit PWM mode
select bit
External trigger select
bit (Note 1)
Trigger select bit
Count source select bit
C32
Bit name
16
(2
(2
and 0383
0396
8
16
-1) (m+1) / fi
-1) / fi fixed
iIN
Address
16
pin is selected by the event/trigger select bit
n / fi n : Set value
to 039A
16
). If timer overflow is selected, this bit can be “1” or “0”.
1 1 : PWM mode
0: Falling edge of TAi
1: Rising edge of TAi
0 0 : f
0 1 : f
1 0 : f
1 1 : f
b1 b0
0: Count start flag is valid
1: Selected by event/trigger select register
0: Functions as a 16-bit pulse width modulator
1: Functions as an 8-bit pulse width modulator
b7 b6
16
Specification
n : values set to timer Ai register’s high-order address
When reset
1
8
32
C32
00
16
m : values set to timer Ai register’s low-order address
Function
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
IN
IN
pin's input signal (Note 2)
pin's input signal (Note 2)
R
Mitsubishi microcomputers
M16C / 62 Group
W
93

Related parts for M30622MA-XXXFP