SW500009 Microchip Technology, SW500009 Datasheet - Page 44

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
Processor-related Features
3.2.2 Configuration Fuses
The PIC processor’s configuration fuses (or configuration bits) may be set using the __CONFIG macro
as follows:
Note there are two leading underscore characters and x is the value that is to be in the configuration
word. The macro is defined in <htc.h>, so be sure to include this into the module that uses this
macro.
using to help you set the required features. These names usually follow the same names as used
in the datasheet. Refer to your processor’s header file for details. For devices that have more than
one configuration word, each subsequent invocation of __CONFIG will modify the next configuration
word in sequence.
3.2.3 ID Locations
Some PIC devices have location outside the addressable memory area that can be used for storing
program information, such as an ID number. The __IDLOC macro may be used to place data into
these locations. The macro is used in a manner similar to:
where x is a list of nibbles which are to be positioned into the ID locations. Only the lower four bits
of each ID location is programmed, so the following:
will attempt to fill ID locations which the values: 1, 5, F, 0. The base address of the ID locations
is specified by the idloc psect which will be automatically assigned as appropriate address based on
the type of processor selected. Some devices will permit programming up to seven bits within each
ID location. To program the full seven bits, the regular __IDLOC macro is not suitable. For this
situation the __IDLOC7(a,b,c,d) macro is available. The parameters a to d are a comma separated
list of values. The values can be entered as either decimal or hexadecimal format such as:
It is not appropriate to use the __IDLOC7 macro on a device that does not permit seven bit program-
ming of ID locations.
30
Specially named quantities are defined in the header file appropriate for the processor you are
__CONFIG(x);
#include <htc.h>
__IDLOC(x);
__IDLOC(15F0);
__IDLOC7(0x7f,1,70,0x5a);
C Language Features

Related parts for SW500009