SW500011 Microchip Technology, SW500011 Datasheet - Page 71

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
C Language Features
of the first byte) up. Therefore, bit number 3 (the fourth bit in the byte since numbering starts with
0) in byte number 5 is actually absolute bit number 43 (that is 8bits/byte * 5 bytes + 3 bits).
to be a C object at absolute address BF80F600h, then declare a bit variable at absolute bit address
27:
Note that all standard registers and bits within these registers are defined in the header files provided.
The only header file you need to include to have access to the PIC32 registers is <htc.h> - at compile
time this will include the appropriate header for the selected chip.
3.3.4 8-Bit Integer Data Types and Variables
HI-TECH C PRO for the PIC32 MCU Family 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 . The signed char type is an 8-bit two’s complement signed
integer type, representing integral 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 PRO for the PIC32 MCU Family 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.3.5 16-Bit Integer Data Types
HI-TECH C PRO for the PIC32 MCU Family supports 2 16-bit integer types. short is a 16-bit two’s
complement signed integer type, representing integral values from -32,768 to +32,767 inclusive.
Unsigned short is a 16-bit unsigned integer type, 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.
For example, to access the software reset detection flag bit in the RCON register, declare RCON
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,
static unsigned long RCON @ 0xBF80F600;
static near bit SWR @ (unsigned)&RCON*8+6;
Supported Data Types and Variables
71

Related parts for SW500011