MCP2515-E/PRB2 Microchip Technology, MCP2515-E/PRB2 Datasheet - Page 39

no-image

MCP2515-E/PRB2

Manufacturer Part Number
MCP2515-E/PRB2
Description
CAN controller with SPI interface, 125 deg C, -40C to +125C, 18-PDIP, TUBE
Manufacturer
Microchip Technology
Datasheet
5.2
To compensate for phase shifts between the oscillator
frequencies of each of the nodes on the bus, each CAN
controller must be able to synchronize to the relevant
signal edge of the incoming signal. Synchronization is
the
implemented.
When an edge in the transmitted data is detected, the
logic will compare the location of the edge to the
expected time (SyncSeg). The circuit will then adjust
the values of PS1 and PS2 as necessary.
There are two mechanisms used for synchronization:
1.
2.
5.2.1
Hard synchronization is only performed when there is a
recessive-to-dominant edge during a BUS IDLE
condition, indicating the start of a message. After hard
synchronization, the bit time counters are restarted with
SyncSeg.
Hard synchronization forces the edge that has
occurred to lie within the synchronization segment of
the
synchronization, if a hard synchronization occurs, there
will not be a resynchronization within that bit time.
5.2.2
As a result of resynchronization, PS1 may be
lengthened or PS2 may be shortened. The amount of
lengthening or shortening of the phase buffer segments
has an upper-bound, given by the Synchronization
Jump Width (SJW).
The value of the SJW will be added to PS1 or
subtracted from PS2 (see
represents the loop filtering of the DPLL. The SJW is
programmable between 1 TQ and 4 TQ.
5.2.2.1
The NRZ bit coding method does not encode a clock
into the message. Clocking information will only be
derived from recessive-to-dominant transitions. The
property which states that only a fixed maximum
number of successive bits have the same value (bit-
stuffing) ensures resynchronization to the bit stream
during a frame.
The phase error of an edge is given by the position of
the edge relative to SyncSeg, measured in TQ. The
phase error is defined in magnitude of TQ as follows:
• e = 0 if the edge lies within SYNCSEG.
• e > 0 if the edge lies before the SAMPLE POINT
• e < 0 if the edge lies after the SAMPLE POINT of
© 2007 Microchip Technology Inc.
(TQ is added to PS1).
the previous bit (TQ is subtracted from PS2).
Hard synchronization.
Resynchronization.
process
restarted
Synchronization
HARD SYNCHRONIZATION
RESYNCHRONIZATION
Phase Errors
by
bit
which
time.
the
Due
Figure
DPLL
to
5-3). The SJW
the
function
rules
of
is
5.2.2.2
If the magnitude of the phase error is less than or equal
to the programmed value of the SJW, the effect of a
resynchronization is the same as that of a hard
synchronization.
5.2.2.3
If the magnitude of the phase error is larger than the
SJW and, if the phase error is positive, PS1 is
lengthened by an amount equal to the SJW.
5.2.2.4
If the magnitude of the phase error is larger than the
resynchronization jump width and the phase error is
negative, PS2 is shortened by an amount equal to the
SJW.
5.2.3
1.
2.
3.
4.
5.
Only recessive-to-dominant edges will be used
for synchronization.
Only one synchronization within one bit time is
allowed.
An edge will be used for synchronization only if
the value detected at the previous sample point
(previously read bus value) differs from the bus
value immediately after the edge.
A transmitting node will not resynchronize on a
positive phase error (e > 0).
If the absolute magnitude of the phase error is
greater than the SJW, the appropriate phase
segment will adjust by an amount equal to the
SJW.
SYNCHRONIZATION RULES
No Phase Error (e = 0)
Positive Phase Error (e > 0)
Negative Phase Error (e < 0)
MCP2515
DS21801E-page 39

Related parts for MCP2515-E/PRB2