參數(shù)資料
型號(hào): M34502M4-XXXFP
元件分類(lèi): 微控制器/微處理器
英文描述: 4-BIT, MROM, MICROCONTROLLER, PDSO24
封裝: 5.30 X 10.10 MM, 0.80 MM PITCH, PLASTIC, SSOP-24
文件頁(yè)數(shù): 25/96頁(yè)
文件大小: 958K
代理商: M34502M4-XXXFP
31
Ver 1.4
MITSUBISHI MICROCOMPUTERS
7640 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
1.17.1 Timer X
Timer X is a 16-bit timer that has a 16-bit reload latch,
and can be placed in one of four modes by setting bits
TXM4 and TXM5 (bits 4 and 5 of the Mode Register,
TXM). The bit assignment of the TXM is shown in Fig-
ure 1.33.
1.17.1.1 Read and Write Method
Read and write operations on the high and low-order
bytes of Timer X must be performed in a specific or-
der.
Write Method
When writing to the timer, the lower order byte is
written first. This data is placed in a temporary reg-
ister that is assigned the same address as Timer
XL. Next, the higher order byte is written. When this
is done, the data is placed in the Timer XH reload
latch and the low-order byte is transferred from its
temporary register to the Timer XL reload latch. At
this point, if the Timer X Data Write Control Bit
(TXM0) (bit 0) is “0”, the value in the Timer X reload
latch is also loaded in Timer X. If TXM0 is “0”, the
data in the Timer X reload latch is loaded in Timer X
after Timer X underflows.
Read Method
When reading Timer X, the high-order byte is real
first. Reading the high-order byte causes the values
of Timer XH and Timer XL to be placed in temporary
registers assigned the same addresses as Timer
XH and Timer XL. The low-order byte of Timer X is
then read from its temporary register. This operation
assures the correct reading of Timer X while it is
counting.
1.17.1.2 Count Stop Control
If the Timer X Count Stop Bit (TXM7) (bit 7 of the TXM)
is set to a “1”, Timer X stops counting in all four modes.
Timer Mode
Count Source:
F/n (where n is 8, 16, 32, or 64) or
SCSGCLK
In this mode, each time the timer underflows, the cor-
responding timer interrupt request bit is set to a “1”,
the contents of the timer latch are loaded into the
timer, and the count down sequence begins again.
Fig. 1.33. Timer X Mode Register (TXM )
TXM0
Timer X Data Write Control Bit (bit 0)
0 : Write data in latch and timer
1 : Write data in latch only
TXM2,1
Timer X Frequency Division Ratio Bits (bits 2,1)
Bit 2
Bit 1
00 :
. divided by 8
01 :
. divided by 16
1
0 :
. divided by 32
11:
.divided by 64
TXM3
Timer X Internal Clock Select (bit 3)
0:
./n
1 : SCSGCLK (from chip special count source generation)
TXM5,4
Timer X Mode Bits (bits 5,4)
Bit 5
Bit 4
0
0 : Timer Mode
0
1 : Pulse output mode
1
0 : Event counter mode
1
1 : Pulse width measurement mode
TXM6
CNTR0 Polarity Select Bit (bit 6)
0 : For event counter mode, clocked by rising edge
For pulse output mode, start from high level output
For CNTR0 interrupt request, falling edge active
For pulse width measurement mode, measure high period
1 : For event counter mode, clocked on falling edge
For pulse output mode, start from low level output
For CNTR0 interrupt request, rising edge active
For pulse with measurement mode, measure low period
TXM7
Timer X Stop Bit (bit 7)
0 : Count start
1 : Count stop
TXM7
TXM5
TXM4
TXM3
TXM2
TXM1
TXM0
MSB
7
LSB
0
Address: 0027
16
Access: R/W
Reset: 00
16
TXM6
相關(guān)PDF資料
PDF描述
M34506M4-XXXFP 4-BIT, MROM, MICROCONTROLLER, PDSO20
M34506E4FP 4-BIT, OTPROM, MICROCONTROLLER, PDSO20
M34508G4HFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO20
M34508G4GP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO20
M34508G4H-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO20
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M34506E4 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34506E4FP 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34506M2 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34506M2-XXXFP 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:4-BIT CISC SINGLE-CHIP MICROCOMPUTER 4500 SERIES
M34506M4 制造商:RENESAS 制造商全稱(chēng):Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER