15.08.2013 Views

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Like all the bits in this register, EIF is cleared by reading the register, or by an external<br />

reset.<br />

TIF: Transmit Interrupt Flag. The TIF bit is set at the end of a transmission whenever<br />

both the TBA (bit 2 of CSTAT register) and TIE (bit 2 of CCNTRL register) bits are set.<br />

Like all the bits in this register, TIF is cleared by reading the register, or when reset<br />

request is set.<br />

RIF: Receive Interrupt Flag. The RIF bit is set by the CAN Module when a new<br />

message is available in the receive buffer, and the RIE bit in CCNTRL is set. At the<br />

same time the RBS bit in the CSTAT register also gets set, indicating a new message is<br />

available. Like all the bits in this register, RIF is cleared by reading the register, or when<br />

reset request is set.<br />

5.3.7 CAN Module Acceptance Code Register (CACC)<br />

The Acceptance Code and Acceptance Mask Registers are used to provide limited<br />

message filtering on the eight most significant bits of the identifier. The Acceptance Mask<br />

Register defines which bits of the Acceptance Code Register are compared with the identifier of<br />

the incoming message. If the CAN Module receives a message with an identifier which does<br />

not meet its acceptance criterion, then it will respond by transmitting a dominant bit in the<br />

correct position of the ACK field, but will not transfer the message to the receive buffers or<br />

indicate to the CPU that a new message has been received [96].<br />

On reception each message is written into the current receive buffer. The CPU is only<br />

signaled to read the message however, if it passes the criteria in the Acceptance Code and<br />

153

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

Saved successfully!

Ooh no, something went wrong!