EasyManuals Logo

ST STM8S Reference Manual

ST STM8S
449 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #392 background imageLoading...
Page #392 background image
Controller area network (beCAN) RM0016
392/449 Doc ID 14587 Rev 8
23.11.9 CAN error status register (CAN_ESR)
Address offset: See Table 70.
Reset value: 0000 0000 (00h)
76543210
Reserved
LEC[2:0]
Reserved
BOFF EPVF EWGF
rw rw rw r r r
Bit 7 Reserved.
Bit 6:4 LEC[2:0] Last error code
This field holds a code which indicates the type 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 code 7 is unused and may be written by the CPU to check for update.
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
Bit 3 Reserved.
Bit 2 BOFF Bus-off flag
This bit is set by hardware when it enters the bus-off state. The bus-off state is entered on
CAN_TECR overrun, TEC greater than 255, refer to Section 23.6.5 on page 380.
Bit 1 EPVF Error passive flag
This bit is set by hardware when the Error Passive limit has been reached (Receive Error Counter or
Transmit Error Counter greater than 127).
Bit 0 EWGF Error warning flag
This bit is set by hardware when the warning limit has been reached. Receive Error Counter or
Transmit Error Counter greater than 96.

Table of Contents

Other manuals for ST STM8S

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM8S Specifications

General IconGeneral
BrandST
ModelSTM8S
CategoryMicrocontrollers
LanguageEnglish

Related product manuals