BAT32G1x9 user manual | Chapter 22 CAN control
938 / 1149
Rev.1.02
(3) ABT transmissions are aborted in normal operating mode with automatic block transfers
To abort the started ABT, clear the ABTTRG bit of the CnGMABT register to 0. In this case, if the ABT
message is currently being transmitted and until the transfer is complete (successful or not), the
ABTTRG bit will remain at 1 and cleared to 0 immediately after the transfer is complete. This will abort
ABT.
If the last transfer (before ABT) is successful, the normal operating mode of the ABT is preserved, with
the internal ABT pointer pointing to the next message buffer to be transmitted.
If the transfer is wrong, the position of the internal ABT pointer depends on the state of the TRQ bit in
the last transmitted packet buffer. If the TRQ bit is set to 1 when the ABTTRG bit is requested to be
cleared, the internal ABT pointer points to the last transmitted packet buffer (for details, see the
process in Figure 22-71). If the TRQ bit is cleared to 0 when the ABTTRG bit is cleared, the internal
ABT pointer will increment (+1) and point to the next message buffer in the ABT region (for details,
see the process in Figure 22-72).
Note: Make sure to abort ABT by clearing ABTRG to 0, this may not be possible if the transfer is
aborted by clearing the RDY bits.
When the normal mode of operation of ABT is restored after ABT abort and the ABTTRG bit is set to
1, the next ABT packet buffer to be transmitted can be determined from the following table.
ABT packet caching status
TRQ
Abort after a successful transfer
Aborted after error transmission
Setting (1).
The next message cache for
the ABT interval
1
ABT interval identical message caching
Clear (0).
The next message cache for
the ABT interval
1
The next message cache for the ABT interval
1
1: The above recovery operation can only be performed if there is a packet buffer in the ABT region that is
ready to use ABT. For example, an abort request issued while the ABT of packet buffer 7 is being
processed is considered to have been completed by the ABT, not aborted, and if the transmission of
packet buffer 7 has completed successfully, the ABT TRG has been cleared to 0. If the RDY bit in the
next packet buffer in the ABT region is cleared to 0, the internal ABT pointer is retained, but even if the
ABT TRG is set to 1 and the ABT ends immediately, no recovery operation is performed. .
Note m=0
to
15
22.10.5
Remote frame transfer
Remote frames can only be transmitted from the transmit packet buffer. The RTR bit setting via the
CnMCONFm register is either a data frame or a remote frame transmission. Set the RTR bit to (1) to set the
remote frame transmission.
Note
m= 0
to
15