Chapter 23 Controller Area Network (CAN).pdf
Chapter 23 Controller Area Network (CAN).pdf
Chapter 23 Controller Area Network (CAN).pdf
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 />
Figure <strong>23</strong>-4. <strong>CAN</strong> Bit-Timing Configuration<br />
Set Init = 1<br />
Set CCE = 1<br />
Wait for Init = 1<br />
Write Bit timing values into BTR<br />
Clear CCE and Init<br />
CCE = 0 , Init = 0<br />
Wait for Init = 0<br />
Normal Mode<br />
Initialization Mode<br />
Normal Mode<br />
Step 2: Set the Configure Change Enable ( CCE) bit in the <strong>CAN</strong> control register.<br />
The access to the Bit Timing register (BTR) for the configuration of the bit timing is enabled when both Init<br />
and CCE bits in the <strong>CAN</strong> Control register are set.<br />
Step 3: Wait for the Init bit to get set. This would make sure that the module has entered Initialization<br />
mode.<br />
Step 4: Write the bit timing values into the bit timing register. See Section <strong>23</strong>.3.16.2 for the BTR value<br />
calculation for a given bit timing.<br />
Step 5: Clear the CCE and Init bit.<br />
Step 6: Wait for the Init bit to clear. This would ensure that the module has come out of initialization<br />
mode.<br />
Following these steps, the module comes to operation by synchronizing itself to the <strong>CAN</strong> bus, provided<br />
the BTR is configured as per the <strong>CAN</strong> bus baud rate, although the message objects have to be configured<br />
before carrying out any communication.<br />
NOTE: The module will not come out of the initialization mode if any incorrect BTR values are<br />
written in step 4.<br />
NOTE: The required message objects should be configured as transmit or receive objects before the<br />
start of data transfer as explained in Section <strong>23</strong>.3.8.1.<br />
4044 <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