English
Language : 

32182 Datasheet, PDF (546/755 Pages) Renesas Technology Corp – 32-BIT RISC SINGLE-CHIP MICROCOMPUTER M32R FAMILY / M32R/ECU SERIES
13
CAN MODULE
13.5 Transmitting Data Frames
Data frame transmit procedure
Initialize the CAN Message
Slot Control Register
Read the CAN Message Slot
Control Register
Write H'00
NO
TRSTAT bit = 0
YES
Set ID and data in the
message slot
Confirm that transmission is idle
Set the Extended ID Register
Standard ID or extended ID
Set the CAN Message Slot
Control Register
Write H'80 (transmit request)
End of setting
Figure 13.5.1 Data Frame Transmit Procedure
13.5.2 Data Frame Transmit Operation
The following describes data frame transmit operation. The operations described below are automatically per-
formed in hardware.
(1) Selecting a transmit frame
The CAN module checks slots which have transmit requests (including remote frame transmit slots) every
intermission to determine the frame to transmit. If two or more transmit slots exist, frames are transmitted in
order of slot numbers beginning with the smallest.
(2) Transmitting a data frame
After determining the transmit slot, the CAN module sets the corresponding CAN Message Slot Control
Register’s TRSTAT (Transmit/Receive Status) bit to "1" and starts transmitting.
(3) If lost in CAN bus arbitration or a CAN bus error occurs
If the CAN module lost in CAN bus arbitration or a CAN bus error occurs in the middle of transmission, the
CAN module clears the CAN Message Slot Control Register’s TRSTAT (Transmit/Receive Status) bit to "0".
If the CAN module requested a transmit abort, the transmit abort is accepted and the message slot is enabled
for write.
13-79
32182 Group User’s Manual (Rev.1.0)