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.

Functional Description www.ti.com<br />

<strong>23</strong>.3.17.2 IF3 Register Set<br />

Figure <strong>23</strong>-18. Data Transfer Between IF1/IF2 Registers and Message RAM<br />

No<br />

Read Message Object to IF1/IF2<br />

START<br />

Write Message Number to<br />

Command Register<br />

Yes<br />

Busy = 1<br />

No Yes<br />

WR/RD = 1<br />

Busy = 0<br />

Read Message Object to IF1/IF2<br />

Write IF1/IF2 to Message RAM<br />

The IF3 register set can automatically be updated with received message objects without the need to<br />

initiate the transfer from message RAM by CPU. The intention of this feature of IF3 is to provide an<br />

interface for the DMA to read packets efficiently. The automatic update functionality can be programmed<br />

for each message object (Section <strong>23</strong>.4.1.28).<br />

All valid message objects in message RAM which are configured for automatic update, will be checked for<br />

active NewDat flags. If such a message object is found, it will be transferred to the IF3 register (if no<br />

previous DMA transfers are ongoing), controlled by IF3 Observation register. If more than one NewDat<br />

flag is active, the message object with the lowest number has the highest priority for automatic IF3 update.<br />

The NewDat bit in the message object will be reset by a transfer to IF3.<br />

If D<strong>CAN</strong> internal IF3 update is complete, a DMA request is generated. The DMA request stays active until<br />

first read access to one of the IF3 registers. The DMA functionality has to be enabled by setting bit DE3 in<br />

<strong>CAN</strong> control register. Please refer to the device datasheet to find out if this DMA source is available.<br />

NOTE: The IF3 register set can not be used for transferring data into message objects.<br />

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