Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/26/02 09:44
Read: times


 
#24873 - RE: CAN communications
make X2 mode On, enable it only for CAN,
all other in compatibility mode:
#define BRP 3
#define SJW 0
#define PRS 6
#define PHS1 0
#define PHS2 1

// Set CAN Baudrate
CANBT1=((BRP)<<1);
CANBT2=((PRS)<<1) | ((SJW)<<5);
CANBT3=((PHS1)<<1) | ((PHS2)<<4);

or else with X2=off:

#define BRP 1
#define SJW 0
#define PRS 6
#define PHS1 0
#define PHS2 1

this gives in both cases 251kBit (good enough)

have fun

Werner

List of 7 messages in thread
TopicAuthorDate
CAN communications            01/01/70 00:00      
RE: CAN communications            01/01/70 00:00      
RE: CAN communications, Werner            01/01/70 00:00      
RE: CAN communications, Werner            01/01/70 00:00      
RE: CAN communications            01/01/70 00:00      
RE: CAN communications            01/01/70 00:00      
RE: CAN communications            01/01/70 00:00      

Back to Subject List