Академический Документы
Профессиональный Документы
Культура Документы
SamplePoi
nt
Time Quanta The TQ length derives from the bit rate presale and the used
oscillator frequency.
SYNC_SEG It is used to synchronize the various bus nodes (SYNC_SEG has always
a length of 1 TQ)
SEG1 - It is used to compensate for edge phase errors and may be lengthened
during resynchronization
SEG2 - Is last segment and its duration concludes full bit time.
SamplePoint from 50 90% (87.5% is preferred value used by CAN open and
Device Net or this is defined by Software project)
Nominal BIT Time (NBT) This is the sum of all the CAN bit time segments
frequency
Number Time Quanta/bit=
baudratedivizo r
Bit time=1/baudrate
TQ length=Bit Time/ NumberTimeQuanta
Bus length
PROPseg= 8
310 m/sTQtime ( s )
Example:
Step 1)
6
2010 Hz 200
3
= =40
50010 b/ s 5
1-> 40
2 -> 20
3 -> 10
5 -> 8
A prescaler value of 5 gives a CAN peripherals clock.
=>NBT= 8
Step 2)
Period of a BIT
1 1
3
= 5
=2106 =2us
50010 0.510
Period of a TQ
2 us
=0.25us
8
Step 3)
BusLength=3108TQPROPseg
Bus length
PROPseg= 8
310 TQ
150 m 150
PROPseg= = =2
310 m/s0.2510 s 75
8 6
1+2+SEG 1 1+ 2+SEG 1
= 0.875
1+2+ SEG 1+ SEG 2 8
SYNC_SEG : 1
PROP :2
SEG1 :4
SEG2 :1