参数资料
型号: M38002SFP
元件分类: 微控制器/微处理器
英文描述: 8-BIT, 8 MHz, MICROCONTROLLER, PQFP64
封装: 14 X 14 MM, 0.80 MM PITCH, PLASTIC, QFP-64
文件页数: 140/174页
文件大小: 1752K
代理商: M38002SFP
APPLICATION
2.2 Timer
2-19
3800 GROUP USER’S MANUAL
Control procedure :
Figure 2.2.19 shows a control procedure.
Fig. 2.2.19 Control procedure [Measurement of frequency]
RTI
(A)
TY (Address : 27 16)
TY
IREQ1
(Address : 2716)
(Address : 3C 16), bit5
256 – 1
0
Fpulse
0
Fpulse
1
Processing for a result of judgment
214
(A)
228?
<
Compare the count value read with the
reference value.
Store the comparison result in flag Fpulse.
Out of range
In range
q
Pop registers
Pop registers which is pushed to stack.
q
Read the count value.
Store the count value in the accumulator (A).
Initialize the count value.
Set the Timer Y interrupt request bit to “0.”
RESET
Initialization
SEI
TM
PRE12
T1
PREY
TY
ICON1
TM
CLI
....
(Address : 2316)
(Address : 2016)
(Address : 2116)
(Address : 2616)
(Address : 2716)
(Address : 3E16), bit6
(Address : 2316), bit7
1110XXXX2
64–1
8–1
1–1
256–1
1
Timer 1 interrupt processing routine
IREQ1 (Address : 3C 16), bit5?
q
Set the division ratio so that the Timer 1 interrupt
occurs every 2 ms.
Timer 1 interrupt : Enabled
q
Note 1: When using the Index X mode flag (T).
Note 2: When using the Decimal mode flag (D).
Push the register used in the interrupt
processing routine into the stack.
q X : This bit is not used in this application.
Set it to
“0” or “1.” It’s value can be disregarded.
0
When the count value is 256 or more, the
processing is performed as out of range.
Timer Y : Event counter mode
(Count at falling edge of pulse input from CNTR1 pin)
All interrupts : Disabled
Timer Y count : Start
Interrupts : Enabled
CLT (Note 1)
CLD (Note 2)
Push register to stack
相关PDF资料
PDF描述
MSC1212Y2PAGT 8-BIT, FLASH, 40 MHz, MICROCONTROLLER, PQFP64
M38067MC-XXXGP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP80
M38027E8SS 8-BIT, UVPROM, 8 MHz, MICROCONTROLLER, CDIP64
M30622M8P-XXXFP 16-BIT, MROM, 24 MHz, MICROCONTROLLER, PQFP100
M37478M4TXXXFP 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PQFP56
相关代理商/技术参数
参数描述
M38002SSP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER
M38003E1-DXXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES
M38003E1-DXXXSP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 38000 SERIES
M38003E1-XXXFP 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER
M38003E1-XXXFS 制造商:MITSUBISHI 制造商全称:Mitsubishi Electric Semiconductor 功能描述:8-BIT SINGLE-CHIP MICROCOMPUTER