Can Error Count Registers - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

13

13.2.6 CAN Error Count Registers

CAN0 Receive Error Count Register (CAN0REC)
CAN1 Receive Error Count Register (CAN1REC)
b0
1
2
0
0
0
b
Bit Name
0–7
REC
During an error active/error passive state, a receive error count value is stored in this register.
The count is decremented when frames are received normally or incremented when an error occurred. If the
CAN module finished receiving normally when REC ≥ 128 (error passive), REC is set to 127. During a bus off
state, an undefined value is stored in this register. The count is reset to H'00 upon returning to an error active
state.
CAN0 Transmit Error Count Register (CAN0TEC)
CAN1 Transmit Error Count Register (CAN1TEC)
b8
9
10
0
0
0
b
Bit Name
8–15
TEC
During an error active/error passive state, a transmit error count value is stored in this register.
The count is decremented when frames are transmitted normally or incremented when an error occurred. Dur-
ing a bus off state, an undefined value is stored in this register. The count is reset to H'00 upon returning to an
error active state.
3
4
5
6
REC
0
0
0
0
11
12
13
14
TEC
0
0
0
0
13.2 CAN Module Related Registers
b7
0
Function
Receive error count value
b15
0
Function
Transmit error count value
13-25
CAN MODULE
<Address: H'0080 100A>
<Address: H'0080 140A>
<After reset: H'00>
R
R
<Address: H'0080 100B>
<Address: H'0080 140B>
<After reset: H'00>
R
R
32180 Group User's Manual (Rev.1.0)
W
W

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents