參數(shù)資料
型號: M30240S9-XXXFP
廠商: Mitsubishi Electric Corporation
英文描述: 16 Characters x 2 Lines, 5x7 Dot Matrix Character and Cursor
中文描述: 單片16位CMOS微機(jī)
文件頁數(shù): 78/142頁
文件大?。?/td> 1637K
代理商: M30240S9-XXXFP
1-78
Mitsubishi microcomputers
M30240 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Preliminary Specifications REV. E
Specifications in this manual are tentative and subject to change
Timer A
2.21.4 Pulse-width modulation (PWM) mode
In this mode, the timer outputs pulses of a given width in succession (See Table 1.21 ). In this mode,
the counter functions as either a 16-bit pulse-width modulator or an 8-bit pulse-width modulator. Figure
1.67 shows the timer Ai mode register in pulse-width modulation mode.Figure 1.68 shows the example
of how a 16-bit pulse-width modulator operates. Figure 1.69 shows the example of how an 8-bit pulse
width modulator operates.
Figure 1.67: Timer Ai mode register in pulse-width modulation mode
Table 1.21:
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
High level width n / f
i
n: Set value
Cycle time (216-1) / f
i
fixed
High level width n (m+1) /f
i
n: values set to timer Ai register’s high-order address
Cycle time (28-1) (m+1) /f
i
m: values set to timer Ai register’s low-order address
External trigger is input
The timer overflows
The count start flag is set (= 1)
The count start flag is reset (= 0)
16-bit PWM
8-bit PWM
Count start condition
Count stop condition
Interrupt request
generation timing
PWM pulse goes “L”
TAiIN pin function
Programmable I/O port or trigger input
TAiOUT pin function
Pulse output
Read from timer
When timer Ai register is read, it indicates an indeterminate value
Write to timer
When counting is stopped and a value is written to timer Ai register, it is written to both
reload register and the counter
When counting in progress and a value is written to timer A register, it is written to only
reload register to be transferred to the counter at next reload timer.
Note 1: Valid only when the TAi
IN
pin is selected by the event/trigger select bit.
(addresses 0382
16
and 0383
16
). If timer overflow is selected, this bit can be "1", or "0".
Note 2: Set the corresponding port direction register to “0”.
Timer Ai mode register
Symbol
TAiMR(i=0 to 4)
Address
0396
16
to 039A
16
When reset
00
16
Bit name
Function
Bit symbol
b7
b6
b5
b4
b3
b2
1
b1
1 1
b0
Operation mode
select bit
1 1 : PWM mode
b1 b0
TMOD1
TMOD0
MR0
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)
0 : Count strat flig is valid
1 : Selected by event /trigger select register
MR2
MR1
MR3
Must always be "1" in PWM mode)
0 0 : f
1
0 1 : f
8
1 0 : f
32
1 1 : Reserved
b7 b6
TCK1
TCK0
Count source select bit
W
R
Trigger select bit
0 : Functions as a 16-bit pulse width modulator
1 : Functions as an 8-bit pulse width modulator
16/8 PWM mode select bit
相關(guān)PDF資料
PDF描述
M30245M4-XXXGF SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245F4-XXXGF SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245M8-XXXGF SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245F8-XXXGF SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245F8-XXXFP SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M30240SA 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30240SA-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30240SC 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30240SC-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
M30245 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER