EasyManuals Logo

ST STM32F102 series User Manual

ST STM32F102 series
690 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 #527 background imageLoading...
Page #527 background image
RM0008 Controller area network (bxCAN)
527/690
CAN bit timing register (CAN_BTR)
Address offset: 0x1C
Reset value: 0x0123 0000
Note: This register can only be accessed by the software when the CAN hardware is in
initialization mode.
Bits 6:4 LEC[2:0]: 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’.
Code 7 is unused and may be written by the hardware to check for an 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, forced by hardware to 0.
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 TEC
overflow, greater than 255, refer to Section 21.4.6 on page 514.
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>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≥96).
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
SILM LBKM Reserved SJW[1:0] Res. TS2[2:0] TS1[3:0]
rw rw Res. rw rw rw rw rw rw rw rw rw
1514131211109876543210
Reserved BRP[9:0]
Res. rw rw rw rw rw rw rw rw rw rw
Bit 31 SILM: Silent Mode (Debug)
0: Normal operation
1: Silent Mode
Bit 30 LBKM: Loop Back Mode (Debug)
0: Loop Back Mode disabled
1: Loop Back Mode enabled
Bits 29:26 Reserved, forced by hardware to 0.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F102 series Specifications

General IconGeneral
BrandST
ModelSTM32F102 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals