CAPL Script

Set Btr

Syntax

long setBtr(long channel, byte btr0, byte btr1);

Function

Sets another baud rate. The values do not become active until the next call of the functionresetCan. It should be noted that these values depend on the CAN controller used.

Parameters

CAN channel

BTR0

Value of Bit Timing Register 0.

BTR1

Value of Bit Timing Register 1.

Return Values

Always 1

...setBtr(0, 0x00, 0x3a); // 500 kBaud for 82C200resetCan(); // activate...

resetCan | setOcr