Samsung S5PC100 User Manual page 714

Table of Contents

Advertisement

S5PC100 USER'S MANUAL (REV1.0)
During the waiting time after the resetting of Init, each time a sequence of 11 recessive bits has been monitored, a
Bit0Error code is written to the Status Register. This enables the CPU to readily check whether the CAN bus is
stuck at dominant or continuously disturbed and to monitor the proceeding of the busoff recovery sequence.
6.2.2
Status Register
CAN0_STS, R/W, Address = 0xEC70_0004
CAN1_STS, R/W, Address = 0xEC80_0004
CANn_STS
Bit
Reserved
[15:8]
BOff
[7]
EWarn
[6]
EPass
[5]
RxOk
[4]
TxOk
[3]
LEC
[2:0]
Reserved
Busoff Status
1 = The CAN module is in busoff state.
0 = The CAN module is not in busoff state.
Warning Status
1 = At least one of the error counters in the EML has reached
the error warning limit of 96.
0 = Both error counters are below the error warning limit of 96.
Error Passive
1 = The CAN Core is in the error passive state as defined in
the CAN Specification.
0 = The CAN Core is in error active state.
Received a Message Successfully
1= Since this bit was last reset (to zero) by the CPU, a
message has been successfully received (independent of the
result of acceptance filtering).
0 = Since this bit was last reset by the CPU, no message has
been successfully received. This bit is never reset by the CAN
Core
Transmitted a Message Successfully
1: Since this bit was last reset by the CPU, a message has
been successfully (error free and acknowledged by at least
one other node) transmitted.
0: Since this bit was reset by the CPU, no message has been
successfully transmitted. This bit is never reset by the CAN
Core.
Last Error Code(Type of the last error to occur on the CAN
bus)
000 = No Error
001 = Stuff Error: More than 5 equal bits in a sequence have
occurred in a part of a received message where this is not
allowed.
010 = Form Error :A fixed format part of a received frame has
the wrong format
011 = AckError : The message this CAN Core transmitted
was not acknowledged by another node
Description
CCAN
R/W
Reset Value
R
0
R
0
R
0
R
0
R/W
0
R/W
0
R/W
0
8.5-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents