參數(shù)資料
型號: HD404326
廠商: Hitachi,Ltd.
英文描述: 4-bit HMCS400-series microcomputer(4位單片微計算機(jī))
中文描述: 4位HMCS400系列微電腦(4位單片微計算機(jī))
文件頁數(shù): 17/94頁
文件大?。?/td> 573K
代理商: HD404326
HD404328 Series
17
Interrupts
The MCU has eight interrupt sources: two external signals (
INT
0
and INT
1
), three timer/counters (timer A,
timer B, and timer C), serial interface, zero-crossing detection, and A/D converter.
An interrupt request flag (IF), interrupt mask (IM), and vector address are provided for each interrupt
source, and an interrupt enable flag (IE) controls the entire interrupt process.
Vector addresses are shared by serial interface and A/D converter interrupt causes, so software must first
check which type of request has occurred.
Interrupt Control Bits and Interrupt Servicing:
Locations $000–$003 and $020–$023 in RAM are
reserved for the interrupt control bits which can be accessed by RAM bit manipulation instructions.
The interrupt request flag (IF) cannot be set by software. MCU reset initializes the interrupt enable flag
(IE) and the IF to 0 and the interrupt mask (IM) to 1.
A block diagram of the interrupt control circuit is shown in figure 6, interrupt priorities and vector
addresses are listed in table 2, and interrupt processing conditions for the eight interrupt sources are listed
in table 3.
An interrupt request occurs when the IF is set to 1 and the IM is set to 0. If the IE is 1 at that point, the
interrupt is processed. Priority control logic generates the vector address assigned to that interrupt source.
The interrupt processing sequence is shown in figure 7 and an interrupt processing flowchart is shown in
figure 8. After an interrupt is acknowledged, the previous instruction is completed in the first cycle. The
IE is reset in the second cycle, the carry flag, status flag, and program counter values are pushed onto the
stack during the second and third cycles, and the program jumps to the vector address to execute the
instruction in the third cycle.
Program the JMPL instruction at each vector address, to branch the program to the start address of the
interrupt program, and reset the IF by a software instruction within the interrupt program.
相關(guān)PDF資料
PDF描述
HD4074449 4-bit HMCS400-Series microcomputer(4位單片微計算機(jī))
HD404448 4-bit HMCS400-Series microcomputer(4位單片微計算機(jī))
HD404449 4-bit HMCS400-Series microcomputer(4位單片微計算機(jī))
HD4074459 4-bit HMCS400-Series microcomputer(4位單片微計算機(jī))
HD404458 4-bit HMCS400-Series microcomputer(4位單片微計算機(jī))
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
HD404326FS 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:microcomputer designed to increase program productivity
HD404326H 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:microcomputer designed to increase program productivity
HD404326S 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:microcomputer designed to increase program productivity
HD404326U 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:microcomputer designed to increase program productivity
HD404326UFS 制造商:RENESAS 制造商全稱:Renesas Technology Corp 功能描述:microcomputer designed to increase program productivity