calculate baudrate settings

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
GrzegorzK
Posts: 19
Joined: Wed 8. Feb 2012, 12:30

calculate baudrate settings

Post by GrzegorzK » Tue 18. Dec 2012, 09:08

Dear

Standard definition of baudrate in API is:

Code: Select all

#define TPCANBaudrate WORD
 
#define PCAN_BAUD_1M 0x0014
#define PCAN_BAUD_800K 0x0016
#define PCAN_BAUD_500K 0x001C
#define PCAN_BAUD_250K 0x011C
#define PCAN_BAUD_125K 0x031C
#define PCAN_BAUD_100K 0x432F
#define PCAN_BAUD_95K 0xC34E
#define PCAN_BAUD_83K 0x852B
#define PCAN_BAUD_50K 0x472F
#define PCAN_BAUD_47K 0x1414
#define PCAN_BAUD_33K 0x8B2F
#define PCAN_BAUD_20K 0x532F
#define PCAN_BAUD_10K 0x672F
#define PCAN_BAUD_5K 0x7F7F
 

How to calculate other than already defined baudrate value, e.g. 40k?
Regards
/Greg

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: calculate baudrate settings

Post by M.Maidhof » Tue 18. Dec 2012, 09:42

Hi,

there is a tool available on our website, to calculate those baudrate values for our CAN hardware, please also see the following post:

http://www.peak-system.com/forum/viewto ... dtool#p333

regards

Michael

GrzegorzK
Posts: 19
Joined: Wed 8. Feb 2012, 12:30

Re: calculate baudrate settings

Post by GrzegorzK » Tue 18. Dec 2012, 11:57

thank you.

Post Reply