TC1796
Peripheral Units (Vol. 2 of 2)
Controller Area Network (MultiCAN) Controller
User’s Manual
22-88
V2.0, 2007-07
MultiCAN, V2.0
CFSEL
[18:16] rw
CAN Frame Count Selection
This bit field selects the function of the frame counter for the
chosen frame count mode.
Frame Count Mode
Bit 0
If Bit 0 of CFSEL is set, then CFC is incremented each time
a foreign frame (i.e. a frame not matching to a message
object) has been received on the CAN bus.
Bit 1
If Bit 1 of CFSEL is set, then CFC is incremented each time
a frame matching to a message object has been received on
the CAN bus.
Bit 2
If Bit 2 of CFSEL is set, then CFC is incremented each time
a frame has been transmitted successfully by the node.
Time Stamp Mode
000
B
The frame counter is incremented (internally) at the
beginning of a new bit time. The value is sampled
during the SOF bit of a new frame. The sampled value
is visible in the CFC field.
Bit Timing Mode
The available bit timing measurement modes are shown in
. This bit field selects the function of the frame
counter for the chosen frame count mode.
CFMOD
[20:19] rw
CAN Frame Counter Mode
This bit field determines the operation mode of the frame
counter.
00
B
Frame Count Mode: The frame counter is incremented
upon the reception and transmission of frames.
01
B
Time Stamp Mode: The frame counter is used to count
bit times.
10
B
Bit Timing Mode: The frame counter is used for
analysis of the bit timing.
CFCIE
22
rw
CAN Frame Count Interrupt Enable
CFCIE enables the CAN frame counter overflow interrupt of
CAN node x.
0
B
CAN frame counter overflow interrupt is disabled.
1
B
CAN frame counter overflow interrupt is enabled.
Bit field NIPRx.CFCINP selects the interrupt output line that
is activated at this type of interrupt.
Field
Bits
Type Description