R5S72011 RENESAS [Renesas Technology Corp], R5S72011 Datasheet - Page 889

no-image

R5S72011

Manufacturer Part Number
R5S72011
Description
32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7200 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
19.6.4
The diagram below shows the message receive sequence.
Notes: 1. Only if CPU clears RXPR[N]/RFPR[N] at the same time that UMSR is set in overrun, RXPR[N]/RFPR[N] may be set again even thuotgh
CAN Bus
RCAN-ET
Loop (n = 15; n ≥ 0; n = n - 1)
• Store Message by Overwriting
• Set UMSR
• Set IRR9 (if MBIMR[N] = 0)
• Generate Interrupt Signal
• Set RXPR[N] (RFPR[N])
• Set IRR1 (IRR2) (if MBIMR[N] = 0)
• Generate Interrupt Signal
(if IMR9 = 0)
(if IMR1 (IMR2) = 0)
(if MBC is config to receive)
Store Mailbox-Number[N]
and go back to idle state
Valid CAN-ID Received
ID Matched?
Mailbox[N] + LAFM[N]
2. In case overwrite configuration (NMC = 1) is used for the Mailbox N the message must be discarded when UMSR[N] = 1, UMSR[N]
Compare ID with
Intrrupt signal
the message has not been updated.
cleared and the full Interrupt Service Routine started again. In case of overrun configuration (NMC = 0) is used clear again RXPR[N]/
RFPR[N]/UMSR[N] when UMSR[N] = 1 and consider the message obsolate.
Message Receive Sequence
Yes
Yes
No
End Of Arbitration Field
OverWrite
N = 0?
• Reject Message
• Set UMSR
• Set IRR9 (if MBIMR[N] = 0)
• Generate Interrupt Signal
• Set RXPR[N] (RFPR[N])
(if IMR9 = 0)
n = n - 1
No
Intrrupt signal
Figure 19.11 Message receive sequence
Yes
IDLE
CPU received interrupt due to CAN Message Reception
OverRun
*
Valid CAN Frame Received
1
Already Set?
OverWrite or
• Store Message
•Set RXPR[N] (RFPR[N])
•Set IRR1 (IRR2) (if MBIMR[N] = 0)
•Generate Interrupt Signal
(RFPR[N])
OverRun?
End Of Frame
(if IMR1 (IMR2) = 0)
RXPR[N]
(NMC)
MSG
Yes
Intrrupt signal
Section 19 Controller Area Network (RCAN-ET)
No
Rev. 2.00 Sep. 07, 2007 Page 861 of 1164
Write 1 to RXPR[N]
Read RXPR[N] = 1
Read Mailbox[N]
Clear by clear
UMSR[N]
Read IRR
IRR[1]
set?
Yes
Exit Interrpt Service
*
2
Routine
No
REJ09B0321-0200
Write 1 to RFPR[N]
Read RFPR[N] = 1
Read Mailbox[N]
Clear by clear
UMSR[N]
*
2

Related parts for R5S72011