STMicroelectronics STM32F405 Reference Manual page 1096

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

Controller area network (bxCAN)
Bit 2 FFIE0
Bit 1 FMPIE0
Bit 0 TMEIE
Note: Refer to
CAN error status register (CAN_ESR)
Address offset: 0x18
Reset value: 0x0000 0000
31
30
29
r
r
r
15
14
13
Bits 31:24 REC[7:0]
Bits 23:16 TEC[7:0]
Bits 15:7 Reserved, must be kept at reset value.
Bits 6:4 LEC[2:0]
Bit 3 Reserved, must be kept at reset value.
1096/1731
:
FIFO full interrupt enable
0: No interrupt when FULL bit is set.
1: Interrupt generated when FULL bit is set.
:
FIFO message pending interrupt enable
0: No interrupt generated when state of FMP[1:0] bits are not 00b.
1: Interrupt generated when state of FMP[1:0] bits are not 00b.
:
Transmit mailbox empty interrupt enable
0: No interrupt when RQCPx bit is set.
1: Interrupt generated when RQCPx bit is set.
Section 32.8: bxCAN
28
27
26
25
REC[7:0]
r
r
r
r
12
11
10
9
Reserved
:
Receive error counter
The implementing part of the fault confinement mechanism of the CAN protocol. In case of
an error during reception, this counter is incremented by 1 or by 8 depending on the error
condition as defined by the CAN standard. After every successful reception the counter is
decremented by 1 or reset to 120 if its value was higher than 128. When the counter value
exceeds 127, the CAN controller enters the error passive state.
:
Least significant byte of the 9-bit transmit error counter
The implementing part of the fault confinement mechanism of the CAN protocol.
:
Last error code
This field is set by hardware and holds a code which indicates the error condition of the last
error detected on the CAN bus. If a message has been transferred (reception or
transmission) without error, this field will be cleared to '0'.
The LEC[2:0] bits can be set to value 0b111 by software. They are updated by hardware to
indicate the current communication status.
000: No Error
001: Stuff Error
010: Form Error
011: Acknowledgment Error
100: Bit recessive Error
101: Bit dominant Error
110: CRC Error
111: Set by software
DocID018909 Rev 11
interrupts.
24
23
22
21
r
r
r
r
8
7
6
5
LEC[2:0]
rw
rw
20
19
18
17
TEC[7:0]
r
r
r
r
4
3
2
1
BOFF
EPVF
Res.
rw
r
r
RM0090
16
r
0
EWGF
r

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F405 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF