Interrupt Vector Table - Fujitsu MB88121 Application Note

32-bit microcontroller
Hide thumbs Also See for MB88121:
Table of Contents

Advertisement

An initialization example of the external interrupt 5 is shown below.
void
Init_extint_5 (void){
ENIR0_EN5 = 0;
DDR24_D5 = 0;
PFR24_D5 = 1;
ELVR0_LB5 = 1;
ELVR0_LA5 = 0;
EIRR0_ER5 = 0;
ENIR0_EN5 = 1;
}
Before enabling the external interrupt request (ENn = 1) it is recommended to clear the
request flag of the external interrupt (ERn = 0) to avoid interrupts caused by previous trigger
(ERn is set independently of the setting of ENn).

3.2.2.3 Interrupt vector table

Register ICR defines the interrupt level. 16 priority levels are programmable. Level 16 has
the highest priority and level 31 disable the interrupt. The address of each interrupt service
routine is set in the interrupt vector. The vector address for each external interrupt is
calculated by adding the offset (listed in the following table) to the table base register value
(TBR). The TBR specifies the top of the interrupt vector table. Its initial value after a reset is
0x000FFC00.
External
interrupt
channel
(decimal)
0
1
2
3
4
5
6
7
8
9
10
reserved
12
13
MCU-AN-300016-E-V10
Interfacing MB91460 TO MB88121
Chapter 3 Software
Table 3-17 I/O port configuration for external interrupt
/* disable extInt5 interrupt */
/* port24.5 Data direction: input */
/* set Port function of P24.5 to external Interrupt */
/* rising edge detection */
/* clear interrupt request flag */
/* enable extInt5 interrupt */
Interrupt level
Interrupt
number
Configuration
register
16
ICR00
17
18
ICR01
19
20
ICR02
21
22
ICR03
23
24
ICR04
25
26
ICR05
27
28
ICR06
29
Register
Offset
address
0x3BC
0x440
0x3B8
0x3B4
0x441
0x3B0
0x3AC
0x442
0x3A8
0x3A4
0x443
0x3A0
0x39C
0x444
0x398
0x394
0x445
0x390
0x38C
0x446
0x388
- 40 -
© Fujitsu Microelectronics Europe GmbH
Interrupt vector
Default vector
address
0x000FFFBC
0x000FFFB8
0x000FFFB4
0x000FFFB0
0x000FFFAC
0x000FFFA8
0x000FFFA4
0x000FFFA0
0x000FFF9C
0x000FFF98
0x000FFF94
0x000FFF90
0x000FFF8C
0x000FFF88

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91460

Table of Contents