Can Timestamp Count Registers - Renesas M32R/ECU Series User Manual

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

13

13.2.5 CAN Timestamp Count Registers

CAN0 Timestamp Count Register (CAN0TSTMP)
CAN1 Timestamp Count Register (CAN1TSTMP)
b0
1
2
0
0
0
b
Bit Name
0–15
CANTSTMP
The CAN module contains a 16-bit up-count register. The count period can be selected from the CAN bus bit period
divided by 1, 2, 3 or 4 by setting the CAN Control Register (CANnCNT) TSP (Timestamp Prescaler) bits.
When the CAN module finishes sending or receiving, it captures the count register value and stores the value in a
message slot. The counter is made to start counting by clearing the CAN Control Register (CANnCNT) RST bit to "0".
Notes: • The CAN protocol control unit can be reset and the counter initialized to H'0000 by setting the
CAN Control Register (CANnCNT) RST (CAN Reset) bit to "1". Or the counter can be initialized
to H'0000 while the CAN module remains operating by setting the TSR (Timestamp Counter
Reset) bit to "1".
• If any slot with the matching ID exists during loopback mode, the CAN module stores the
timestamp value in that slot when it finished receiving. (No timestamp values are stored this
way when the CAN module finished sending.)
• The count period of the CAN Timestamp Count Register varies with the CAN resynchronization
function.
3
4
5
6
0
0
0
0
13.2 CAN Module Related Registers
7
8
9
10
CANTSTMP
0
0
0
0
Function
16-bit timestamp count value
13-24
CAN MODULE
<Address: H'0080 1008>
<Address: H'0080 1408>
11
12
13
14
0
0
0
0
<After reset: H'0000>
32180 Group User's Manual (Rev.1.0)
b15
0
R
W
R

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents