BAT32G1x9 user manual | Chapter 26 Interrupt function
1057 / 1149
Rev.1.02
26.3 Registers that control interrupt function
Interrupt function is controlled by the following four registers.
•
Interrupt request flag register (IF00~IF31).
• Interrupt mask flag register (MK00~MK31).
• External interrupt rise edge enable registers (EGP0, EGP1).
• External interrupt drop edge enable registers (EGN0, EGN1).
26.3.1
Interrupt request flag register (IF00~IF31).
By occurring with a corresponding interrupt request or executing instruction, the interrupt request flag is set
to "1". By generating a reset signal or executing an instruction, the interrupt request flag is cleared with "0".
Set the IF00L~IF31L, IF00H~IF31L, IF00H~IF31H, IF00T~IF31T registers via the 8-bit memory operation
instructions or set the IF00~IF31 registers through the 32-bit memory operation instructions.
After generating a reset signal, the values of these registers become "0000_0000H".
Figure 26-2 Format of the interrupt request flag register (IFm) (m=0~31).
Address:IF00:40006000H,IF01:40006004H,IF02:40006008H,IF03:4000600CH
IF04:40006010H,IF05:40006014H,IF06:40006018H,IF07:4000601CH
IF08:40006020H,IF09:40006024H,IF10:40006028H,IF11:4000602CH
IF12:40006030H,IF13:40006034H,IF14:40006038H,IF15:4000603CH
IF16:40006040H,IF17:40006044H,IF18:40006048H,IF19:4000604CH
IF20:40006050H,IF21:40006054H,IF22:40006058H,IF23:4000605CH
IF24:40006060H,IF25:40006064H,IF26:40006068H,IF27:4000606CH
IF28:40006070H,IF29:40006074H,IF30:40006078H,IF31:4000607CH
Reset value: 0000_0000HR/W
31
30
29
28
27
26
25
24
Reserved
23
22
21
20
19
18
17
16
IFmT
Reserved
IFT
15
14
13
12
11
10
9
8
IFmH
Reserved
IFH
7
6
5
4
3
2
1
0
IFmL
Reserved
IFL
IFmL
Interrupt request flag for interrupt sources
numbered 0 to 31
0
No interrupt request signal is generated.
1
Generates an interrupt request and is in the
interrupt request state.
IFmH
Interrupt request flag for interrupt sources
numbered 32 to 63
0
No interrupt request signal is generated.
1
Generates an interrupt request and is in the
interrupt request state.
IFmT
Interrupt request flag for interrupt sources
numbered 64 to 95
0
No interrupt request signal is generated.
1
Generates an interrupt request and is in the
interrupt request state.
Note: 1. The correspondence between the interrupt source and the interrupt request flag register is shown
2. Interrupt request flag register with CPU. The correspondence of the
IRQ
3. The interrupt request flag register does not self-clear, and the register must be written to 0 after
the interrupt response.