
23. 32-Slot CAN Module
23.1.15 CAN2 Error Interrupt Status Register (C2EISTR Register)
Figure 23.18
C2EISTR Register
When using the CAN interrupt, the C2EISTR register determines an error interrupt source.
Bits BOIS, EPIS, and BEIS are not automatically set to 0 (interrupt not requested) even if the interrupt is
acknowledged. Set these bits to 0 by program.
Use the MOV instruction to set each bit in the C2EISTR register to 0. Write a 0 to the bit which is to set to 0,
and write a 1 to the bit which is to remain unchanged.
For example: To set the BOIS bit in CAN2 to 0
mov.b#006h, C2EISTR
23.1.15.1 BOIS Bit
The BOIS bit becomes 1 when the CAN module is placed in a bus-off state.
NOTE:
1. Regardless of whether the BOIM bit in the C2EIMKR register is set to 0 (interrupt request masked) or 1
(interrupt request enabled), the BOIS bit becomes 1 when the CAN module becomes a bus-off state.
23.1.15.2 EPIS Bit
The EPIS bit becomes 1 when the CAN module is placed in an error passive state.
NOTE:
1. Regardless of whether the EPIM bit in the C2EIMKR register is set to 0 (interrupt request masked) or 1
(interrupt request enabled), the EPIS bit becomes 1 when the CAN module becomes an error-passive state.
23.1.15.3 BEIS Bit
The BEIS bit becomes 1 when a CAN bus error is detected.
NOTE:
1. Regardless of whether the BEIM bit in the C2EIMKR register is set to 0 (interrupt request masked) or 1
(interrupt request enabled), the BEIS bit becomes 1 when the CAN bus error is detected.
b7 b6 b5 b4
b1
b2
b3
Symbol
C2EISTR
Address
0515h
After Reset(1)
XXXX X000b
b0
Function
Bit Symbol
Bit Name
RW
(b7-b3)
CAN2 Error Interrupt Status Register
RW
Nothing is assigned. If necessary, set to 0.
When read, the content is undefined
NOTES:
1. Value is obtained by setting the SLEEP bit in the C2SLPR register to 1 (sleep mode exited) after reset and supplying the clock
to the CAN module.
2. Set the bit to 0 by program. When a 1 is written, the value before writing a 1 remains unchanged.
CAN bus-error interrupt
status bit(2)
0: Interrupt not requested
1: Interrupt requested
Bus-off interrupt
status bit(2)
Error-passive interrupt
status bit(2)
0: Interrupt not requested
1: Interrupt requested
BOIS
EPIS
BEIS
0: Interrupt not requested
1: Interrupt requested