Informs the compiler of several different things depending on the parameters
| Option Bankx | All variables following this statement will be placed in the
selected bank until told otherwise by another Option Bank statement.
Example: Option Banka ' Store variables in Access RAM Option Bank0 ' Store variables in bank 0 Option Bank1 ' Store variables in bank 1 |
|
Option Config |
Sets a configuration bit option. Check the
Configuration Bit Support page for specific processor options. |
| Option Fosc |
Define the oscillator speed for proper internal timing generation.
This will override the timing set by the Basic18 project and is mainly
provided for MPLAB support. Values such as 4MHz or 4000000 are accepted.
|
| Option ICD | Leave space in program, and data memory for debugging with
the ICD2
|
| Option intHighVector | Remap the interrupt vector to a new location (used for
bootloaders)
Example: Option intHighVector 0x500 ' move the interrupt vector to address 0x500 |
| Option Library | Create a Basic18 library
Example: Option Library mylib.lib ' create a Basic18 library in the current source directory |
| Option LoadLibrary | Load a Basic18 library
Example: Option LoadLibrary "mylib.lib" ' load mylib.lib from the current source directory Option LoadLibrary <libs\mylib.lib> ' load mylib.lib from the libs directory in the Basic18 application directory
|
| Option ResetVector | Remap the reset vector to a new location (used for
bootloaders)
Example: Option ResetVector 0x300 ' move the interrupt vector to address 0x300
|