
FlexCAN
23-26
Freescale Semiconductor
23.3.17 Time Stamp
The value of TIMER is sampled at the beginning of the identifier field on the CAN bus. For a message
being received, the time stamp is stored in the TIMESTAMP entry of the receive message buffer at the
time the message is written into that buffer. For a message being transmitted, the TIMESTAMP entry is
written into the transmit message buffer after the transmission has completed successfully.
The free-running timer can optionally be reset upon the reception of a frame into message buffer 0. This
feature allows network time synchronization to be performed. See the CANCTRL[TSYN] bit.
23.3.18 Bit Timing
The FlexCAN module CANCTRL register configures the bit timing parameters required by the CAN
protocol. The CLK_SRC, PRESDIV, RJW, PSEG1, PSEG2, and the PROPSEG fields allow the user to
configure the bit timing parameters.
The CANCTRL[CLK_SRC] bit defines whether the module uses the internal bus clock or the output of
the crystal oscillator via the EXTAL pin. The crystal oscillator clock should be selected when a tight
tolerance (up to 0.1%) is required for the CAN bus timing. The crystal oscillator clock has better jitter
performance than PLL generated clocks. The value of this bit should not be changed, unless the module is
in disable mode (CANMCR[MDIS] bit is set)
The PRESDIV field controls a prescaler that generates the serial clock (S-clock), whose period defines the
time quantum used to compose the CAN waveform. A time quantum is the atomic unit of time managed
by the CAN engine.
Figure 23-14. CAN Engine Clocking Scheme
Eqn. 23-6
A bit time is subdivided into three segments
1
(see
):
•
SYNC_SEG: Has a fixed length of one time quantum. Signal edges are expected to happen within
this section.
•
Time Segment 1: Includes the propagation segment and the phase segment 1 of the CAN standard.
It can be programmed by setting the PROPSEG and the PSEG1 fields of the CANCTRL register
so that their sum (plus 2) is in the range of 4 to 16 time quanta.
•
Time Segment 2: Represents the phase segment 2 of the CAN standard. It can be programmed by
setting the PSEG2 field of the CANCTRL register (plus 1) to be 2 to 8 time quanta long.
Eqn. 23-7
1. For further explanation of the underlying concepts please refer to ISO/DIS 11519–1, Section 10.3. Reference also the Bosch
CAN 2.0A/B protocol specification dated September 1991 for bit timing.
Oscillator Clock (EXTAL)
Prescaler
(1 .. 256)
S clock
1
0
(f
sys/3
)
Internal Bus Clock
CANCTRL[CLK_SRC]
f
Tq
f
sys 3
⁄
or EXTAL
P 1
(
)
-----------------------------------------
=
Bit Rate
f
Tq
(number of 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...