English
Language : 

M306V5ME-XXXSP Datasheet, PDF (78/262 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER
MITSUBISHI MICROCOMPUTERS
M306V5ME-XXXSP
M306V5EESP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
(4) Pulse width modulation (PWM) mode
In this mode, the timer outputs pulses of a given width in succession. (See Table 2.10.4.) In this mode, the
counter functions as either a 16-bit pulse width modulator or an 8-bit pulse width modulator. Figure 2.10.14
shows the timer Ai mode register in pulse width modulation mode. Figure 2.10.15 shows the example of how
an 8-bit pulse width modulator operates.
Table 2.10.4 Timer specifications in pulse width modulation mode
Item
Specification
Count source
f1, f8, f32
Count operation
• 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
16-bit PWM
8-bit PWM
• High level width n / fi n : Set value
• Cycle time
(216-1) / fi fixed
• High level width n ! (m+1) / fi n : values set to timer Ai register’s high-order address
• Cycle time
(28-1) ! (m+1) / fi m : values set to timer Ai register’s low-order address
Count start condition
• The timer overflows
• The count start flag is set (= 1)
Count stop condition
• The count start flag is reset (= 0)
Interrupt request generation timing PWM pulse goes “L”
TA2OUT/TA3OUT pin function Pulse output
Read from timer
When timer Ai register is read, it indicates an indeterminate value
Write to timer
• When counting stopped
When a value is written to timer Ai register, it is written to both reload register and
counter
• When counting in progress
When a value is written to timer Ai register, it is written to only reload register
(Transferred to counter at next reload time)
Timer Ai mode register
b7 b6 b5 b4 b3 b2 b1 b0
011 1
Symbol
Address
When reset
TAiMR(i=2 and 3) 039816 and 039916 0016
Bit symbol
TMOD0
TMOD1
MR0
Bit name
Function
Operation mode
select bit
b1 b0
1 1 : PWM mode
1 (Must always be “1” in PWM mode)
Reserved bits
Must always be set to “0”
MR2
MR3
TCK0
TCK1
Trigger select bit
0: Count start flag is valid
1: Selected by event/trigger select register
16/8-bit PWM mode
select bit
Count source select bit
0: Functions as a 16-bit pulse width modulator
1: Functions as an 8-bit pulse width modulator
b7 b6
0 0 : f1
0 1 : f8
1 0 : f32
1 1 : Do not set
RW
Figure 2.10.14 Timer Ai mode register in pulse width modulation mode (i = 2 and 3)
78
Rev. 1.0