Mitsubishi Electric M32R Series User Manual page 686

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

13
The following shows receive conditions for slots that have been set for data frame reception.
[Conditions]
• The receive frame is a data frame.
• The receive ID and the slot ID are identical, assuming the ID Mask Register bits set to 0 are
"Don't care bit."
• The standard and extended frame types are the same.
Note: In BasicCAN mode, slots 14 and 15 cannot be used as transmit slots.
(8) When receive conditions are met
When receive conditions in (7) above are met, the CAN module sets the CAN Message Slot
Control Register's TRSTAT (Transmit/Receive Status) and TRFIN (Transmit/Receive Finished)
bits to 1 while at the same time writing the received data to the message slot. If the TRFIN
(Transmit/Receive Finished) bit is already 1, the CAN module also sets the ML (Message Lost)
bit to 1, indicating that the message slot has been overwritten. The message slot has its ID field
and DLC field both overwritten and an indeterminate value written in its unused area (e.g.,
extended ID field for standard frame reception and an unused data field).
Furthermore, a time stamp count value at the time the message was received is written to the
CAN Message Slot Time Stamp (C0MSLnTSP) along with the received data. When the CAN
module finished writing to the message slot, it sets the CAN Slot Interrupt Status bit to 1. If the
interrupt for the slot has been enabled, an interrupt request is generated, and the slot goes to a
wait state for the next reception.
Note: If the CAN module received a data frame before transmitting a remote frame, it stores the
data frame in the slot and does not transmit the data frame.
(9) When receive conditions are not met
The received frame is discarded, and the CAN module goes to the next transmit/receive
operation without writing to the message slot.
13.7 Transmitting Remote Frames
13-72
CAN MODULE
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents