參數(shù)資料
型號(hào): M38002M2DXXXFP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP64
封裝: 14 X 14 MM, 0.80 MM PITCH, PLASTIC, QFP-64
文件頁數(shù): 144/174頁
文件大?。?/td> 1752K
代理商: M38002M2DXXXFP
2-22
3800 GROUP USER’S MANUAL
APPLICATION
2.2 Timer
Fig. 2.2.22 Control procedure [Measurement of pulse width]
Figure 2.2.22 shows a control procedure.
Initialization
All interrupts : Disabled
q
SEI
TM
PREX
TX
ICON1
IREQ1
ICON2
IREQ2
TM
CLI
....
(Address : 2316)
(Address : 2416)
(Address : 2516)
(Address : 3E16), bit4
(Address : 3C16), bit4
(Address : 3F16), bit0
(Address : 3D16), bit0
(Address : 2316), bit3
256–1
1
0
1
0
q X : This bit is not used in this application.
Set it to
“0” or “1.” It’s value can be disregarded.
Timer X interrupt processing routine
Processing for error
RTI
Error occurs
q
CNTR0 interrupt processing routine
CLT (Note 1)
CLD (Note 2)
Push register to stack
RTI
Pop registers
q
A count value is read out and stored to RAM.
Set the division ratio so that the Timer X
interrupt occurs every 250 ms.
q
(A)
Result of pulse width measurement
low–order 8-bit
(A)
Result of pulse width measurement
high–order 8-bit
PREX (Address : 2416)
TX
(Address : 2516)
PREX
Inversion of (A)
TX
256 – 1
Inversion of (A)
256 – 1
Push the register used in the interrupt
processing routine into the stack.
Pop registers which is pushed to stack .
Timer X : Pulse width measurement mode
Interrupts : Enabled
(Count “H” level width of pulse input from CNTR0 pin.)
Set the division ratio so that the Timer X interrupt
occurs every 250 ms.
Timer X interrupt : Enabled
CNTR0 interrupt : Enabled
Timer X count : Start
q
Note 1: When using the Index X mode flag (T).
Note 2: When using the Decimal mode flag (D).
XXXX10112
RESET
相關(guān)PDF資料
PDF描述
M38002SSP 8-BIT, 8 MHz, MICROCONTROLLER, PDIP64
M38004E8-XXXFP 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PQFP64
M38004M8DXXXFP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP64
M38002E4DXXXSP 8-BIT, OTPROM, 8 MHz, MICROCONTROLLER, PDIP64
M38004M8-XXXSP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDIP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
M38002M2-DXXXFP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES
M38002M2-DXXXSP 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES
M38002M2-XXXFP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER
M38002M2-XXXFS 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER
M38002M2-XXXHP 制造商:MITSUBISHI 制造商全稱:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER