Can Time Stamp Count Register - Mitsubishi Electric M32R Series User Manual

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

Advertisement

13

13.2.5 CAN Time Stamp Count Register

CAN0 Time Stamp Count Register (CAN0TSTMP)
D0
1
2
D
Bit Name
0-15
CANSTMP
The CAN module contains a 16-bit counter. The count period can be chosen to be the CAN bus bit
period divided by 1, 2, 3, or 4 by setting the CAN Control Register (CAN0CNT)'s TSP (Time Stamp
Prescaler) bits.
When the CAN module finishes transmitting or receiving, it captures the counter value and stores it
in a message slot. The counter is made to start counting by clearing the CAN Control Register
(CAN0CNT)'s RST bit to 0.
Note 1: The protocol control unit is reset and the counter is initialized to H'0000 by setting the CAN
Control Register (CAN0CNT)'s RST (CAN Reset) bit to 1. Also, the counter can be
initialized to H'0000 while the CAN module is operating by setting TSR (Time Stamp
Counter Reset) bit to 1.
Note 2: During loopback mode, if an ID-matching slot exists, the CAN module stores the time
stamp value in the corresponding slot when it finished receiving. (No time stamp value is
stored this way when the CAN module finished transmitting.)
3
4
5
6
7
13-19
13.2 CAN Module Related Registers
8
9
10
11
CANTSTMP
Function
16-bit counter value
CAN MODULE
<Address:H'0080 1008>
12
13
14
D15
<When reset:H'0000>
R
W
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents