CANBAUD

From MCS Wiki AVR
Jump to: navigation, search

Contents

Action

Sets the baud rate of the CAN bus.

 

 

Syntax

CANBAUD = value

 

 

Remarks

All devices on the CAN bus need to have the same baud rate. The value must be a constant. The baud rate depends on the used crystal. The compiler uses the $CRYSTAL value to calculate the CAN baud rate. Higher baud rates require a higher system clock.

 

 

See also

CONFIG CANBUS , CONFIG CANMOB , CANRESETCANCLEARMOBCANCLEARALLMOBSCANSENDCANRECEIVE , CANID , CANSELPAGECANGETINTS

 

 

 

Example


Canbaud = 125000 ' use 125 KB

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language