SW006012 Microchip Technology, SW006012 Datasheet - Page 87

C COMPILER FOR DSPIC30F FAMILY

SW006012

Manufacturer Part Number
SW006012
Description
C COMPILER FOR DSPIC30F FAMILY
Manufacturer
Microchip Technology
Type
MPLAB® C30 Compilerr
Series
PIC24 & DsPICr
Datasheets

Specifications of SW006012

Supported Families
PIC24, DsPIC30F And DsPIC33F
Core Architecture
PIC, DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Tool Type
Compiler
Processor Series
PIC24, dsPIC
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
dsPIC30F
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
5.1
5.2
5.3
5.4
© 2007 Microchip Technology Inc.
INTRODUCTION
HIGHLIGHTS
DATA REPRESENTATION
INTEGER
This section discusses the MPLAB C30 data types.
Items discussed in this chapter are:
• Data Representation
• Integer
• Floating Point
• Pointers
Multibyte quantities are stored in “little endian” format, which means:
• The least significant byte is stored at the lowest address
• The least significant bit is stored at the lowest-numbered bit position
As an example, the long value of 0x12345678 is stored at address 0x100 as follows:
As another example, the long value of 0x12345678 is stored in registers w4 and w5:
Table 5-1 shows integer data types are supported in MPLAB C30.
TABLE 5-1:
char, signed char
unsigned char
short, signed short
unsigned short
int, signed int
unsigned int
long, signed long
unsigned long
long long**, signed long long**
unsigned long long**
** ANSI-89 extension
0x5678
0x100
0x78
w4
Chapter 5. Data Types
0x1234
0x101
0x56
INTEGER DATA TYPES
w5
Type
0x102
0x34
0X103
0x12
Bits
16
16
16
16
32
32
64
64
8
8
USER’S GUIDE
MPLAB
-32768
-32768
-128
Min
-2
-2
0
0
0
0
0
31
63
DS51284F-page 81
®
2
2
2
2
32767
65535
32767
65535
Max
31
32
63
64
127
255
C30
- 1
- 1
- 1
- 1

Related parts for SW006012