參數(shù)資料
型號: M37540M4-XXXGP
廠商: Mitsubishi Electric Corporation
英文描述: SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
中文描述: 單芯片8位CMOS微機
文件頁數(shù): 20/64頁
文件大?。?/td> 668K
代理商: M37540M4-XXXGP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
7540 Group
MITSUBISHI MICROCOMPUTERS
20
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
G
Timer Y
Timer Y is an 8-bit timer and can be selected in one of 2 operating
modes by setting the timer Y, Z mode register (TYZM).
Timer mode
Programmable waveform generation mode
The division ratio of timer Y and prescaler Y is 1/(n+1) provided that
the value of the timer latch or prescaler Y latch is n.
(1)Timer mode
Mode select
Timer mode is selected by setting timer Y operation mode bit (b0)
of TYZM to “0”.
Count source select
The count source is f(X
IN
)/2 or f(X
IN
)/16.
Interrupt
When an underflow occurs, timer Y interrupt request bit (b0) of
IREQ2 is set to “1”.
Operation description
After reset release, timer Y is operating because the timer Y count
stop bit (b3) of TYZM is “0”. Timer operation is stopped by setting
b3 of TYZM to “1”. In the timer mode, the timer count value is set
by timer Y primary latch (TYP). When a value is set to TYP while
timer is stopped, the setting value is written to latch and timer si-
multaneously.
When timer Y reaches “00”, an underflow occurs at the next count
pulse, and the timer Y latch is reloaded into the timer and count
continues. When timer value is changed during the count opera-
tion, either “writing to latch and timer simultaneously” or “writing to
only latch” can be selected by setting the timer Y write control bit
(b2) of TYZM. When selecting “writing to only latch”, the timer count
value is changed after the next underflow.
(2)Programmable waveform generation mode
Mode select
Timer mode is selected by setting timer Y operation mode bit (b0)
of TYZM to “1”.
When this mode is selected, set timer Y write control bit (b2) of
TYZM to “1” (“writing to only latch” selected).
Count source select
The count source is f(X
IN
)/2 or f(X
IN
)/16.
Interrupt
When an underflow occurs, timer Y interrupt request bit (b0) of
IREQ is set to “1”.
Operation description
After reset release, timer Y is operating because the timer Y count
stop bit (b3) of TYZM is “0”. MCU operates in the programmable
waveform generation mode when timer Y operation mode bit (b0)
of TYZM is set to “1” and b3 to “0” after timer Y operation is stopped
by setting b3 of TYZM to “1”.
In the programmable waveform generation mode, timer counts the
setting value of timer Y primary latch (TYP) and the setting value
of timer Y secondary latch (TYS) alternately, the waveform inverted
each time TYP and TYS underflow is output from TY
OUT
pin. The
active edge of output waveform is set by the timer Y output level
latch (b4) of the timer Y, Z waveform output control register (PUM).
When “0” is set to b4 of PUM, the initial state of timer at stop is “L”,
and “H” interval by the setting value of TYP or “L” interval by the
setting value of TYS is output alternately. When “1” is set to b4 of
PUM, the initial state of timer at stop is “H”, and “L” interval by the
setting value of TYP or “H” interval by the setting value of TYS is
output alternately.
Also, in this mode, the primary interval and the secondary interval
of the output waveform can be extended respectively for 0.5 cycle
of timer count source clock by setting the timer Y primary wave-
form extension control bit (b0) and the timer Y secondary wave-
form extension control bit (b1) of PUM to “1”. As a result, the wave-
forms of more accurate resolution can be output.
When b0 and b1 of PUM are used, the frequency and duty of the
output waveform are as follows;
Waveform frequency:
FTYOUT = (2
TMCL)/(2
(TYP+1) + 2
(TYS) + (EXPYP + EXPYS))
Duty:
DTYOUT = (2
(TYP + 1)) + EXPYP)/(2
(TYS + 1) + EXPYS))
TMCL: Timer Y count clock f(X
IN
)/2 or f(X
IN
)/16
TYP: Timer Y primary latch (8 bits)
TYS: Timer Y secondary latch (8 bits)
EXPYP: Timer Y primary waveform extension control bit (1 bit)
EXPYS: Timer Y secondary waveform extension control bit (1 bit)
When using the programmable waveform generation mode, note
the following;
Notes on using the programmable waveform generation mode
When setting and changing TYP, TYS, EXPYP and EXPYS, write
to TYP at last because the setting to them is executed all at once
by writing to TYP. Even when TYP is not changed, write the same
value. The value is reloaded to timer at the beginning of the next
primary interval.
Set by software in order not to execute the writing to timer Y pri-
mary and the timing of timer underflow simultaneously. When read-
ing the timer Y secondary, the undefined value is read out. How-
ever, while timer counts the setting value of the timer Y secondary,
the count values at the secondary interval can be identified by
reading the timer Y primary.
In this mode, set port P0
1
which is also used as TY
OUT
pin to output.
B0 and b1 of PUM can be used only when “00
16
” is set to prescaler
Y.
相關PDF資料
PDF描述
M37540M4T-XXXGP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37540RSS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37540 Single Chip 8 Bits CMOS Microcomputer(8位單片機)
M37540M4-XXXSP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37560M5-XXXFP SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
相關代理商/技術參數(shù)
參數(shù)描述
M37540M4-XXXSP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:8-BIT CISC SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 740 SERIES
M37540MXT-XXXGP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37540MXV-XXXGP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37540MX-XXXGP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M37540RSS 功能描述:EMULATOR ACCESSORY RoHS:否 類別:編程器,開發(fā)系統(tǒng) >> 配件 系列:- 產(chǎn)品培訓模塊:Lead (SnPb) Finish for COTS Obsolescence Mitigation Program RoHS指令信息:IButton RoHS Compliance Plan 標準包裝:1 系列:- 附件類型:USB 至 1-Wire? RJ11 適配器 適用于相關產(chǎn)品:1-Wire? 設備 產(chǎn)品目錄頁面:1429 (CN2011-ZH PDF)