M30622ECTFP MITSUBISHI [Mitsubishi Electric Semiconductor], M30622ECTFP Datasheet - Page 92

no-image

M30622ECTFP

Manufacturer Part Number
M30622ECTFP
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
Timer A
Table 1.17.5. Timer specifications in pulse width modulation mode
Note 1: M30623(80-pin package) does not have I/O pins(TAi
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
Tentative Specifications REV.A
pin function
Timer Ai mode register
b7
pin function
S
b6
Item
pecifications in this manual are tentative and subject to change.
b5
b4
b3
b2
1
b1
1
b0
1
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
Note 1: Valid only when the TA
Note 2: Set the corresponding port direction register to “0”.
Note 3: Set these bits to “0”, in timer A1 and A2 mode register of M30623(80-pin package).
1
, f
Bit symbol
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)
TMOD0
TMOD1
TCK0
TCK1
MR0
MR1
MR2
MR3
8
, f
(addresses 0382
32
Symbol
TAiMR(i=0 to 4)
, f
C32
External trigger select
bit (Note 1) (Note 3)
1 (Must always be “1” in PWM mode) (Note 3)
16/8-bit PWM mode
select bit
Operation mode
select bit
Trigger select bit
Count source select bit
(2
(2
Bit name
8
16
16
-1) (m+1) / fi
and 0383
-1) / fi fixed
0396
n / fi n : Set value
92
iIN
Address
16
pin is selected by the event/trigger select bit
to 039A
16
). If timer overflow is selected, this bit can be “1” or “0”.
Specification
n : values set to timer Ai register’s high-order address
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
IN
16
,TAi
When reset
1
8
32
C32
m : values set to timer Ai register’s low-order address
00
OUT
16
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
) for timer A1 and A2.
Function
IN
IN
pin's input signal (Note 2)
pin's input signal (Note 2)
Mitsubishi microcomputers
M16C / 62T Group
R
W

Related parts for M30622ECTFP