datasheetbank_Logo
数据手册搜索引擎和 Datasheet免费下载 PDF

M34250M2 查看數據表(PDF) - Renesas Electronics

零件编号
产品描述 (功能)
比赛名单
M34250M2
Renesas
Renesas Electronics Renesas
M34250M2 Datasheet PDF : 59 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
MITSUBISHI MICROCOMPUTERS
4250 Group
SINGLE-CHIP 4-BIT CMOS MICROCOMPUTER
(1) External interrupt request flag (EXF0)
External interrupt request flag (EXF0) is set to “1” when a valid
waveform is input to G0/INT pin.
The valid waveforms causing the interrupt must be retained
at their level for 5 cycles or more of f(XIN) (Refer to Figure
16).
The state of EXF0 flag can be examined with the skip
instruction (SNZ0). Use the timer control register V1 to select
the interrupt or the skip instruction. The EXF0 flag is cleared
to “0” when an interrupt occurs or when the next instruction is
skipped with the skip instruction.
(2) Control register related to external interrupt
• Key-on wakeup control register K0
Register K0 controls the valid waveform for the external
interrupt and key-on wakeup function. Set the contents of
this register through register A with the TK0A instruction.
The TAK0 instruction can be used to transfer the contents
of register K0 to register A.
• External interrupt activated condition
External interrupt activated condition is satisfied when a
valid waveform is input to G0/INT pin.
The valid waveform can be selected from rising waveform
or falling waveform. An example of how to use the external
interrupt is as follows.
ΠSelect the valid waveform with the bit 2 of register K0.
 Clear the EXF0 flag to “0” with the SNZ0 instruction.
Ž Set the NOP instruction for the case when a skip is
performed with the SNZ0 instruction.
 Set both the external interrupt enable bit (V10) and the INTE
flag to “1.”
The external interrupt is now enabled. Now when a valid
waveform is input to the G0/INT pin, the EXF0 flag is set to “1”
and the external interrupt occurs.
Table 8 Control register related to external interrupt
Key-on wakeup control register K0
at reset : 00002
at RAM back-up : state retained
R/W
K03 Prescaler dividing ratio selection bit
0 Instruction clock divided by 4
1 Instruction clock divided by 512
Interrupt valid waveform for INT pin/
0 Rising waveform (“L” “H”)
K02 key-on wakeup valid waveform selection
1 Falling waveform (“H” “L”)
bit (Note 2)
K01 Ports G1–G3 key-on wakeup control bit
0 Key-on wakeup not used
1 Key-on wakeup used (“L” level recognized)
K00 Ports S0–S3 key-on wakeup control bit
0 Key-on wakeup not used
1 Key-on wakeup used (“L” level recognized)
Notes 1: “R” represents read enabled, and “W” represents write enabled.
2: Set a value to the bit 2 of register K0, and execute the SNZ0 instruction to clear the EXF0 flag to “0” after executing at least
one instruction. According to the input state of G0/INT pin, the external interrupt request flag (EXF0) may be set to “1” when
the interrupt valid waveform is changed.
19

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]