Section 13 Controller Area Network (HCAN)
Rev. 3.00 Mar. 14, 2006 Page 497 of 804
REJ09B0104-0300
(4)
Unread message overwrite
If the receive message identifier matches the mailbox identifier, the receive message is stored in
the mailbox regardless of whether the mailbox contains an unread message or not. If a message
overwrite occurs, the corresponding bit (UMSR0 to UMSR15) in the unread message register
(UMSR) is set. In overwriting an unread message, the unread message register (UMSR) is set
when a new message is received before the corresponding bit in the receive complete register
(RXPR) has been cleared. If the unread interrupt flag (IRR9) in the interrupt mask register (IMR)
is set to enable interrupts at this time, an interrupt can be sent to the CPU. Figure 13.12 shows a
flowchart for unread message overwriting.
No
: Settings by user
Unread message overwrite
Interrupt to CPU
End
IMR9 = 1?
UMSR = 1
IRR9 = 1
Clear IRR9
Message control/message data read
: Processing by hardware
Yes
Figure 13.12 Unread Message Overwrite Flowchart
electronic components distributor