English
Language : 

COP87L88EB Datasheet, PDF (33/72 Pages) National Semiconductor (TI) – 8-Bit CMOS OTP Microcontrollers with 16k or 32k Memory, CAN Interface, 8-Bit A/D, and USART
Frame Formats (Continued)
The counters are modified by the device’s hardware accord-
ing to the following rules:
TABLE 8. Receive Error Counter Handling
Condition
A receiver detects a Bit Error
during sending an active error flag.
A receiver detects a “dominant” bit
as the first bit after sending an
error flag.
After detecting the 14th consecutive
“dominant” bit following an active
error flag or overload flag or after
detecting the 8th consecutive
“dominant” bit following a passive
error flag. After each sequence of
additional 8 consecutive “dominant”
bits.
Any other error condition (stuff,
frame, CRC, ACK).
A valid reception or transmission.
Receive Error
Counter
Increment by 8
Increment by 8
Increment by 8
Increment by 1
Decrement by 1 if
Counter is not 0
TABLE 9. Transmit Error Counter Handling
Condition
Transmit Error
Counter
A transmitter detects a Bit Error
during sending an active error
flag.
Increment by 8
After detecting the 14th
consecutive “dominant” bit
following an active error flag or
overload flag or after detecting
the 8th consecutive “dominant”
bit following a passive error
flag. After each sequence of
additional 8 consecutive
“dominant” bits.
Increment by 8
Any other error condition (stuff, Increment by 8
frame, CRC, ACK).
A valid reception or
transmission.
Decrement by
1 if Counter is not 0
Special error handling for the TEC counter is performed in
the following situations:
• A stuff error occurs during arbitration, when a transmitted
“recessive” stuff bit is received as a “dorminant” bit. This
does not lead to an incrementation of the TEC.
• An ACK-error occurs in an error passive device and no
“dominant” bits are detected while sending the passive
error flag. This does not lead to an incrementation of the
TEC.
• If only one device is on the bus and this device transmits
a message, it will get no acknowledgment. This will be
detected as an error and message will be repeated.
When the device goes “error passive” and detects an ac-
knowledge error, the TEC counter is not incremented.
Therefore the device will not go from “error passive” to
the “bus off” state due to such a condition.
Figure 27 shows the connection of different bus states ac-
cording to the error counters.
FIGURE 27. CAN Bus States
DS100044-32
SYNCHRONIZATION
Every receiver starts with a “hard synchronization” on the
falling edge of the SOF bit. One bit time consists of four bit
segments: Synchronization segment, propagation segment,
phase segment 1 and phase segment 2.
A falling edge of the data signal should be in the synchroni-
zation segment. This segment has the fixed length of one
time quanta. To compensate for the various delays within a
network, the propagation segment is used. Its length is pro-
grammable from 1 to 8 time quanta. Phase segment 1 and
phase segment 2 are used to resynchronize during an active
frame. The length of these segments is from 1 to 8 time
quanta long.
Two types of synchronization are supported:
Hard synchronization is done with the falling edge on the
bus while the bus is idle, which is then interpreted as the
SOF. It restarts the internal logic.
Soft synchronization is used to lengthen or shorten the bit
time while a data or remote frame is received. Whenever a
falling edge is detected in the propagation segment or in
phase segment 1, the segment is lengthened by a specific
value, the resynchronization jump width (see Figure 29 ).
If a falling edge lies in the phase segment 2 (as shown in Fig-
ure 29 ) it is shortened by the resynchronization jump width.
Only one resynchronization is allowed during one bit time.
The sample point lies between the two phase segments and
is the point where the received data is supposed to be valid.
The transmission point lies at the end of phase segment 2 to
start a new bit time with the synchronization segment.
1. The resynchronization jump width (RJW) is automati-
cally determined from the programmed value of PS. If a
soft resynchronization is done during phase segment 1
or the propagation segment, then RJW will either be
equal to 4 internal CAN clocks (CKI/(1 + divider)) or the
programmed value of PS, whichever is less. PS2 will
never be shorter than 1 internal CAN clock.
2. (PS1 — BTL settings any PSC setting) The PS1 of the
BTL should always be programmed to values greater
than 1. To allow device resynchronization for positive
and negative phase errors on the bus. (if PS1 is pro-
grammed to one, a bit time could only be lengthened
and never shortened which basically disables half of the
synchronization).
33
www.national.com