English
Language : 

MC68HC08AZ60A Datasheet, PDF (348/480 Pages) Motorola, Inc – Microcontrollers
MSCAN08 Controller (MSCAN08)
The second requirement calls for some sort of internal prioritisation
which the MSCAN08 implements with the “local priority” concept
described in Receive Structures on page 348.
21.5.2 Receive Structures
The received messages are stored in a 2-stage input first in first out
(FIFO). The two message buffers are mapped using a Ping Pong
arrangement into a single memory area (see Figure 21-2). While the
background receive buffer (RxBG) is exclusively associated to the
MSCAN08, the foreground receive buffer (RxFG) is addressable by the
CPU08. This scheme simplifies the handler software, because only one
address area is applicable for the receive process.
Both buffers have a size of 13 bytes to store the CAN control bits, the
identifier (standard or extended), and the data content (for details, see
Programmer’s Model of Message Storage on page 368).
The receiver full flag (RXF) in the MSCAN08 receiver flag register
(CRFLG) (see MSCAN08 Receiver Flag Register (CRFLG) on page
383), signals the status of the foreground receive buffer. When the buffer
contains a correctly received message with matching identifier, this flag
is set.
On reception, each message is checked to see if it passes the filter (for
details see Identifier Acceptance Filter on page 352) and in parallel is
written into RxBG. The MSCAN08 copies the content of RxBG into
RxFG(1), sets the RXF flag, and generates a receive interrupt to the
CPU(2). The user’s receive handler has to read the received message
from RxFG and to reset the RXF flag to acknowledge the interrupt and
to release the foreground buffer. A new message which can follow
immediately after the IFS field of the CAN frame, is received into RxBG.
The overwriting of the background buffer is independent of the identifier
filter function.
Advance Information
348
1. Only if the RXF flag is not set.
2. The receive interrupt will occur only if not masked. A polling scheme can be applied on RXF
also.
MSCAN08 Controller (MSCAN08)
MC68HC08AZ60A — Rev 0.0
MOTOROLA