
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
TwinCAN Module
User’s Manual
21-59
V2.2, 2004-01
TwinCAN_X1, V2.1
CFCMD
[3:0]
High
rw
Frame Count Mode
This bitfield defines the operation mode of the frame
counter. This counter can work on frame base (frame
count) or on time base (time stamp).
0XXX
B
Frame Count:
1)
0XX0
B
The CFC is not incremented after a foreign
frame was transferred on the CAN bus.
0XX1
B
The CFC is incremented each time a
foreign frame was transferred correctly on
the CAN bus.
0X0X
B
The CFC is not incremented after a frame
was received by the respective CAN node.
0X1X
B
The CFC is incremented each time a frame
was received correctly by the node.
00XX
B
The CFC is not incremented after a frame
was transmitted by the node.
01XX
B
The CFC is incremented each time a frame
was transmitted correctly by the node.
1XXX
B
Time Stamp:
1000
B
The CFC is incremented with the beginning
of a new bit time. The value is sampled
during the SOF bit.
1001
B
The CFC is incremented with the beginning
of a new bit time. The value is sampled
during the last bit of EOF.
others
reserved
CFCIE
6
High
rw
CAN Frame Count Interrupt Enable
Setting CFCIE enables the CAN Frame Counter
Overflow (CFCO) interrupt request.
0
The CFCO interrupt is disabled.
1
The CFCO interrupt is enabled.
CFCOV
7
High
rwh
CAN Frame Count Overflow Flag
Flag CFCOV is set on a CFC overflow condition
(FFFF
H
to 0000
H
). An interrupt request is generated if
the corresponding interrupt is enabled (CFCIE = ‘1’).
0
An overflow has not yet been detected.
1
An overflow has been detected since the bit has
been reset.
CFCOV must be reset by software.
Field
Bits
Type Description