01.08.2013 Views

Chapter 23 Controller Area Network (CAN).pdf

Chapter 23 Controller Area Network (CAN).pdf

Chapter 23 Controller Area Network (CAN).pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

D<strong>CAN</strong> Registers www.ti.com<br />

Table <strong>23</strong>-14. <strong>CAN</strong> Control Register (D<strong>CAN</strong> CTL) Field Descriptions (continued)<br />

Bit Field Value Description<br />

0 Init Initialization<br />

0 Normal operation<br />

1 Initialization mode is entered<br />

NOTE: The Bus-Off recovery sequence (refer to <strong>CAN</strong> specification) cannot be shortened by setting<br />

or resetting Init bit. If the module goes Bus-Off, it will automatically set the Init bit and stop all<br />

bus activities.<br />

When the Init bit is cleared by the application again, the module will then wait for 129<br />

occurrences of Bus Idle (129 * 11 consecutive recessive bits) before resuming normal<br />

operation. At the end of the bus-off recovery sequence, the error counters will be reset.<br />

After the Init bit is reset, each time when a sequence of 11 recessive bits is monitored, a Bit0<br />

error code is written to the error and status register, enabling the CPU to check whether the<br />

<strong>CAN</strong> bus is stuck at dominant or continuously disturbed, and to monitor the proceeding of the<br />

bus-off recovery sequence.<br />

<strong>23</strong>.4.1.2 Error and Status Register (D<strong>CAN</strong> ES)<br />

The error and status register (D<strong>CAN</strong> ES) is shown in Figure <strong>23</strong>-20 and described in Table <strong>23</strong>-15.<br />

Figure <strong>23</strong>-20. Error and Status Register (D<strong>CAN</strong> ES)<br />

31 16<br />

Reserved<br />

R-0<br />

15 11 10 9 8 7 6 5 4 3 2 0<br />

Reserved PDA Wake PER BOff EWarn EPass RxOK TxOK LEC<br />

UpPnd<br />

R-0 R-0 R/C-0 R/C-0 R-0 R-0 R-0 R/C-0 R/C-0 R/S-111<br />

LEGEND: R = Read only; S = Set by Read; C = Clear by Read; -n = value after reset<br />

Bit Field Value Description<br />

Table <strong>23</strong>-15. Error and Status Register (D<strong>CAN</strong> ES) Field Descriptions<br />

31-11 Reserved 0 These bits are always read as 0. Writes have no effect.<br />

10 PDA Local power-down mode acknowledge<br />

0 D<strong>CAN</strong> is not in local power-down mode.<br />

1 Application request for setting D<strong>CAN</strong> to local power-down mode was successful. D<strong>CAN</strong> is in local<br />

power-down mode.<br />

9 WakeUp Pnd Wake up pending. This bit can be used by the CPU to identify the D<strong>CAN</strong> as the source to wake up<br />

the system.<br />

0 No Wake Up is requested by D<strong>CAN</strong>.<br />

8 PER Parity error detected<br />

7 BOff Bus-Off state<br />

1 D<strong>CAN</strong> has initiated a wake up of the system due to dominant <strong>CAN</strong> bus while module power down.<br />

This bit will be reset if error and status register is read.<br />

0 No parity error has been detected since last read access.<br />

1 The parity check mechanism has detected a parity error in the Message RAM.<br />

This bit will be reset if error and status register is read.<br />

0 The <strong>CAN</strong> module is not bus-off state.<br />

1 The <strong>CAN</strong> module is in bus-off state.<br />

4082 <strong>Controller</strong> <strong>Area</strong> <strong>Network</strong> (<strong>CAN</strong>) SPRUH73E–October 2011–Revised May 2012<br />

Submit Documentation Feedback<br />

Copyright © 2011–2012, Texas Instruments Incorporated

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!