_ _IDLOCS - Set Processor ID Locations

MPASM Assembler

_ _IDLOCS - Set Processor ID Locations

Note: idlocs is preceded by two underline characters, with no space in between these characters. A space is added here for readibility only.

Syntax

_ _idlocs <expr> or _ _idlocs <expr1>, <expr2>

Description

For PIC12CXXX and PIC16CXXX devices, _ _idlocs sets the four ID locations to the hexadecimal value of <expr>. For PIC18CXXX devices, _ _idlocs sets the two-byte device ID <expr1> to the hexadecimal value of <expr2>. This directive is not valid for the PIC17CXXX family.

For example, if <expr> evaluates to 1AF, the first (lowest address) ID location is zero, the second is one, the third is ten, and the fourth is fifteen.

Before this directive is used, the processor must be declared through the command line, the list directive, or the processor directive.

Example

_ _idlocs H'1234'

See Also

_ _CONFIG LIST PROCESSOR


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext