SW500010 Microchip Technology, SW500010 Datasheet - Page 66

HI-TECH C PRO FOR PIC10/12/16

SW500010

Manufacturer Part Number
SW500010
Description
HI-TECH C PRO FOR PIC10/12/16
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC10/12/16r
Datasheets

Specifications of SW500010

Supported Families
PIC10, PIC12, PIC16
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC10/12/16
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC10, PIC12, PIC14, PIC16, PIC16E
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
019P
778-1006
778-1006
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. Typically this might look like:
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:
bits of each ID location is programmed, so the following:
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:
programming of ID locations.
66
Specially named quantities are defined in the header file appropriate for the processor you are
#include <htc.h>
__IDLOC(x);
where x is a list of nibbles which are to be positioned into the ID locations. Only the lower four
__IDLOC(15F0);
will attempt to fill ID locations which the values: 1, 5, F, 0. The base address of the ID locations
__IDLOC7(0x7f,1,70,0x5a);
It is not appropriate to use the __IDLOC7 macro on a device that does not permit seven bit
__CONFIG(x);
#include <htc.h>
__CONFIG(WDTDIS & XT & UNPROTECT);
__CONFIG(FCMEN);
// Program config. word 2
// Program config. word 1
C Language Features

Related parts for SW500010