CAN Module
deveopmen
Rev.B2 for proof reading
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
211
CAN0 transmit error count register
Symbol
C0TEC
Address
020A
16
When reset (Note)
00
16
R W
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 0242
16
) 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 0000
16
. Also, setting the TSReset (timestamp counter reset) bit
to 1 initializes the C0TSR register to 0000
16
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 00
16
upon returning to an error active state.
CAN0 time stamp register
b15
(b7)
(b0)b7
Symbol
C0TSR
Address
0209
16,
0208
16
When reset (Note)
0000
16
R W
Function
Setting range
16 bits count value
0000
16
to FFFF
16
(Upper 8-bit) (Lower 8-bit)
b8
b0
Note: This applies when the CAN module is supplied with a clock by setting the sleep mode control bit
(bit 0 at address 0242
16
) to 1 after reset.