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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 />

(22) CAN message configuration register (C0MCONFm, C1MCONFm)<br />

The C0MCONFm, C1MCONFm register is used to specify the type of the message buffer and to set a mask.<br />

Figure 14-48. Format of CAN Message Configuration Register (C0MCONFm, C1MCONFm) (1/2)<br />

Address: See Table 14-16 After reset: Undefined R/W<br />

C0MCONFm,<br />

C1MCONFm<br />

7 6 5 4 3 2 1 0<br />

OWS RTR MT2 MT1 MT0 0 0 MA0<br />

OWS Overwrite Control Bit<br />

0 The message buffer that has already received a data frame Note is not overwritten by a newly<br />

received data frame. The newly received data frame is discarded.<br />

1 The message buffer that has already received a data frame Note is overwritten by a newly received<br />

data frame.<br />

Note The “message buffer that has already received a data frame” is a receive message buffer whose DN<br />

bit has been set to 1.<br />

Remark A remote frame is received and stored, regardless of the setting of OWS bit and DN<br />

bit. A remote frame that satisfies the other conditions (ID matches, RTR = 0, TRQ = 0)<br />

is always received and stored in the corresponding message buffer (interrupt<br />

generated, DN flag set, MDLC [3:0] bits updated, and recorded to the receive history<br />

list).<br />

RTR Remote Frame Request Bit Note<br />

0 Transmit a data frame.<br />

1 Transmit a remote frame.<br />

Note The RTR bit specifies the type of message frame that is transmitted from a message<br />

buffer defined as a transmit message buffer. Even if a valid remote frame has been<br />

received, RTR of the transmit message buffer that has received the frame remains<br />

cleared to 0. Even if a remote frame whose ID matches has been received from the CAN<br />

bus with the RTR bit of the transmit message buffer set to 1 to transmit a remote frame,<br />

that remote frame is not received or stored (interrupt generated, DN flag set, MDLC [3:0]<br />

bits updated, and recorded to the receive history list).<br />

MT2 MT1 MT0 Message Buffer Type Setting Bit<br />

0 0 0 Transmit message buffer<br />

0 0 1 Receive message buffer (no mask setting)<br />

0 1 0 Receive message buffer (mask 1 set)<br />

0 1 1 Receive message buffer (mask 2 set)<br />

1 0 0 Receive message buffer (mask 3 set)<br />

1 0 1 Receive message buffer (mask 4 set)<br />

Other than above Setting prohibited<br />

Remark m = 0 to 15<br />

R01UH0317EJ0004 Rev. 0.04 875<br />

Feb. 22, 2013

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

Saved successfully!

Ooh no, something went wrong!