381
Chapter 13
FCAN Interface Function
Preliminary User’s Manual U14913EE1V0UM00
13.2.4 Interrupt
handling
The very high number of interrupt events generated by the FCAN system does not allow to assign an
independent interrupt vector of the V850E/CA1 (Atomic) to each event. Therefore, the interrupt request
signals are bundled into groups and the grouped interrupt request signal is then assigned to an inde-
pendent interrupt vector.
The concept of interrupt request signal bundling leads to the fact that all interrupt request signals of the
FCAN system are designed as interrupt pending signals. Interrupt pending signals are not automati-
cally treated by an interrupt service routine like interrupt request signals with an unambiguous interrupt
vector. Rather, on occurrence of the interrupt event the interrupt signal is generated and latched.
In the interrupt service routine the software must analyse, which particular interrupt event caused the
interrupt request by scanning the interrupt pending flags of a bundled interrupt signal group. After the
particular interrupt has been identified, the corresponding interrupt pending flag must be reset by soft-
ware at least before leaving the interrupt service routine.
Figure 13-4: FCAN Interrupt Bundling of V850E/CA1 (Atomic)
Remark:
x = 1 to 3
The interrupt pending registers of the FCAN system are:
- CGINTP: Global interrupt pending register
- C1INTP: CAN module 1 interrupt pending register
- C2INTP: CAN module 2 interrupt pending register
- C3INTP: CAN module 3 interrupt pending register
Additionally the entire interrupt pending flags are summarized in one register, the CAN interrupt pend-
ing register (CCINTP). However, the CCINTP register is a read-only register, and cannot be used for
clearing the interrupt pending flags.
For details on the interrupt pending registers refer to chapter 13.3.3.
CxINT6
0
CxINT5 CxINT4 CxINT3 CxINT2 CxINT1 CxINT0
CxINTP
CANxERR
CCINTP
GINT3
GINT1
CGINTP
INTMAC
Register Set
and clear Logic
set and clear signal
Bit10
Bit11
Bit12
Bit13
Bit14
Bit15
Bit9 Bit8
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2
Bit1 Bit0
GINT2
0
0
0
0
INTMAC
CAN2ERR
CAN2REC
CAN2TRX
CAN1ERR
CAN1REC
CAN1TRX
CANxREC
CANxTRX
0
0
0
0
0
GINT7
INTACT
CAN3ERR
CAN3REC
CAN3TRX
Summary of Contents for V850E/CA1 ATOMIC
Page 6: ...6 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 52: ...52 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 144: ...144 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 162: ...162 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 224: ...224 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 308: ...308 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 512: ...512 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 564: ...564 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 566: ...566 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Page 584: ...584 Preliminary User s Manual U14913EE1V0UM00 MEMO ...