RH850 Series CAN Transmit Procedure (CAN FD Mode)
R01AN6029EJ0100 Rev.1.0 Page
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】
Write “0” to set the THLELT bit of the THLSTSm register to “0” with the program.
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”).
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”).
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
Read transmit history data from the transmit history buffer
・ Buffer type
・ Buffer number
・ Label data
・ Time stamp
Is there history data in the transmit
history buffer?
Increment the transmit history buffer pointer
*2.
、
3.
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.