English
Language : 

M30222 Datasheet, PDF (80/237 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
deUvnedloepr ment
MITSUBISHI MICROCOMPUTERS
Specifications in this manual are tentative and subject to change
M30222 Group
Rev. G
Timer A
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Table 1.29. Timer specifications in pulse width modulation mode
Item
Count source
Count operation
16-bit PWM
8-bit PWM
Count start condition
Count stop condition
Interrupt request
generation timing
TAiIN pin function
TAiOUT pin function
Read from timer
Write to timer
Specification
f1, f8, f32, fc32
Timer counts down (operating as an 8-bit or 16-bit pulse modulator)
Timer reloads new count at a rising edge of PWM pulse and continues counting.
Timer is not affected by a trigger that occurs when counting.
High level width n/fi
Cycle time
(216-1)/fi
n: Set value
fixed
High level width n x (m + 1)/fi
n: values set Timer Ai s high-order address
Cycle time
(28-1) x (m+1)/fi m: values set Timer Ai s low-order address
External trigger is input
Timer overflows
Count start flag is set (=1)
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 stops
When a value is written to Timer Ai register, it is written to both reload register and
counter.
When counting is 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
11 1
Symbol
Address
When reset
TAiMR(i=0 to 4) 039616 to 039A16 0016
Bit symbol
TMOD0
TMOD1
MR0
MR1
Bit name
Function
RW
Operation mode
select bit
b1 b0
1 1 : PWM mode
1 (Must always be “1” in PWM mode)
External trigger select
bit (Note 1)
0: Falling edge of TAi IN pin's input signal (Note 2)
1: Rising edge of TAi IN pin's input signal (Note 2)
MR2
Trigger select bit
0: Count start flag is valid
1: Selected by event/trigger select register
MR3
TCK0
TCK1
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 : fC32
Note 1: Valid only when the TAiIN pin is selected by the event/trigger select bit
(addresses 038216 and 038316). If timer overflow is selected, this bit can be “1” or “0”.
Note 2: Set the corresponding port direction register to "0".
Fig. 1.55. Timer Ai mode register in pulse width modulation mode
1-81