|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Set baud rate function parameter setting details - requestHi
I am trying to use the below to change the baud rate at run time and reset the CAN controller for activating the specfied baud, but the CANalyzer help does not tell how to configuer the various baud rate.
**************************************
long setBtr(long channel, byte btr0, byte btr1);
CAN channel
0 - Both controllers
1 - channel 1 2 - channel 2 BTR0 : Value of Bit Timing Register 0. BTR1 : Value of Bit Timing Register 1. Example
... setBtr(0, 0x00, 0x3a); // 500 kBaud for 82C200
resetCan(); // aktivate
...
************************************** Could some one share the details Thanks in advance
Regards
Rajesh Maddukuri
|
|
|
RE: Set baud rate function parameter setting details - requestHello Rajesh,
these values depend on the concretely used CAN controller of your CAN adapter. For CANalyzer you can find this easily with the menu [ Configuration | Network hardware | CAN1 (or CAN2...)]. The entry CAN controller tells you which contoller isused. In the documentation of this controller (typically available in the datasheet/Internet) you will find out which values are appropriate. You also can get some direct help in the CANalyzer menu [ Configuration | Network hardware | CAN1 (or CAN2...) | Setup]. There you find a mask, that allows to select a baudrate and see a table, which BTR values are required. Best Regards / Mit freundlichen Gruessen Juergen Klueser ------------------------------------------------- Director PON Open Networking Tools and Components Vector Informatik GmbH Ingersheimer Strasse 24 D-70499 Stuttgart, Germany Phone: +49 711 80670-202 Fax: +49 711 80670-249 Email: juergen.klueser@... Internet: http://www.vector-informatik.de http://www.canopen-solutions.com http://www.vector.com/car2x ------------------------------------------------- Get a fully functional EDS editor - free-of-charge! Visit us at http://www.canopen-forum.com Besuchen Sie uns auf folgenden Veranstaltungen / Visit Vector at important events: Agritechnica Hannover, Hall 16, booth E15 8.Nov. - 11.Nov. 2009 SPS/IPC/DRIVES 2009 Nürnberg, booth 6-340 24.Nov. - 26.Nov. 2009 http://www.vector-worldwide.com/vi_events_en.html ________________________________ From: canlist-owner@... [mailto:canlist-owner@...] On Behalf Of rajesh maddukuri Sent: Wednesday, October 21, 2009 11:08 AM To: canlist@... Subject: [CANLIST] Set baud rate function parameter setting details - request Hi I am trying to use the below to change the baud rate at run time and reset the CAN controller for activating the specfied baud, but the CANalyzer help does not tell how to configuer the various baud rate. ************************************** long setBtr(long channel, byte btr0, byte btr1); CAN channel 0 - Both controllers 1 - channel 1 2 - channel 2 BTR0 : Value of Bit Timing Register 0. BTR1 : Value of Bit Timing Register 1. Example ... setBtr(0, 0x00, 0x3a); // 500 kBaud for 82C200 resetCan(); // aktivate ... ************************************** Could some one share the details Thanks in advance Regards Rajesh Maddukuri -- Archives and useful links: http://groups.yahoo.com/group/CANbus Subscribe and unsubscribe at www.vector-informatik.com/canlist/ Report any problems to <canlist-owner@...> |
| Free embeddable forum powered by Nabble | Forum Help |