參數資料
型號: M38C13E6FP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PQFP64
封裝: 14 X 14 MM, PLASTIC, LQFP-64
文件頁數: 15/59頁
文件大?。?/td> 955K
代理商: M38C13E6FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
38C1 Group
22
Timer X
Timer X is a 16-bit timer that can be selected in one of four modes
and can be controlled the timer X write and the real time port by
setting the timer X mode register.
(1) Timer mode
The timer counts the followings;
f(XIN) (input frequency to XIN pin) divided by 16 in middle-, or
high-speed mode
f(XCIN) (sub-clock oscillation frequency) divided by 16 in low-
speed mode
f(XROSC) (built-in ring oscillator oscillation frequency) divided by
16 in ring oscillator mode
(2) Pulse output mode
Each time the timer underflows, a signal output from the CNTR0
pin is inverted and f(XIN), f(ROSC) or f(XCIN) can be selected for
the count source. Except for them, the operation in pulse output
mode is the same as in timer mode. When using a timer in this
mode, set the corresponding port P52 direction register to output
mode.
(3) Event counter mode
The timer counts signals input through the CNTR0 pin.
Except for this, the operation in event counter mode is the same
as in timer mode. When using a timer in this mode, set the corre-
sponding port P52 direction register to input mode.
(4) Pulse width measurement mode
The count source is f(XIN)/16 in the middle-, or high-speed mode,
f(ROSC)/16 in ring oscillator mode, and f(XCIN)/16 in the low-speed
mode. If CNTR0 active edge switch bit is “0”, the timer counts
while the input signal of CNTR0 pin is at “H”. If it is “1”, the timer
counts while the input signal of CNTR0 pin is at “L”. When using a
timer in this mode, set the corresponding port P52 direction regis-
ter to input mode.
Fig. 19 Structure of timer X mode register
Timer X mode register
(TXM : address 002716, initial value: 0016)
Timer X write control bit
0 : Write value in latch and timer
1 : Write value in latch only
Count source selection bit (Note)
0 :
φSOURCE/16
1 :
φSOURCE (this can be used only in pulse output mode.)
Not used (Do not write “1” to these bits.)
Timer X operating mode bits
b5 b4
00 : Timer mode
01 : Pulse output mode
10 : Event counter mode
11 : Pulse width measurement mode
CNTR0 active edge switch bit
0 : Count at rising edge in event counter mode
Start from “H” output in pulse output mode
Measure “H” pulse width in pulse width measurement mode
Falling edge active for interrupt
1 : Count at falling edge in event counter mode
Start from “L” output in pulse output mode
Measure “L” pulse width in pulse width measurement mode
Rising edge active for interrupt
Timer X stop control bit
0 : Count start
1 : Count stop
b7
b0
Note:
φSOURCE represents the oscillation frequency of XIN input in the middle- and high-speed mode,
built-in ring oscillator in the ring oscillator mode, and sub-clock in the low-speed mode.
Do not write “1” to the count source selection bit except the pulse output mode.
qTimer X Write Control
If the timer X write control bit is “0”, when the value is written in the
address of timer X, the value is loaded in the timer X and the latch
at the same time.
If the timer X write control bit is “1”, when the value is written in the
address of timer X, the value is loaded only in the latch. The value
in the latch is loaded in timer X after timer X underflows.
If the value is written in latch only, when the value is written in
latch at the timer underflow, the value is loaded in the timer X and
the latch at the same time. Also, unexpected value may be set in
the high-order counter when the writing in high-order latch and the
underflow of timer X are performed at the same timing.
sNote on CNTR0 interrupt active edge selection
CNTR0 interrupt active edge depends on the CNTR0 active edge
switch bit.
sNote on count source selection bit
Except the pulse output mode, write “0” to the count source selec-
tion bit.
When the timer X count source selection bit is set to “1”, as for the
recommended operating condition of the main clock input fre-
quency f(XIN), the rating value at the high-speed mode is applied.
sNote on interrupt in pulse output mode
When the count source selection bit is “1” in the pulse output
mode, the timing when the timer X interrupt request occurs may
be early or lately for one instruction cycle.
相關PDF資料
PDF描述
M38C24M4A-XXXFP 8-BIT, MROM, 5 MHz, MICROCONTROLLER, PQFP64
M38C24M6-XXXHP 8-BIT, MROM, 4 MHz, MICROCONTROLLER, PQFP64
M38C29MC-XXXHP 8-BIT, MROM, 4 MHz, MICROCONTROLLER, PQFP64
M38C24M6-XXXFP 8-BIT, MROM, 4 MHz, MICROCONTROLLER, PQFP64
M38C24M4-XXXHP 8-BIT, MROM, 4 MHz, MICROCONTROLLER, PQFP64
相關代理商/技術參數
參數描述
M38C13E6HP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38C13RLFS 制造商:Renesas Electronics Corporation 功能描述:EMULATION MCU/8BIT CMOS EMULATION CHIP - Bulk
M38C24M4-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38C24M4-XXXHP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
M38C24M6-051HP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER