Device
Positron8 · Revision 4.0.6.5 · PDF page 440
Syntax
Device Device type
Overview
Inform the compiler which microcontroller is being used.
Parameters
Device type can be a 12-bit, standard 14-bit, enhanced 14-bit or 18F device. If a PIC24 or dsPIC33 device is chosen, the compiler will automatically use the Positron24 application.
Example
Device = 16F1829 ' Produce code for a 16F1829 device
or
Device = 16F684 ' Produce code for a 16F684 device
or
Device = 12F508 ' Produce code for a 12-bit core 12F508 device
or
Device = 18F4520 ' Produce code for a 18F4520 device
Device should be the first command placed in the program.
If the Device directive is not used in the BASIC program, the code produced will default to the PIC18F25K20 device.
For an up-to-date list of compatible devices refer to the compiler’s PPI directory.
