Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
1Activity

Table Of Contents

OVERVIEW
PCW Overview
Technical Support
Directories
File Formats
Invoking the Command Line Compiler
PROGRAM SYNTAX
Overall Structure
Comment
Trigraph Sequences
Multiple Project Files
Multiple Compilation Units
Example
STATEMENTS
Statements
STATEMENT
if
while
do
do-while
switch
return
goto
label
break
continue
expr
stmt
EXPRESSIONS
Expressions
Operators
Operator Precedence
Reference Parameters
Variable Argument Lists
Default Parameters
Overloaded Functions
DATA DEFINITIONS
Basic and Special types
Declarations
Non-RAM Data Definitions
Using Program Memory for Data
Function Definition
FUNCTIONAL OVERVIEWS
Analog Comparator
CAN Bus
Configuration Memory
Data Eeprom
Data Signal Modulator
Extended RAM
General Purpose I/O
Input Capture
Internal Oscillator
Interrupts
Linker
Output Compare/PWM Overview
Motor Control PWM
PMP/EPMP
Program Eeprom
RS232 I/O
RTCC
RTOS
TimerA
TimerB
Timers
Voltage Reference
WDT or Watch Dog Timer
PRE-PROCESSOR
#ASM #ENDASM
#BANK_DMA
#BANKX
#BANKY
#BIT
#BUILD
#BYTE
#CASE
_DATE_
#DEFINE
#DEFINEDINC
#DEVICE
_DEVICE_
#ERROR
#EXPORT (options)
__FILENAME__
#FILL_ROM
#FUSES
#HEXCOMMENT
#IF expr #ELSE #ELIF #ENDIF
#IFDEF #IFNDEF #ELSE #ELIF #ENDIF
#IGNORE_WARNINGS
#IMPORT (options)
#INCLUDE
#INLINE
#INT_xxxx
#INT_DEFAULT
#LIST
#LINE
#LOCATE
#MODULE
#NOLIST
#OCS
#OPT
#ORG
#PRAGMA
#RECURSIVE
#RESERVE
#ROM
#SEPARATE
#SERIALIZE
#TASK
#TYPE
#UNDEF
#USE DELAY
#USE DYNAMIC_MEMORY
#USE FAST_IO
#USE FIXED_IO
#USE I2C
#USE RS232
#USE RTOS
#USE SPI
#USE STANDARD_IO
#USE TIMER
#USE TOUCHPAD
#WARNING
#WORD
#ZERO_RAM
BUILT-IN FUNCTIONS DIRECTORY
BUILT-IN-FUNCTIONS
abs( )
adc_done( ) adc_done2( )
assert( )
atoe( )
atof( ) atof48( ) atof64( )
bit_clear( )
bit_first( )
bit_last( )
bit_set( )
bit_test( )
bsearch( )
calloc( )
ceil( )
clear_interrupt( )
crc_calc( ) crc_calc8( )
crc_init(mode)
dac_write( )
dci_data_received( )
dci_read( )
dci_start( )
dci_transmit_ready( )
dci_write( )
delay_cycles( )
delay_ms( )
delay_us( )
disable_interrupts( )
div( ) ldiv( )
dma_start( )
dma_status( )
enable_interrupts( )
erase_program_memory
exp( )
ext_int_edge( )
fabs( )
floor( )
fmod( )
free( )
frexp( )
get_capture( )
get_motor_pwm_count( )
get_ticks( )
get_timerA( )
get_timerB( )
get_timerx( )
get_timerxy( )
get_tris_x( )
getc( ) getch( ) getchar( ) fgetc( )
getenv( )
gets( ) fgets( )
goto_address( )
high_speed_adc_done( )
i2c_isr_state( )
i2c_poll( )
i2c_read( )
i2c_slaveaddr( )
i2c_speed( )
i2c_start( )
i2c_stop( )
i2c_write( )
input( )
input_change_x( )
input_state( )
input_x( )
interrupt_active( )
isamong( )
itoa( )
kbhit( )
label_address( )
labs( )
ldexp( )
log( )
log10( )
longjmp( )
make8( )
make16( )
make32( )
malloc( )
memcpy( ) memmove( )
memset( )
modf( )
_mul( )
nargs( )
pmp_address(address)
pmp_read( )
port_x_pullups ( )
pow( ) pwr( )
printf( ) fprintf( )
psp_read( )
psp_write( )
putc( ) putchar( ) fputc( )
puts( ) fputs( )
qei_get_count( )
qei_set_count( )
qei_status( )
qsort( )
rand( )
read_adc( ) read_adc2( )
read_configuration_memory( )
read_eeprom( )
read_extended_ram( )
read_high_speed_adc( )
read_program_memory( )
read_rom_memory( )
realloc( )
reset_cpu( )
restart_cause( )
restart_wdt( )
rotate_left( )
rotate_right( )
rtc_alarm_read( )
rtc_alarm_write( )
rtc_read( )
rtc_write( )
rtos_await( )
rtos_disable( )
rtos_enable( )
rtos_msg_poll( )
rtos_msg_read( )
rtos_msg_send( )
rtos_overrun( )
rtos_run( )
rtos_signal( )
rtos_stats( )
rtos_terminate( )
rtos_wait( )
rtos_yield( )
set_adc_channel( ) set_adc_channel2( )
set_compare_time( )
set_motor_pwm_duty( )
set_motor_pwm_event( )
set_motor_unit( )
set_pullup( )
set_ticks( )
set_timerA( )
set_timerB( )
set_timerx( )
set_timerxy( )
set_tris_x( )
set_uart_speed( )
setjmp( )
setup_adc(mode) setup_adc2(mode)
setup_adc_ports( ) setup_adc_ports2( )
setup_capture( )
setup_comparator( )
setup_compare( )
setup_crc(mode)
setup_dac( )
setup_dci( )
setup_dma( )
setup_high_speed_adc( )
setup_high_speed_adc_pair( )
setup_low_volt_detect( )
setup_motor_pwm( )
setup_oscillator( )
setup_pmp(option,addres s_mask)
setup_power_pwm_pins( )
setup_psp(option,addres s_mask)
setup_qei( )
setup_rtc( )
setup_rtc_alarm( )
setup_spi( ) setup_spi2( )
setup_timerx( )
setup_timer_A( )
setup_timer_B( )
setup_uart( )
setup_vref( )
setup_wdt( )
shift_left( )
shift_right( )
sin( ) cos( ) tan( ) asin( ) acos() atan() sinh() cosh() tanh() atan2()
sleep( )
spi_data_is_in( ) spi_data_is_in2( )
spi_read( ) spi_read2( )
spi_write( ) spi_write2( )
spi_xfer( )
sprintf( )
sqrt( )
srand( )
strcat( )
strchr( )
strcmp( )
strcoll( )
strcpy( ) strcopy( )
STRCSPN( )
strlen( )
strlwr( )
touchpad_state( )
va_arg( )
va_end( )
va_start
write_configuration_mem ory( )
write_eeprom( )
write_extended_ram( )
write_program_memory( )
STANDARD C INCLUDE FILES
errno.h
float.h
limits.h
locale.h
setjmp.h
stddef.h
stdio.h
stdlib.h
ERROR MESSAGES
Compiler Error Messages
How do I wait only a specified time for a button press?
How do I write variables to EEPROM that are not a word?
How does one map a variable to an I/O port?
How does the compiler determine TRUE and FALSE on expressions?
How does the PIC® connect to a PC?
How does the PIC® connect to an I2C device?
How much time do math operations take?
What are the various Fuse options for the dsPIC/PIC 24 chips?
What can be done about an OUT OF RAM error?
What is an easy way for two or more PICs® to communicate?
What is an easy way for two or more PICs® to communicate?
What is the format of floating point numbers?
Why does the .LST file look out of order?
Why is the RS-232 not working right?
EXAMPLE PROGRAMS
SOFTWARE LICENSE AGREEMENT
SOFTWARE LICENSE AGREEMENT
INDEX
0 of .
Results for:
No results containing your search query
P. 1
p CD Reference Manual

p CD Reference Manual

Ratings: (0)|Views: 5,450|Likes:
Published by Lewis Mark

More info:

Published by: Lewis Mark on Jan 04, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/11/2013

pdf

text

original

You're Reading a Free Preview
Pages 8 to 218 are not shown in this preview.
You're Reading a Free Preview
Pages 226 to 290 are not shown in this preview.
You're Reading a Free Preview
Pages 298 to 310 are not shown in this preview.
You're Reading a Free Preview
Pages 318 to 319 are not shown in this preview.
You're Reading a Free Preview
Pages 327 to 363 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->