$BAUD
Action

Instruct the compiler to override the baudrate setting from the options menu.

Syntax

$BAUD = var

Remarks

Var The baudrate that you want to use.
var : Constant.

When you want to use a crystal/baud rate that can't be selected from the options, you can use this compiler directive.
You must also use the $CRYSTAL directive.
These statements always work together.

In the generated report you can view which baud rate is actually generated.
But the baud rate is only shown when RS-232 statements are used like PRINT, INPUT etc.

See also
$CRYSTAL


Example


$BAUD = 2400

$CRYSTAL = 14000000 ' 14 MHz crystal
PRINT "Hello"
END