SW500008 Microchip Technology, SW500008 Datasheet - Page 44

PICC-18 STD

SW500008

Manufacturer Part Number
SW500008
Description
PICC-18 STD
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500008

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Standard
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015
778-1001
778-1001
Processor-related Features
3.2.1 Processor Support
HI-TECH PICC-18 STD supports the full range of Microchip PIC 18 processors. Additional code-
compatible processors may be added by editing the picc-18.ini file in the DAT directory. User-
defined processors should be placed at the end of the file. The header of the file explains how
to specify a processor. Newly added processors will be available the next time you compile by
selecting the name of the new processor on the command line in the usual way.
3.2.2 Configuration Fuses
The PIC18 processors have several locations which contain the configuration bits or fuses. These
bits may be set using the configuration macro. The macro has the form:
(there are two leading underscore characters) where n is the configuration register number and x is
the value that is to be the configuration word. The macro is defined in <htc.h> so be sure to include
that into each module that uses this macro.
16 bits with each call. Special named quantities are defined in the header file appropriate for the
processor you are using to help you enable the required features. To look up the available attributes
for any particular chip, consult Appendix
powerup timer disabled, the watchdog timer enabled with a post scale factor of 1:1, and the stack
full/underflow reset disabled, the following could be used.
Note that the individual selections are ANDed together. Any bits which are not selected in these
macros will remain unprogrammed. You should ensure that you have specified all bits correctly
to ensure proper operation of the part when programmed. Consult your PIC18 datasheet for more
details.
definitions.
30
The configuration macro programs the upper and lower half of each register, i.e. it programs
For example, to set a PIC18Cxx1 chip to have an RC type oscillator, an 8-bit bus width, the
The __CONFIG macro does not produce executable code and should be placed outside function
__CONFIG(n,x);
#include <htc.h>
__CONFIG(1, RC);
__CONFIG(2, BW8 & PWRTDIS & WDTPS1 & WDTEN);
__CONFIG(4, STVRDIS);
D
of this manual.
C Language Features

Related parts for SW500008