FlexCAN Module
24-18
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
24.3.4.2
Control Register (FLEXCAN_x_CTRL)
This register is defined for specific FlexCAN control features related to the CAN bus, such as bit-rate,
programmable sampling point within an Rx bit, Loop Back Mode, Listen Only Mode, Bus Off recovery
behavior and interrupt enabling (Bus-Off, Error, Warning). It also determines the Division Factor for the
clock prescaler. Most of the fields in this register should only be changed while the module is in Disable
Mode or in Freeze Mode. Exceptions are the BOFF_MSK, ERR_MSK, TWRN_MSK, RWRN_MSK and
BOFF_REC bits, that can be accessed at any time.
Figure 24-6. Control Register (FLEXCAN_x_CTRL)
Base + 0x0004
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
PRESDIV
RJW
PSEG1
PSEG2
W
RE-
SET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
BOFF
_MSK
ERR_
MSK
CLK_
SRC
LPB
TWR
N_MS
K
RWR
N_MS
K
0
0
SMP
BOFF
_REC
TSYN
LBUF LOM
PROPSEG
W
RE-
SET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Table 24-10. FLEXCAN_x_CTRL Field Descriptions
Field
Description
0–7
PRESDIV
Prescaler Division Factor
This 8-bit field defines the ratio between the CPI clock frequency and the Serial Clock (Sclock) frequency. The
Sclock period defines the time quantum of the CAN protocol. For the reset value, the Sclock frequency is equal to
the CPI clock frequency. The Maximum value of this register is 0xFF, that gives a minimum Sclock frequency equal
to the CPI clock frequency divided by 256. For more information refer to
Section 24.4.8.4, Protocol Timing.
Sclock frequency = CPI clock frequency / (P 1)
8–9
RJW
Resync Jump Width
This 2-bit field defines the maximum number of time quanta
1
that a bit time can be changed by one
re-synchronization. The valid programmable values are 0–3.
Resync Jump Width = RJW + 1.
10–12
PSEG1
Phase Segment 1
This 3-bit field defines the length of Phase Buffer Segment 1 in the bit time. The valid programmable values are 0–7.
Phase Buffer Segment 1 = (PSEG1 + 1) x Time-Quanta.
13–15
PSEG2
Phase Segment 2
This 3-bit field defines the length of Phase Buffer Segment 2 in the bit time. The valid programmable values are 1–7.
Phase Buffer Segment 2 = (PSEG2 + 1) x Time-Quanta.
16
BOFF_MS
K
Bus Off Mask
This bit provides a mask for the Bus Off Interrupt.
0 Bus Off interrupt disabled
1 Bus Off interrupt enabled
Summary of Contents for PXR4030
Page 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Page 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Page 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Page 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Page 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Page 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...