$CRYSTAL

Top  Previous  Next

Action

Instruct the compiler to override the crystal frequency options setting.

 

 

Syntax

$CRYSTAL = var

 

 

Remarks

var

Frequency of the crystal.

var : Constant.

 

When you want to use an unsupported crystal/baud rate you can use this compiler directive.

When you do, you must also use the corresponding $BAUD directive.

These statements always work together.

 

 

See also

$BAUD

 

 

Example

$baud = 2400

$crystal = 14000000                       ' 14 MHz crystal

Print "Hello"

End