BAT32G1x9 user manual | Chapter 22 CAN control
931 / 1149
Rev.1.02
22.9.6
Remote frame reception
In all operating modes, when a remote frame is received, a packet buffer that can store the remote frame is
searched from all packet buffers that meet the following criteria.
-
Used for packet caching
(Bit MA0 of the CnMCONFm register is set to 1).
-
Is set up as a cache for transmission messages
(The MT[2:0] bit of the CnMCONFm register is set to 000B.)
-
Prepare to receive
(The RDY bit of the CnMCTRLm register is set to 1.).
-
Set to transmit messages
(RTR bit clear 0 for cnMCONFm registers).
-
The transfer request is not set
(The TRQ bit of the CnMCTRLm register is cleared to 0).
After accepting a remote frame, if the ID of the received remote frame matches the ID of the message
buffer that meets the above criteria, do the following:
-
The MDLC [3:0] bit of the CnMDLCm register stores the received DLC value
-
The Data Intervals from CnMDATA0m to CnMDATA7m are not updated (saving pre-receive data).
-
The DN bit of the CnMCTRLm register is set at 1.
-
The CNINTS register's CINTS1 bit is set to 1 (if the IE bit in the received and stored message buffer
registers cnMCTRLm is set to 1).
-
Output Receive Completion Interrupt (INTCREC) (if the IE bit in the message buffer register for receiving
and storing frames is set to 1, and the CIE1 bit in the CnIE register is set to 1).
-
The message buffer number is logged to the receive history list.
Note When a packet buffer is searched for to receive and store remote frames, the overwrite control of the OWS bit
of the message buffer CnMCONFm register and the DN bit of the CnMCTRLm register is not affected
The
settings for OWS are ignored and the DN is set in any case. If multiple transmit packet buffers have the
same ID and the ID of the received remote frame matches that ID, the remote frame is stored in the buffer
with the lowest number of packet buffers.
Note m=0
to
15