Table 16.3-22 Functions of ID Register (IDR)
Bit name
bit0
ID28 to 21:
:
ID bit 28 to 21(BYTE0)
:
:
bit7
bit8
ID20 to 13:
:
ID bit 20 to 13 (BYTE1)
:
:
bit15
bit0
ID12 to 5:
:
ID bit 28 to 21 (BYTE2)
:
:
bit7
bit11
ID4 to 0:
:
ID bit 4 to 0 (BYTE3)
:
:
bit15
Function
These bits set the acceptance code or transmit message ID to be
collated with the received message ID.
Standard frame format (IDER: IDEx = 0): 11 bits from ID28 to
ID18 are used.
•
The old messages left in the receive shift register are stored
in ID17 to ID0. This will not affect the operation.
•
All received message IDs are stored even if specific bits are
masked.
Extended frame format (IDER: IDEx = 1): 29 bits from ID28 to
ID0 are used.
Note:
•
When using the standard frame format (IDER: IDEx = 0),
the bits from ID28 to ID22 cannot be all set to 1.
•
When setting the ID register (IDR), perform writing by
words. Writing by bytes is disabled.
CHAPTER 16 CAN controller
529