RL78/F13, F14 CHAPTER 18 CAN INTERFACE (RS-CAN LITE)
R01UH0368EJ0210 Rev.2.10 1389
Dec 10, 2015
18.5.2 Timestamp
The timestamp counter is a 16-bit free-running counter used for recording message receive time. The timestamp
counter value is fetched at the start-of-frame (SOF) timing of a message and is then stored in a receive buffer or a FIFO
buffer together with the message ID and data. The clock obtained by frequency-dividing f
CLK by 2 (fCLK/2) or CANi bit time
clock is selectable as a timestamp counter clock source from the TSSS bit in the GCFGL register. The clock obtained by
dividing the selected clock source by the TSP[3:0] value in the GCFGL register is used as the timestamp counter count
source.
When the CANi bit time clock is used as a clock source, the timestamp counter stops when the corresponding channel
transitions to channel reset mode or channel halt mode. When the clock obtained by frequency-dividing f
CLK by 2 (fCLK/2) is
used as a clock source, the timestamp function is not affected by channel mode.
The timestamp counter value is reset to H'0000 by setting the TSRST bit in the GCTRH register to 1.
Figure 18-6. Timestamp Function Block Diagram
0
1
1/2
Timestamp counter
(16 bits)
TSP[3:0] bitsTSSS bit
f
CLK
CANi bit time clock
Divider
Remark TSSS, TSP[3:0]: Bits in the GCFGL register