参数资料
型号: M34518E8SP
元件分类: 微控制器/微处理器
英文描述: 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PDIP32
封装: 8.90 X 28 MM, 1.78 MM PITCH, PLASTIC, SDIP-32
文件页数: 136/162页
文件大小: 1149K
代理商: M34518E8SP
Rev.3.01
2005.06.15
page 73 of 157
REJ03B0008-0301
4518 Group
LA
0
; (02)
TV1A
; The SNZT1 instruction is valid ........
LA
0
; (02)
TW5A
; Period measurement circuit stop
NOP
...........................................................
SNZT1
; The SNZT1 instruction is executed
(T1F flag cleared)
NOP
...........................................................
: these bits are not used here.
Fig. 65 Period measurement circuit program example
15 Period measurement circuit
When a period measurement circuit is used, clear bit 0 of regis-
ter I1 to “0”, and set a timer 1 count start synchronous circuit to
be “not selected”.
Start timer operation immediately after operation of a period
measurement circuit is started.
When the edge for measurement is input until timer operation is
started from the operation of period measurement circuit is
started, the count operation is not executed until the timer opera-
tion becomes valid. Accordingly, be careful of count data.
When data is read from timer, stop the timer and clear bit 2 of
register W5 to “0” to stop the period measurement circuit, and
then execute the data read instruction.
Depending on the state of timer 1, the timer 1 interrupt request
flag (T1F) may be set to “1” when the period measurement cir-
cuit is stopped by clearing bit 2 of register W5 to “0”. In order to
avoid the occurrence of an unexpected interrupt, clear the bit 2
of register V1 to “0” (refer to Figure 65) and then, stop the bit 2
of register W5 to “0” to stop the period measurement circuit.
In addition, execute the SNZT1 instruction to clear the T1F flag
after executing at least one instruction (refer to Figure 65).
Also, set the NOP instruction for the case when a skip is per-
formed with the SNZT1 instruction (refer to Figure 65).
While a period measurement circuit is operating, the timer 1 in-
terrupt request flag (T1F) is not set by the timer 1 underflow
signal, it is the flag for detecting the completion of period mea-
surement.
When a period measurement circuit is used, select the suffi-
ciently higher-speed frequency than the signal for measurement
for the count source of a timer 1.
When the signal for period measurement is D6/CNTR0 pin input,
do not select D6/CNTR0 pin input as timer 1 count source.
(The XIN input is recommended as timer 1 count source at the
time of period measurement circuit use.)
When the input of P30/INT0 pin is selected for measurement, set
the bit 3 of a register I1 to “1”, and set the input of INT0 pin to be
enabled.
相关PDF资料
PDF描述
M34518M2-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PQFP32
M34519M6-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO42
M34519M8-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO42
M34519E8FP 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PDSO42
M34519M8-XXXFP 4-BIT, MROM, 6 MHz, MICROCONTROLLER, PDSO42
相关代理商/技术参数
参数描述
M34518M2-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34518M2-XXXSP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34518M4-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34518M4-XXXSP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
M34518M6-XXXFP 制造商:RENESAS 制造商全称:Renesas Technology Corp 功能描述:SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER