Page 1 of 1

calculate baudrate settings

Posted: Tue 18. Dec 2012, 09:08
by GrzegorzK
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

Re: calculate baudrate settings

Posted: Tue 18. Dec 2012, 09:42
by M.Maidhof
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

Re: calculate baudrate settings

Posted: Tue 18. Dec 2012, 11:57
by GrzegorzK
thank you.