| Electronic Components Datasheet Search |
|
DS80C390 Datasheet(PDF) 39 Page - Dallas Semiconductor |
|
|
|||||||||||||||||||||||||||||
DS80C390 Datasheet(HTML) 39 Page - Dallas Semiconductor |
|
39 / 155 page ![]() DS80C390 High-Speed Microcontroller User’s Guide Supplement 39 of 155 CAN 0 Status Register (C0S) 7654 3210 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 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). CECE Bit 6 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. WKS Bit 5 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. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |