Note:
If the BMASK register is equal to the GMASK register,
the buffer 14 can be used the same way as the buffers 0 to
13.
The buffers 0 to 13 are scanned prior to buffer 14. Subse-
quently, the buffer 14 will not be checked for a matching ID
when one of the buffers 0 to 13 has already received a mes-
sage.
By setting the BUFFLOCK bit in the configuration register,
the receiving buffer is automatically locked after a reception
of one valid frame. The buffer will be unlocked again after the
CPU has read the data and has written RX_READY in the
buffer status field. With this lock function, the user has the ca-
pability to save several messages with the same identifier or
same identifier group into more than one buffer. For example,
received ID
GMASK
01010
10101010
a buffer with the second highest priority will receive a mes-
sage if the buffer with the highest priority has already re-
ceived a message and is now locked (provided that both
buffers use the same acceptance filtering mask).
As shown in Figure59, several messages with the same ID
are received while BUFFLOCK is enabled. The filtering mask
of the buffers 0, 1, 13 and 14 is set to accept this message.
The first incoming frame will be received by buffer 0. As buff-
er 0 is now locked the next frame will be received by buffer 1,
and so on. If all matching receive buffers are full and locked,
a further incoming message will not be received by any buff-
er.
10101010
10101010
00000
11111111
00000000
00000000
BUFFER0_ID
01010
XXXXXXXX
10101010
10101010
saved when buffer
is empty
BUFFER1_ID
01010
XXXXXXXX
10101010
10101010
saved when buffer
is empty
BUFFER13_ID
01010
XXXXXXXX
10101010
10101010
saved when buffer
is empty
BMASK
00000
11111111
00000000
00000000
saved when buffer
is empty
BUFFER14_ID
01010
XXXXXXXX
10101010
10101010
Figure 59. Message Storage with BUFFLOCK Enabled
20.5
RECEIVE STRUCTURE
All received frames will initially be buffered in a hidden re-
ceive buffer until the frame is valid. (The validation point for a
received message is the penultimate bit of EOF.) The re-
ceived identifier is then compared to every buffer ID together
with the respective mask and the status. As soon as the val-
idation point is reached, the whole contents of the hidden
buffer is copied into the matching message buffer as shown
in Figure60.
Note:
The hidden receive buffer must not be accessed by
the CPU.
The following section gives an overview of the reception of
the different types of frames.
97
www.national.com