參數(shù)資料
型號: M30201M2T
廠商: Mitsubishi Electric Corporation
英文描述: SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
中文描述: 單片16位CMOS微機
文件頁數(shù): 57/159頁
文件大小: 2319K
代理商: M30201M2T
Unde
Timer A
deeopmen
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
57
(4) Pulse width modulation (PWM) mode
In this mode, the timer outputs pulses of a given width in succession. (See Table 1.17.) In this mode, the counter
functions as either a 16-bit pulse width modulator or an 8-bit pulse width modulator. Figure 1.45 shows the timer
A0 mode register in pulse width modulation mode. Figure 1.46 shows the example of how a 16-bit pulse width
modulator operates. Figure 1.47 shows the example of how an 8-bit pulse width modulator operates.
Figure 1.45. Timer A0 mode register in pulse width modulation mode
Table 1.17. Timer specifications in pulse width modulation mode
Item
Count source
f
1
, f
8
, f
32
, fc
32
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
High level width
n / fi
Cycle time
(2
16
-1) / fi fixed
8-bit PWM
High level width n (m+1) / fi n : values set to timer A0 register’s high-order address
Cycle time (2
8
-1) (m+1) / fi
Count start condition
External trigger is input
The timer overflows
The count start flag is set (= 1)
Count stop condition
The count start flag is reset (= 0)
Set value of "H" level width is except FF
16
, 00
16
: PWM pulse goes “L”
Set value of "H" level width is FF
16
, 00
16
: Timing that count value goes to 01
16
16 bits PWM
Set value of "H" level width is except FFFF
16
, 0000
16
: PWM pulse goes “L”
Set value of "H" level width is FFFF
16
, 0000
16
: Timing that count value goes to 0001
16
TA0
IN
pin function
Programmable I/O port or trigger input
TA0
OUT
pin function
Pulse output
Read from timer
When timer A0 register is read, it indicates an indeterminate value
Write to timer
When counting stopped :When a value is written to timer A0 register, it is
written to both reload register and counter
When counting in progress : When a value is written to timer A0 register, it is
written to only reload register (Transferred to counter at next reload time)
Note: When set value of "H" level width is 00
16
or 0000
16
, pulse outputs "L" level and inversion value, FF
16
or FFFF
16
is set to timer.
Specification
n : Set value
m : values set to timer A0 register’s low-order address
Bit name
Function
Bit symbol
TMOD0
Operation mode
select bit
1 1 : PWM mode
TMOD1
MR0
MR2
MR1
MR3
0 0 : f
1
0 1 : f
8
1 0 : f
32
1 1 : f
C32
b7 b6
TCK1
TCK0
Count source select bit
W
R
1
1
1
1 (Must always be “1” in PWM mode)
External trigger select
bit (Note 1)
16/8-bit PWM mode
select bit
0: Functions as a 16-bit pulse width modulator
1: Functions as an 8-bit pulse width modulator
Trigger select bit
0: Falling edge of TA0
IN
pin's input signal (Note 2)
1: Rising edge of TA0
IN
pin's input signal (Note 2)
0: Count start flag is valid
1: Selected by event/trigger select register
Note 1: Valid only when the TA0
IN
pin is selected by the event/trigger select bit
(addresses 0383
16
). If timer overflow is selected, this bit can be “1” or “0”.
Note 2: Set the corresponding port direction register to “0” (input mode).
Note 3: Set the corresponding port direction register to “1” (output mode) when the pulse is output.
AA
AA
AA
AA
AA
AA
A
A
Timer A0 mode register
b7 b6
b5
b4
b3
Symbol
TA0MR
Address
0396
16
When reset
00
16
b2
b1 b0
8 bits PWM
request
generation
timing
相關(guān)PDF資料
PDF描述
M30201M4 SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30201M4T SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30201M4-114FP SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30218MA 5V High-Speed RS-232 Transceivers with 0.1uF Capacitors
M30218MCA-207FP SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M30201M2T-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30201M2T-XXXSP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30201M2-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30201M2-XXXSP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30201M4 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER