Interrupt Function - NEC V850E/Dx3 Preliminary User's Manual

32-bit single-chip microcontroller
Table of Contents

Advertisement

Chapter 19
No.
1
2
3
4
5
6
732
Downloaded from
Elcodis.com
electronic components distributor

19.13 Interrupt Function

The CAN module provides 6 different interrupt sources.
The occurrence of these interrupt sources is stored in interrupt status
registers. Four separate interrupt request signals are generated from the six
interrupt sources. When an interrupt request signal that corresponds to two or
more interrupt sources is generated, the interrupt sources can be identified by
using an interrupt status register. After an interrupt source has occurred, the
corresponding interrupt status bit must be cleared to 0 by software.
Table 19-26
List of CAN module interrupt sources
Interrupt status bit
Interrupt enable bit
Name
Register
Name
Note
CINTS0
CnINTS
CIE0
Note
CINTS1
CnINTS
CIE1
CINTS2
CnINTS
CIE2
CINTS3
CnINTS
CIE3
CINTS4
CnINTS
CIE4
CINTS5
CnINTS
CIE5
Note
The CnMCTRL.IE bit (message buffer interrupt enable bit) of the
corresponding message buffer has to be set to 1 for that message buffer to
participate in the interrupt generation process.
Supplements
1.
This interrupt is generated when the transmission/reception error counter
is at the warning level, or in the error passive or bus-off state.
2.
This interrupt is generated when a stuff error, form error, ACK error, bit
error, or CRC error occurs.
3.
This interrupt is generated when the CAN module is woken up from the
CAN sleep mode because a falling edge is detected at the CAN reception
pin (CAN bus transition from recessive to dominant).
Preliminary User's Manual U17566EE1V2UM00
Interrupt
request
Register
signal
Message frame successfully transmitted from
CnIE
INTCnTRX
message buffer m
Valid message frame reception in message
CnIE
INTCnREC
buffer m
CAN module error state interrupt
CnIE
INTCnERR
(Supplement 1)
CAN module protocol error interrupt
CnIE
(Supplement 2)
CnIE
CAN module arbitration loss interrupt
CAN module wakeup interrupt from CAN
CnIE
INTCnWUP
sleep mode (Supplement 3)
CAN Controller (CAN)
Interrupt source description

Advertisement

Table of Contents
loading

Table of Contents