SW500008 Microchip Technology, SW500008 Datasheet - Page 59

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
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 PICC-18 STD the char types will commonly be used for a number of
purposes, such 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 unsigned
char unless the option, mentioned above, to specify signed char as default is used.
3.4.5 16-Bit Integer Data Types
HI-TECH PICC-18 STD supports four 16-bit integer types. short and int are 16-bit two’s comple-
ment 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.6 32-Bit Integer Data Types and Variables
HI-TECH PICC-18 STD supports two 32-bit integer types. Long is a 32-bit two’s complement
signed integer 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
inclusive. 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.
quences, respectively, to hold values of these types. Where only long int is used in the declaration,
the type will be signed long. When specifying this type, the keyword int may be omitted. Thus
a variable declared as long will contain a signed long int and a variable declared as unsigned
long will contain an unsigned long int.
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
Variables may be declared using the signed long int and unsigned long int keyword se-
Supported Data Types and Variables
45

Related parts for SW500008