C Compiler Reference Manual August 2009
ccs_c_manual ccs
User Manual:
Open the PDF directly: View PDF
Page Count: 357 [warning: Documents this large are best viewed by clicking the View PDF Link!]
- OVERVIEW
- PROGRAM SYNTAX
- STATEMENTS
- EXPRESSIONS
- DATA DEFINITIONS
- FUNCTIONAL OVERVIEWS
- I2C
- ADC
- Analog Comparator
- CAN Bus
- CCP1
- CCP2, CCP3, CCP4, CCP5, CCP6
- Configuration Memory
- DAC
- Data Eeprom
- External Memory
- General Purpose I/O
- Internal LCD
- Internal Oscillator
- Interrupts
- Linker
- Low Voltage Detect
- Power PWM
- Program Eeprom
- PSP
- PMP
- RS232 I/O
- RTOS
- SPI
- Timer0
- Timer1
- Timer2
- Timer3
- Timer4
- Timer5
- USB
- Voltage Reference
- WDT or Watch Dog Timer
- PRE-PROCESSOR DIRECTIVES
- PRE-PROCESSOR
- #ASM#ENDASM
- #BIT
- #BUILD
- #BYTE
- #CASE
- _DATE_
- #DEFINE
- #DEVICE
- _DEVICE_
- #ERROR
- #EXPORT (options)
- __FILE__
- __FILENAME__
- #FILL_ROM
- #FUSES
- #HEXCOMMENT
- #ID
- #IF exp#ELSE#ELIF #ENDIF
- #IFDEF#IFNDEF #ELSE#ELIF
- #IGNORE_WARNINGS
- #IMPORT (options)
- #INCLUDE
- #INLINE
- #INT_xxxx
- #INT_DEFAULT
- #INT_GLOBAL
- __LINE__
- #LIST
- #LINE
- #LOCATE
- #MODULE
- #NOLIST
- #OPT
- #ORG
- #OCS
- __PCB__
- __ PCM __
- __ PCH __
- #PIN_SELECT
- #PRAGMA
- #PRIORITY
- #RESERVE
- #ROM
- #SEPARATE
- #SERIALIZE
- #TASK
- __ TIME __
- #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 TOUCHPAD
- #WARNING
- #WORD
- #ZERO_RAM
- PRE-PROCESSOR
- BUILT-IN-FUNCTIONS
- BUILT-IN-FUNCTIONS
- abs( )
- adc_done( )
- assert( )
- atoe( )
- atof( )
- atoi( )atol( )atoi32( )
- bit_clear( )
- bit_set( )
- bit_test( )
- brownout_enable( )
- bsearch( )
- calloc( )
- ceil( )
- clear_interrupt( )
- dac_write( )
- delay_cycles( )
- delay_ms( )
- delay_us( )
- diable_interrupts( )
- div( )ldiv( )
- enable_interrupts( )
- erase_eeprom
- erase_program_eeprom( )
- exp( )
- ext_int_edge( )
- fabs( )
- floor( )
- fmod( )
- free( )
- frexp( )
- get_timerx( )
- get_tris_x( )
- getc( )getch( )getchar( )fgetc( )
- getenv( )
- gets( )fgets( )
- goto_address( )
- i2c_isr_state( )
- i2c_poll( )
- I2C_read( )
- i2c_slaveaddr( )
- i2c_start( )
- i2c_stop( )
- i2c_write( )
- i2c_speed( )
- input( )
- input_state( )
- input_x( )
- interrupt_active( )
- isalnum(char)isalpha(char)isdigit(char)islower(char)isspace(char)isupper(char)isxdigit(char)iscntrl(x)isgraph(x)isprint(x)ispunct(x)
- isamong( )
- itoa( )
- jump_to_isr
- kbhit( )
- label_address( )
- labs( )
- lcd_load( )
- lcd_symbol( )
- ldexp( )
- log( )
- log10( )
- longjmp( )
- make8( )
- make16( )
- make32( )
- malloc( )
- memcpy( )memmove( )
- memset( )
- modf( )
- _mul( )
- nargs( )
- offsetof( )offsetofbit( )
- output_x( )
- output_bit( )
- output_drive( )
- output_float( )
- output_high( )
- output_low( )
- output_toggle( )
- perror( )
- port_x_pullups ( )
- pow( )pwr( )
- printf( )fprintf( )
- psp_output_full( )psp_input_full( )psp_overflow( )
- putc( )putchar( )fputc( )
- puts( )fputs( )
- qsort( )
- rand( )
- read_adc( )
- read_bank( )
- read_calibration( )
- read_configuration_memory( )
- read_eeprom( )
- read_program_eeprom( )
- read_program_memory( )read_external_memory( )
- realloc( )
- reset_cpu( )
- restart_cause( )
- restart_wdt( )
- rotate_left( )
- rotate_right( )
- 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_channel( )
- set_power_pwmx_duty( )
- set_power_pwm_override( )
- set_pwm1_duty( )set_pwm2_duty( ) set_pwm3_duty( )set_pwm4_duty( )set_pwm5_duty( )
- set_rtcc( )set_timer0( ) set_timer1( ) set_timer2( ) set_timer3( ) set_timer4( )set_timer5( )
- set_timerx( )
- set_tris_x( )
- set_uart_speed( )
- setjmp( )
- setup_adc(mode)
- setup_adc_ports( )
- setup_ccp1( )setup_ccp2( )setup_ccp3( )setup_ccp4( )setup_ccp5( )setup_ccp6( )
- setup_comparator( )
- setup_counters( )
- setup_dac( )
- setup_external_memory( )
- setup_lcd( )
- setup_low_volt_detect( )
- setup_oscillator( )
- setup_opamp1( )setup_opamp2( )
- setup_power_pwm( )
- setup_power_pwm_pins( )
- setup_pmp(option,address_mask)
- setup_qei( )
- setup_spi( )setup_spi2( )
- setup_psp(option,address_mask)
- setup_timer_0( )
- setup_timer_1( )
- setup_timer_2( )
- setup_timer_3( )
- setup_timer_4( )
- setup_timer_5( )
- setup_uart( )
- setup_vref( )
- setup_wdt( )
- shift_left( )
- shift_right( )
- sin( )cos( )tan( )asin( )acos()atan()sinh()cosh()tanh()atan2()
- sleep( )
- sleep_ulpwu( )
- spi_data_is_in( )spi_data_is_in2( )
- spi_read( )spi_read2( )
- spi_write( )spi_write2( )
- spi_xfer( )
- sprintf( )
- sqrt( )
- srand( )
- STANDARD STRING FUNCTIONS( )memchr( )memcmp( )strcat( )strchr( )strcmp( )strcoll( )strcspn( )
- strerror( )stricmp( )strlen( )strlwr( )strncat( )strncmp( )strncpy( )strpbrk( )strrchr( )strspn( )strstr( )strxfrm( )
- strcpy( )strcopy( )
- strtod( )
- strtok( )
- strtol( )
- strtoul( )
- swap( )
- tolower( )toupper( )
- touchpad_getc( )
- touchpad_hit( )
- touchpad_state( )
- va_arg( )
- va_end
- va_start
- write_bank( )
- write_configuration_memory( )
- write_eeprom( )
- write_external_memory( )
- write_program_eeprom( )
- write_program_memory( )
- BUILT-IN-FUNCTIONS
- STANDARD C INCLUDE FILES
- ERROR MESSAGES
- COMPILER WARNING MESSAGES
- COMMON QUESTIONS AND ANSWERS
- How are type conversions handled?
- How can a constant data table be placed in ROM?
- How can I use two or more RS-232 ports on one PIC®?
- How can the RB interrupt be used to detect a button press?
- How do I do a printf to a string?
- How do I directly read/write to internal registers?
- How do I get getc() to timeout after a specified time?
- How do I make a pointer to a function?
- How do I put a NOP at location 0 for the ICD?
- How do I write variables to EEPROM that are not a byte?
- 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?
- Instead of 800, the compiler calls 0. Why?
- Instead of A0, the compiler is using register 20. Why?
- What can be done about an OUT OF RAM error?
- 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 does the compiler show less RAM than there really is?
- Why does the compiler use the obsolete TRIS?
- Why is the RS-232 not working right?
- EXAMPLE PROGRAMS
- SOFTWARE LICENSE AGREEMENT