Intel 8XC196K Series User Manual page 555

Table of Contents

Advertisement

8XC196K x, J x , CA USER'S MANUAL
CAN_STAT
CAN_STAT
(87C196CA)
The CAN status (CAN_STAT) register reflects the current status of the CAN peripheral.
7
87C196CA
BUSOFF
Bit
Bit
Number
Mnemonic
7
BUSOFF
6
WARN
5
4
RXOK
3
TXOK
2:0
LEC2:0
C-28
WARN
RXOK
Bus-off Status
The CAN peripheral sets this read-only bit to indicate that it has isolated
itself from the CAN bus (floated the TX pin) because an error counter has
reached 256. A bus-off recovery sequence clears this bit and clears the
error counters. (See "Bus-off State" on page 12-41.)
Warning Status
The CAN peripheral sets this read-only bit to indicate that an error counter
has reached 96, indicating an abnormal rate of errors on the CAN bus.
Reserved. This bit is undefined.
Reception Successful
The CAN peripheral sets this bit to indicate that a message has been
successfully received (error free, regardless of acknowledgment) since the
bit was last cleared. Software must clear this bit when it services the
interrupt.
Transmission Successful
The CAN peripheral sets this bit to indicate that a message has been
successfully transmitted (error free and acknowledged by at least one
other node) since the bit was last cleared. Software must clear this bit
when it services the interrupt.
Last Error Code
This field indicates the error type of the first error that occurs in a message
frame on the CAN bus. ("Error Detection and Management Logic" on page
12-9 describes the error types.)
LEC2 LEC1 LEC0 Error Type
0
0
0
no error
0
0
1
stuff error
0
1
0
form error
0
1
1
acknowledgment error
1
0
0
bit 1 error
1
0
1
bit 0 error
1
1
0
CRC error
1
1
1
unused
Address:
Reset State:
TXOK
LEC2
LEC1
Function
1E01H
XXH
0
LEC0

Advertisement

Table of Contents
loading

Table of Contents