$PROCESSOR - Define processor

Language reference ›› Directives ››
Parent Previous Next

processor-directive = $PROCESSOR processor-pn .


Defines the processor Part Number.


<processor-pn>:

An identifier which must match the Microchip official part name and must be in the list of PMP's supported parts.


This directive overrides the default processor part number defined in the Project's Options.

This directive is not allowed in units since they use the main program declaration.

In main program this directive should be the first to be declared.




{$PROCESSOR PIC16F690}

{$IF DEFINED(BASELINE) or DEFINED(MIDRANGE)}
 {$DEFINE USE_SMALL_BUFFERS}
{$ENDIF}
{$IF DEFINED('PIC16*690')}
 …
{$ENDIF}