SW500009 Microchip Technology, SW500009 Datasheet - Page 58

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
Supported Data Types and Variables
3.4.3 8-Bit Integer Data Types and Variables
HI-TECH PICC STD supports both signed char and unsigned char 8-bit integral types. If the
signed or unsigned keyword is absent from the variable’s definition, the default type is unsigned
char unless the PICC --CHAR=signed option is used, in which case the default type is signed
char. The signed char type is an 8-bit two’s complement signed integer type, representing in-
tegral values from -128 to +127 inclusive. The unsigned char is an 8-bit unsigned integer type,
representing integral values from 0 to 255 inclusive. It is a common misconception that the C char
types are intended purely for ASCII character manipulation. This is not true, indeed the C language
makes no guarantee that the default character representation is even ASCII. The char types are
simply the smallest of up to four possible integer sizes, and behave in all respects like integers.
represent characters. It is possible to freely mix char values with short, int and long values in C
expressions. With HI-TECH C the char types will commonly be used for a number of purposes, as
8-bit integers, as storage for ASCII characters, and for access to I/O locations.
to hold values of these types. Where only char is used in the declaration, the type will be signed
char unless the option, mentioned above, to specify unsigned char as default is used.
3.4.4 16-Bit Integer Data Types
HI-TECH PICC STD supports four 16-bit integer types. short and int are 16-bit two’s complement
signed integer types, representing integral values from -32,768 to +32,767 inclusive. Unsigned
short and unsigned int are 16-bit unsigned integer types, representing integral values from 0
to 65,535 inclusive. All 16-bit integer values are represented in little endian format with the least
significant byte at the lower address.
sequences, respectively, to hold values of these types. When specifying a short int type, the
keyword int may be omitted. Thus a variable declared as short will contain a signed short int
and a variable declared as unsigned short will contain an unsigned short int.
3.4.5 32-Bit Integer Data Types and Variables
HI-TECH PICC STDsupports two 32-bit integer types. Long is a 32-bit two’s complement signed in-
teger type, representing integral values from -2,147,483,648 to +2,147,483,647 inclusive. Unsigned
long is a 32-bit unsigned integer type, representing integral values from 0 to 4,294,967,295 inclu-
sive. All 32-bit integer values are represented in little endian format with the least significant word
and least significant byte at the lowest address. Long and unsigned long occupy 32 bits as this is
the smallest long integer size allowed by the ANSI standard for C.
44
The reason for the name “char” is historical and does not mean that char can only be used to
Variables may be declared using the signed char and unsigned char keywords, respectively,
Variables may be declared using the signed short int and unsigned short int keyword
C Language Features

Related parts for SW500009