AT89C51CC02CA-TDSUM ATMEL [ATMEL Corporation], AT89C51CC02CA-TDSUM Datasheet - Page 85

no-image

AT89C51CC02CA-TDSUM

Manufacturer Part Number
AT89C51CC02CA-TDSUM
Description
Enhanced 8-bit Microcontroller with CAN Controller and Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Figure 41. General Structure of a bit Period
4126J–CAN–05/06
(1) Phase error ≤ 0
(2) Phase error ≥ 0
(3) Phase error > 0
(4) Phase error < 0
System Clock
Oscillator
Data
Tsyns (*)
(*) Synchronization Segment: SYNS
1/ Fcan
example of bit timing determination for CAN baudrate of 500 kbit/s:
F
Verify that the CAN baud rate you want is an integer division of FCAN clock.
FCAN/CANbaudrate = 6 MHz/500 kHz = 12
The time quanta TQ must be comprised between 8 and 25: TQ = 12 and BRP = 0
Define the various timing parameters: Tbit = Tsyns + Tprs + Tphs1 + Tphs2 =
12TQ
Tsyns = 1TQ and Tsjw =1TQ => SJW = 0
If we chose a sample point at 66.6% => Tphs2 = 4TQ => PHS2 = 3
Tbit = 12 = 4 + 1 + Tphs1 + Tprs, let us choose Tprs = 3 Tphs1 = 4
PHS1 = 3 and PRS = 2
BRP = 0 so CANBT1 = 00h
SJW = 0 and PRS = 2 so CANBT2 = 04h
PHS2 = 3 and PHS1 = 3 so CANBT3 = 36h
OSC
Tsyns = 1xTscl (fixed)
= 12 MHz in X1 mode => FCAN = 6MHz
Tscl
Tbit calculation:
Tprs
One Nominal bit
bit Rate Prescaler
Tbit
Tbit
Tphs1 + Tsjw (3)
=
Tphs1 (1)
Tsyns
Sample Point
+
Tprs
Tphs2 - Tsjw (4)
+
Tphs1
Tphs2 (2)
Transmission Point
AT/T89C51CC02
+
Tphs2
85

Related parts for AT89C51CC02CA-TDSUM