CAN Module
Under
development
Preliminary Specifications REV.B3
Specifications in this manual are tentative and subject to change.
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16/32-BIT CMOS MICROCOMPUTER
211
CAN0 transmit error count register
Symbol
Address
When reset (Note)
C0TEC
020A16
0016
RW
Function
Transmit error count value
Note: This applies when the CAN module is supplied with a clock by setting the sleep mode control bit
(bit 0 at address 024216) to 1 after reset.
b7
b0
8-bit
Figure 1.22.9. CAN0 time stamp register
7. CAN0 Timestamp register
The CAN module incorporates a 16-bit counter. The count period for this counter can be derived
from the CAN bus bit period by dividing it by 1, 2, 3, or 4 using the CAN0 control register0
(C0CTLR0)’s TSPre0, 1 bits.
When the CAN module finishes transmitting or receiving, the CAN0 Timestamp Register (C0TSR)
value is captured and the value is automatically stored in a message slot.
The C0TSR register starts counting upon clearing the C0CTLR register’s Reset and Reset1 bits to 0.
Note 1: Setting the C0CTLR0 register’s Reset0 and Reset1 bits to 1 resets CAN, and the C0TSR
register thereby initialized to 000016. Also, setting the TSReset (timestamp counter reset) bit
to 1 initializes the C0TSR register to 000016 on-the-fly (while the CAN remains operating;
CAN0 status register's State_Reset bit is "0").
Note 2: During loopback mode, if any receive slot exists in which a message can be stored, the
C0TSR register value is stored in the corresponding slot when the CAN module finished
receiving. (This storing of the C0TSR register value does not occur at completion of trans-
mission.)
Figure 1.22.10. CAN0 transmit error count register
8. CAN0 transmit error count register
When in an error active or an error passive state, the transmit error count value is stored in this
register. The count is decremented when the CAN module finished transmitting normally or
incremented when an error occurred while transmitting.
When in a bus-off state, an indeterminate value is stored in this register. The register is reset to 0016
upon returning to an error active state.
CAN0 time stamp register
Symbol
Address
When reset (Note)
C0TSR
020916,020816
000016
RW
Function
Setting range
16 bits count value
000016 to FFFF16
b15
(b7)
(Upper 8-bit)
(Lower 8-bit)
b8
(b0)b7
b0
Note: This applies when the CAN module is supplied with a clock by setting the sleep mode control bit
(bit 0 at address 024216) to 1 after reset.