cp3ub26 National Semiconductor Corporation, cp3ub26 Datasheet - Page 133

no-image

cp3ub26

Manufacturer Part Number
cp3ub26
Description
Reprogrammable Connectivity Processor With Usb And Can Interfaces
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cp3ub26G18NEP/NOPB
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
cp3ub26G18NEPX
Manufacturer:
Texas Instruments
Quantity:
10 000
18.10.15 CAN Error Counter Register (CANEC)
The CANEC register reports the values of the CAN Receive
Error Counter and the CAN Transmit Error Counter.
REC
TEC
18.10.16 CAN Error Diagnostic Register (CEDIAG)
The CEDIAG register reports information about the last de-
tected error. The CAN module identifies the field within the
CAN frame format in which the error occurred, and it identi-
fies the bit number of the erroneous bit within the frame
field. The CPU bus master has read-only access to this reg-
ister, and all bits are cleared on reset.
EFID
Res. DRIVE MON CRC STUFF TXE EBID
15
15
14
REC
The CAN Receive Error Counter field reports
the value of the receive error counter.
The CAN Transmit Error Counter field reports
the value of the transmit error counter.
The Error Field Identifier field identifies the
frame field in which the last error occurred.
The encoding of the frame fields is shown in
Table 60.
13
EFID3:0
Table 60 Error Field Identifier
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
12
8
R
R
0
0
11
7
TRANSMISSION
INTERMISSION
ERROR ECHO
ARBITRATION
ARBITRATION
ERROR DEL
10
EXTENDED
SUSPEND
BUS IDLE
ERROR
R1/R0
Field
ACK
EOF
SOF
TEC
IDE
9
4 3
EFID
0
0
133
EBID
TXE
STUFF
CRC
MON
The Error Bit Identifier field reports the bit po-
sition of the incorrect bit within the erroneous
frame field. The bit number starts with the val-
ue equal to the respective frame field length
minus one at the beginning of each field and
is decremented with each CAN bit. Figure 53
shows an example on how the EBID is calcu-
lated.
For example, assume the EFID field shows
1110b and the EBID field shows 111001b.
This means the faulty field was the data field.
To calculate the bit position of the error, the
DLC of the message needs to be known. For
example, for a DLC of 8 data bytes, the bit
counter starts with the value: (8 × 8) - 1 = 63;
so when EBID[5:0] = 111001b = 57, then the
bit number was 63 - 57 = 6.
The Transmit Error bit indicates whether the
CAN module was an active transmitter at the
time the error occurred.
0 – The CAN module was a receiver at the
1 – The CAN module was an active transmit-
The Stuff Error bit indicates whether the bit
stuffing rule was violated at the time the error
occurred. Note that certain bit fields do not
use bit stuffing and therefore this bit may be
ignored for those fields.
0 – No bit stuffing error.
1 – The bit stuffing rule was violated at the
The CRC Error bit indicates whether the CRC
is invalid. This bit should only be checked if
the EFID field shows the code of the ACK
field.
0 – No CRC error occurred.
1 – CRC error occurred.
The Monitor bit shows the bus value on the
CANRX pin as sampled by the CAN module at
the time of the error.
Figure 53. EBID Example
EFID3:0
time the error occurred.
ter at the time the error occurred.
time the error occurred.
Table 60 Error Field Identifier
1101
1110
1111
r
r
Data Field
r
r
Field
DATA
Incorrect
CRC
r
www.national.com
DLC
Bit
r
DS047

Related parts for cp3ub26