English
Language : 

MC912DG128ACPVE Datasheet, PDF (328/478 Pages) Freescale Semiconductor, Inc – Upward compatible with M68HC11 instruction set
Freescale Semiconductor, Inc.
MSCAN Controller
Above behavior can not be achieved with a single transmit buffer. That
buffer must be reloaded right after the previous message has been sent.
This loading process lasts a definite amount of time and has to be
completed within the inter-frame sequence (IFS) in order to be able to
send an uninterrupted stream of messages. Even if this is feasible for
limited CAN bus speeds it requires that the CPU reacts with short
latencies to the transmit interrupt.
A double buffer scheme would de-couple the re-loading of the transmit
buffers from the actual message sending and as such reduces the
reactiveness requirements on the CPU. Problems may arise if the
sending of a message would be finished just while the CPU re-loads the
second buffer, no buffer would then be ready for transmission and the
bus would be released.
At least three transmit buffers are required to meet the first of above
requirements under all circumstances. The msCAN12 has three transmit
buffers.
The second requirement calls for some sort of internal prioritizing which
the msCAN12 implements with the local priority concept described
below.
18.4.2 Receive Structures
The received messages are stored in a two stage input FIFO. The two
message buffers are mapped using a ping-pong arrangement into a
single memory area (see Figure 18-2). While the background receive
buffer (RxBG) is exclusively associated to the msCAN12, the foreground
receive buffer (RxFG) is addressed by the CPU12. This scheme
simplifies the handler software as 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 contents (for details see
Programmer’s Model of Message Storage).
The receiver full flag (RXF) in the msCAN12 receiver flag register
(CRFLG) (see msCAN12 Receiver Flag Register (CRFLG)) signals the
Technical Data
328
MC68HC912DT128A — Rev 4.0
MSCAN Controller
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA