Download Print this page

Renesas M16C/50 Series User Manual page 648

Advertisement

M16C/5L Group, M16C/56 Group
23.6
Reception and Transmission
Table 23.11 list the CAN communication mode configuration.
Table 23.11
Configuration for CAN Reception Mode and Transmission Mode
TRMREQ
RECREQ
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
TRMREQ, RECREQ, ONESHOT: Bits in the C0MCTLj register (j = 0 to 31)
When a mailbox is configured as a receive mailbox or a one-shot receive mailbox, note the following:
(1) Before a mailbox is configured as a receive mailbox or a one-shot receive mailbox, set the
C0MCTLj register (j = 0 to 31) to 00h.
(2) A received message is stored into the first mailbox that matches the condition according to the
result of receive mode configuration and acceptance filtering. Upon deciding a mailbox which
stores the received message, the mailbox with the smaller number has higher priority.
(3) In CAN operation mode, when a CAN module transmits a message whose ID matches with the
ID/mask set of a mailbox configured to receive messages, the CAN module never receives the
transmitted data. In self-test mode, however, the CAN module may receive its transmitted data. In
this case, the CAN module sends an ACK.
When configuring a mailbox as a transmit mailbox or a one-shot transmit mailbox, note the following:
(1) Before a mailbox is configured as a transmit mailbox or one-shot transmit mailbox, ensure that the
C0MCTLj register is 00h and that there is no pending abort process.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
ONESHOT
0
Mailbox disabled or transmission being aborted.
Configurable only when transmission or reception from a mailbox
1
(programmed in one-shot mode) is aborted.
0
Configured as a receive mailbox for a data frame or a remote frame.
Configured as a one-shot receive mailbox for a data frame or a
1
remote frame.
Configured as a transmit mailbox for a data frame or a remote
0
frame.
Configured as a one-shot transmit mailbox for a data frame or a
1
remote frame.
0
Do not set.
1
Do not set.
Communication Mode of Mailbox
23. CAN Module
Page 611 of 803

Advertisement

loading