
FlexCAN
23-8
Freescale Semiconductor
23.3.2
FlexCAN Control Register (CANCTRL)
CANCTRL 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. 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 disabled or in freeze mode. Exceptions
are the BOFFMSK, ERRMSK, and BOFFREC bits, which can be accessed at any time.
Address: 0xFC02_0004 (CANCTRL)
Access: User read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
R
PRESDIV
RJW
PSEG1
PSEG2
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R BOFF
MSK
ERR
MSK
CLK_
SRC
LPB
0
0
0
0
SMP
BOFF
REC
TSYN LBUF LOM
PROPSEG
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 23-5. FlexCAN Control Register (CANCTRL)
Table 23-3. CANCTRL Field Descriptions
Field
Description
31–24
PRESDIV
Prescaler division factor. Defines the ratio between the clock source frequency (set by CLK_SRC bit) and the serial
clock (S clock) frequency. The S clock period defines the time quantum of the CAN protocol. For the reset value,
the S clock frequency is equal to the clock source frequency. The maximum value of this register is 0xFF, that gives
a minimum S clock frequency equal to the clock source frequency divided by 256. For more information refer to
.”
Eqn. 23-1
23–22
RJW
Resynchronization jump width. Defines the maximum number of time quanta (one time quantum is equal to the S
clock period) that a bit time can be changed by one resynchronization. The valid programmable values are 0–3.
Eqn. 23-2
21–19
PSEG1
Phase buffer segment 1. Defines the length of phase buffer segment 1 in the bit time. The valid programmable
values are 0–7.
Eqn. 23-3
18–16
PSEG2
Phase buffer segment 2. Defines the length of phase buffer segment 2 in the bit time. The valid programmable
values are 1–7.
Eqn. 23-4
15
BOFFMSK
Bus off interrupt mask.
0 Bus off interrupt disabled
1 Bus off interrupt enabled
S clock frequency
fsys/3 or EXTAL
P 1
------------------------------------------
=
Resync jump width = (RJW + 1) time quanta
Phase buffer segment 1
(PSEG1 + 1) time quanta
=
Phase buffer segment 2
(PSEG2 + 1) time quanta
=
MCF5329 Reference Manual, Rev 3
Содержание MCF5329
Страница 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 126: ...Enhanced Multiply Accumulate Unit EMAC 4 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 564: ...Liquid Crystal Display Controller LCDC 22 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 692: ...Programmable Interrupt Timers PIT0 PIT3 28 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 720: ...Queued Serial Peripheral Interface QSPI 30 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 790: ...Message Digest Hardware Accelerator MDHA 33 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 902: ...Register Memory Map Quick Reference A 26 Freescale Semiconductor MCF5329 Reference Manual Rev 3...