EasyManua.ls Logo

Renesas RH850 Series

Renesas RH850 Series
45 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RH850 Series CAN Transmit Procedure (CAN FD Mode)
R01AN6029EJ0100 Rev.1.0 Page
33
of 42
May 10, 2017
5.1.1 Transmit History Buffer Read Procedure
Figure 5-2 shows the procedure for reading transmit history data from the transmit history buffer, and Figure 5-3 and
Figure 5-4 show the procedure for enabling and prohibiting the use of the transmit history buffer.
Note
1.
Write “0” to set the THLELT bit of the THLSTSm register to “0” with the program.
2.
After reading the transmit history buffer (the THLACCm register), increment the transmit history buffer
pointer (the THLPC [7: 0] bit of the THLPCTRm register is “H'FF”).
3.
Increment the transmit history buffer pointer when the transmit history buffer is used (the THLE bit of the
THLCCm register is “1”) and the transmit history buffer is not empty (the THLEMP bit of the THLSTSm
register is “0”).
4.
If the transmit history buffer overflow interrupt is enabled, execute it within the global error interrupt
processing.
Figure 5-2 Transmit History Buffer Read Procedure
START
Read transmit history data from the transmit history buffer
Buffer type
Buffer number
Label data
Time stamp
END
No
Yes
Is there history data in the transmit
history buffer?
Increment the transmit history buffer pointer
*2.
3.
No
Yes
Is there a transmit history buffer
overflow?
*1.
4.
User processing during transmit history buffer overflow
Clear the transmit history buffer overflow flag*
1.
4.

Other manuals for Renesas RH850 Series

Related product manuals