BAT32G1x9 user manual | Chapter 22 CAN control
973 / 1149
Rev.1.02
Read register C0RGPT
Clear ROVF bit
Begin
A receive completion
interrupt is generated
no
t
RTheVF=
1?
yes
yes
RHPM=1?
DN = 0
and
no
t
MUC = 0
Note
yes
The received data
is correct
Illegal data
received received
end
Fig.22-76. Receive through interrupts(Use registers CnRGPT)
Note Uses Read Check MUC and DN Bits
Note 1 To check the MBON flags at the beginning and end of an interrupt in order to check access to
the message buffer and the receive history list register in case of a pending execution of sleep
mode. If MBON is detected to be cleared, after setting MBON again, the actions and results of
the processing must be discarded before processing. Before handling the RX interrupt, it is
recommended to cancel any sleep mode requests
2. If ROVF is set, the receive history list is inconsistent. Consider scanning all configured receive
buffers for receive.
not
Clear DN
bits
Read CnMDATAxm,
CnMDLCm,
CnMIDLm, CnMIDHm register