English
Language : 

DS80C390_00 Datasheet, PDF (39/155 Pages) Dallas Semiconductor – High-Speed Microcontroller User’s Guide Supplement
DS80C390 High-Speed Microcontroller User’s Guide Supplement
CAN 0 Status Register (C0S)
7
6
5
4
3
2
1
0
SFR A4h BUSOFF CECE WKS
RXS
TXS
ER2
ER1
ER0
R-0
R-0
R-0
RW-0 RW-0
R-0
R-0
R-0
R=Unrestricted Read, W=Unrestricted Write, -n=Value after Reset
BUSOFF
Bit 7
CECE
Bit 6
WKS
Bit 5
CAN 0 Bus Off. When BUSOFF = 1, the CAN 0 Bus is disabled and is not
capable of receiving or transmitting messages. This condition is the result of the
transmit error counter reaching a count of 256. When the CAN 0 module detects
an error count of 256 the CAN module will automatically set BUSOFF = 1 and
clear SWINT = 0.
BUSOFF is cleared to a 0 to enable CAN 0 Bus activity when the CAN module
completes both the busoff recovery (128 X 11 consecutive recessive bits) and the
power-up sequence (11 consecutive recessive bits). Once the CAN module has
completed this relationship it will set SWINT = 1 and will enter into the software
initialization state. Once software has cleared SWINT to a 0, the CAN module
will be enabled to transmit and receive messages. When BUSOFF = 0, the CAN 0
Bus is enabled to receive or transmit messages. A change in the state of BUSOFF
from a previous 0 to a 1 will generate an interrupt if the ERIE, C0IE and EA
register bits are set. All microcontroller writes to the SWINT bit are disabled
when BUSOFF = 1. Both the transmit and receive error counters are cleared to
00h when the Bus Off condition is cleared by the CAN module (BUSOFF=0).
CAN 0 Error Count Exceeded. This bit operates in one of two modes,
depending on the state of the ERCS bit in the CAN 0 Control Register.
ERCS = 0 (Error count limit=96) In this mode when CECE=1, the interrupt
flag indicates that either the CAN 0 Transmit Error Counter or the CAN 0
Receive Error Counter has reached an error count of 96, which represents an
exceptionally high number of errors. CECE=0 indicates that both error
counters have an error count of less than 96. A 0 to 1 transition of CECE will
generate an interrupt if the ERIE, C0IE and IE SFR bits are set.
ERCS = 1 (Error count limit=128) In this mode when CECE=1, the interrupt
flag indicates that either the CAN 0 Transmit Error Counter or the CAN 0
Receive Error Counter has reached an error count of 128, which represents an
exceptionally high number of errors. CECE = 0 indicates that the current
Transmit Error Counter and Receive Error Counter both have an error count
of less than 128. A change in the state of CECE from either a previous 0 to a
1 or from a previous 1 to 0 will generate an interrupt if the ERIE, C0IE and
IE SFR bits are set.
CAN 0 Wake-up Status. When WKS=1, the CAN 0 module is in either SIESTA
or Power Down mode. Clearing both the SIESTA and PDE bits will force the
WKS=0. A change in the state of WKS from a previous 1 to 0 will generate an
interrupt if the STIE, C0IE and IE SFR bits are set.
39 of 155