Mask Function - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

11.6 Mask Function

A mask linkage function can be defined for each received message.
This means that there is no need to distinguish between local masks and global masks.
When the mask function is used, the received message's identifier is compared with the message buffer's identifier
and the message can be stored in the defined message buffer regardless of whether the mask sets "0" or "1" as a
result of the comparison.
When the mask function is operating, a bit whose value is defined as "1" by masking is not subject to the
abovementioned comparison between the received message's identifier and the message buffer's identifier.
However, this comparison is performed for any bit whose value is defined as "0" by masking.
For example, let us assume that all messages that have a standard-format ID in which bits ID27 to ID25 = 0 and
bits ID24 and ID22 = 1 are to be stored in message buffer 14 (which is linked by mask 1 as explained in 11.10 (7)).
The procedure for this example is shown below.
<1> Identifier bits to be stored in message buffer
ID28
ID27
x
0
Remark x = don't care
Messages with an ID in which bits ID27 to ID25 = 0 and bits ID24 and ID22 = 1 are registered (initialized) in
message buffer 14 (see 11.10 (6)).
<2> Identifier bits set to message buffer 14 (example)
(Using CAN message ID registers L14 and H14 (M_IDL14 and M_IDH14))
ID28
ID27
0
0
ID17
ID16
0
0
ID6
ID5
0
0
Message buffer 14 is set as a standard-format identifier linked to mask 1 (see 11.10 (7)).
CHAPTER 11 FCAN CONTROLLER
ID26
ID25
ID24
0
0
1
ID26
ID25
ID24
0
0
1
ID15
ID14
ID13
0
0
0
ID4
ID3
ID2
0
0
0
User's Manual U14492EJ5V0UD
ID23
ID22
ID21
x
1
x
ID23
ID22
ID21
0
1
0
ID12
ID11
ID10
0
0
0
ID1
ID0
0
0
ID20
ID19
ID18
x
x
x
ID20
ID19
ID18
0
0
0
ID9
ID8
ID7
0
0
0
523

Advertisement

Table of Contents
loading

Table of Contents