04.03.2013 Views

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

RL78/D1A User's Manual: Hardware - Renesas

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Under development<br />

Preliminary document<br />

Specifications in this document are tentative and subject to change.<br />

<strong>RL78</strong>/<strong>D1A</strong> CHAPTER 14 CAN CONTROLLER<br />

14.9.6 Remote frame reception<br />

In all the operation modes, when a remote frame is received, the message buffer that is to store the remote frame is<br />

searched from all the message buffers satisfying the following conditions.<br />

- Used as a message buffer<br />

(MA0 bit of C0MCONFm register set to 1B.)<br />

- Set as a transmit message buffer<br />

(MT [2:0] bits in C0MCONFm register set to 000B)<br />

- Ready for reception<br />

(RDY bit of C0MCTRLm register set to 1.)<br />

- Set to transmit message<br />

(RTR bit of C0MCONFm register is cleared to 0.)<br />

- Transmission request is not set.<br />

(TRQ bit of C0MCTRLm register is cleared to 0.)<br />

Upon acceptance of a remote frame, the following actions are executed if the ID of the received remote frame matches<br />

the ID of a message buffer that satisfies the above conditions.<br />

- The MDLC [3:0] bit string in the C0MDLCm register stores the received DLC value.<br />

- C0MDATA0m to C0MDATA7m in the data area are not updated (data before reception is saved).<br />

- The DN bit of the C0MCTRLm register is set to 1.<br />

- The CINTS1 bit of the C0INTS register is set to 1 (if the IE bit in the C0MCTRLm register of the message buffer that<br />

receives and stores the frame is set to 1).<br />

- The reception completion interrupt (INTCREC) is output (if the IE bit in the C0MCTRLm register of the message buffer<br />

that receives and stores the frame is set to 1 and if the CIE1 bit of the C0IE register is set to 1).<br />

- The message buffer number is recorded to the receive history list.<br />

Caution When a message buffer is searched for receiving and storing a remote frame, overwrite control by<br />

the OWS bit of the C0MCONFm register of the message buffer and the DN bit of the C0MCTRLm<br />

register are not affected. The setting of OWS is ignored, and DN is set in any case.<br />

If more than one transmit message buffer has the same ID and the ID of the received remote frame<br />

matches that ID, the remote frame is stored in the transmit message buffer with the lowest message<br />

buffer number.<br />

Remark m = 0 to 15<br />

R01UH0317EJ0004 Rev. 0.04 892<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!