CAN Controllers and Acceptance Filter 196 May 03, 2004
Philips Semiconductors Preliminary User Manual
LPC2119/2129/2292/2294ARM-based Microcontroller
Interrupt Enable Register (CANIER - 0xE00x x010)
This read/write register controls whether various events on the CAN controller will result in an interrupt. Bits 7:0 in this register
correspond 1-to-1 with bits 7:0 in the CANICR register. See Table 124 for details on specific CAN channel register address.
20:16 ERRBIT
Error Code Capture: when the CAN controller detects a bus error, the location of
the error within the frame is captured in this field. The value reflects an internal
state variable.
00010: ID28:21 01010: Data field 10011: dominant OK bits
00011: Start of Frame 01011: DLC 10110: Passive error flag
00100: SRTR Bit 01100: RTR bit 10111: Error delimiter
00101: IDE Bit 01101: Reserved Bit 1 11000: CRC delimiter
00110: ID20:18 01110: ID4:0 11001: Ack slot
00111: ID17:13 01111: ID12:5 11010: End of Frame
01000: CRC 10001: Active Error flag 11011: Ack delimiter
01001: Reserved Bit 0 10010: Intermission 11100: Overload flag
Reading this byte enables another Bus Error Interrupt.
0X
21 ERRDIR
When the CAN controller detects a bus error, the direction of the current bit is
captured in this bit. 1=receiving, 0=transmitting.
0X
23:22 ERRC
When the CAN controller detects a bus error, the type of error is captured in this
field:
00=bit error, 01=Form error, 10=Stuff error, 11=other error.
0X
28:24 ALCBIT
Each time arbitration is lost while trying to send on the CAN, the bit number within
the frame is captured into this field. 0 indicates arbitration loss in the first (MS) bit
of the Identifier … 31 indicates loss in the RTR bit of an extended frame. After this
byte is read, the ALI bit is cleared and a new Arbitration Lost interrupt can occur.
0X
Table 129: CAN Interrupt Enable Register (CANIER - 0xE00x x010)
CANIER Name Function Reset Value RM Set
0 RIE Receiver Interrupt Enable. 0 X
1 TIE1 Transmit Interrupt Enable (1) 0 X
2 EIE Error Warning Interrupt Enable 0 X
3 DOIE Data Overrun Interrupt Enable 0 X
4 WUIE Wake-Up Interrupt Enable 0 X
5 EPIE Error Passive Interrupt Enable 0 X
6 ALIE Arbitration Lost Interrupt Enable 0 X
7 BEIE Bus Error Interrupt Enable 0 X
8 IDIE ID Ready Interrupt Enable 0 X
9 TIE2 Transmit Interrupt Enable (2) 0 X
10 TIE3 Transmit Interrupt Enable (3) 0 X
Table 128: CAN Interrupt and Capture Register (CANICR - 0xE00x x00C)
CANICR Name Function Reset Value RM Set