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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Functional Description www.ti.com<br />

<strong>23</strong>.3.11 Local Power-Down Mode<br />

The D<strong>CAN</strong> supports a local power-down mode, which can be controlled within the D<strong>CAN</strong> control registers.<br />

<strong>23</strong>.3.11.1 Entering Local Power-Down Mode<br />

The local power-down mode is requested by setting the PDR bit in <strong>CAN</strong> Control register.<br />

The D<strong>CAN</strong> then finishes all transmit requests of the message objects. When all requests are done, D<strong>CAN</strong><br />

waits until a bus idle state is recognized. Then it will automatically set the Init bit in <strong>CAN</strong> control register to<br />

prevent any further <strong>CAN</strong> transfers, and it will also set the PDA bit in <strong>CAN</strong> error and status register. With<br />

setting the PDA bits, the D<strong>CAN</strong> module indicates that the local power-down mode has been entered.<br />

During local power-down mode, the internal clocks of the D<strong>CAN</strong> module are turned off, but there is a<br />

wakeup logic (see Section <strong>23</strong>.3.11.2) that can be active, if enabled. Also, the actual contents of the control<br />

registers can be read back.<br />

NOTE: In local low-power mode, the application should not clear the Init bit while PDR is set. If there<br />

are any messages in the message RAM which are configured as transmit messages and the<br />

application resets the init bit, these messages may get sent.<br />

<strong>23</strong>.3.11.2 Wakeup From Local Power Down<br />

There are two ways to wake up the D<strong>CAN</strong> from local power-down mode:<br />

• The application could wake up the D<strong>CAN</strong> module manually by clearing the PDR bit and then clearing<br />

the Init bit in <strong>CAN</strong> Control register.<br />

• Alternatively, a <strong>CAN</strong> bus activity detection circuit can be activated by setting the wakeup on bus activity<br />

bit ( WUBA) in the <strong>CAN</strong> control register. If this circuit is active, on occurrence of a dominant <strong>CAN</strong> bus<br />

level, the D<strong>CAN</strong> will automatically start the wakeup sequence. It will clear the PDR bit in the <strong>CAN</strong><br />

Control register and also clear the PDA bit in the error and status register. The WakeUpPnd bit in <strong>CAN</strong><br />

error and status register will be set. If status interrupts are enabled, also an interrupt will be generated.<br />

Finally the Init bit in <strong>CAN</strong> control register will be cleared.<br />

After the Init bit has been cleared, the module waits until it detects 11 consecutive recessive bits on the<br />

<strong>CAN</strong>_RX pin and then goes bus-active again.<br />

NOTE: The <strong>CAN</strong> transceiver circuit has to stay active in order to detect any <strong>CAN</strong> bus activity while<br />

the D<strong>CAN</strong> is in local power down mode. The first <strong>CAN</strong> message, which initiates the bus<br />

activity, cannot be received. This means that the first message received in power-down and<br />

automatic wake-up mode, is lost.<br />

Figure <strong>23</strong>-11 shows a flow diagram about entering and leaving local power-down mode.<br />

4052 <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!