SW500008 Microchip Technology, SW500008 Datasheet - Page 55

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
C Language Features
3.3.5.4 The powerup Routine
Some hardware configurations require special initialization, often within the first few cycles of ex-
ecution after reset. To achieve this there is a hook to the reset vector provided via the powerup
routine. This is a user-supplied assembler module that will be executed immediately on reset. Often
this can be embedded in a C module as embedded assembler code. A “dummy” powerup routine is
included in the file powerup.as. The file can be copied, modified and included into your project.
No special linking options or jumps to the powerup routine are required, the compiler will detect if
you are using a powerup routine and will automatically generate code to jump to it after reset. If you
use a powerup routine, you will, however, need to add a jump to start after your initializations.
Refer to comments in the powerup source file for details about this. The powerup.as source file can
be found in the compiler’s SOURCES directory.
3.4 Supported Data Types and Variables
The HI-TECH PICC-18 STD compiler supports basic data types with 1, 2, 3 and 4 byte sizes. All
multi-byte types follow least significant byte first format, also known as little-endian. Word size
values thus have the least significant byte at the lower address, and double word size values have the
least significant byte and least significant word at the lowest address. Table
and their corresponding size and arithmetic type.
bit
char
unsigned char
short
unsigned short
int
unsigned int
long
unsigned long
float
double
Type
Table 3.5: Basic data types
Size (bits)
1
8
8
16
16
16
16
32
32
24
24 or 32
2
unsigned integer
signed or unsigned integer
unsigned integer
signed integer
unsigned integer
signed integer
unsigned integer
signed integer
unsigned integer
real
real
Arithmetic Type
Supported Data Types and Variables
3.5
shows the data types
1
41

Related parts for SW500008