lien : cliquez ici.

Built-in Functions:

Standard C Char

atoi()
atol()
atoi32()
atof()
tolower()
toupper()
isalnum()
isalpha()
isamoung()
isdigit()
islower()
isspace()
isupper()
isxdigit()
strlen()
strcpy()
strncpy()
strcopy()
strcmp()
stricmp()
strncmp()
strcat()
strstr()
strchr()
strrchr()
strtok()
strspn()
strcspn()
strpbrk()
strlwr()

Delays

delay_cycles()
delay_us()
delay_ms()

Capture / Compare /
PWM

setup_ccpX()
set_pwmX_duty()

Analog Compare

setup_comparator()

Processor Controls

sleep()
reset_cpu()
restart_cause()
disable_interrupts()
enable_interrupts()
ext_int_edge()
read_bank()
interrupt_active()
getenv()
setup_opampX()
sleep_ulpwu()

Standard C Memory

memset()
memcpy()

RS232 I/O

getc()
putc()
gets()
puts()
printf()
kbhit()
set_uart_speed()

I2C I/O

i2c_start()
i2c_stop()
i2c_read()
i2c_write()
i2c_poll()

Discrete I/O

output_low()
output_high()
output_float()
output_bit()
input()
output_X()
input_X()
port_b_pullups()
set_tris_X()
get_tris_X()
output_toggle()
output_drive()

SPI 2 Wire I/O

setup_spi()
spi_read()
spi_write()
spi_data_is_in()

Parallel Slave I/O

setup_psp()
psp_input_full()
psp_output_full()
psp_overflow()

Timers

setup_timer_X()
set_timer_X()
get_timer_X()
setup_counters()
setup_wdt()
restart_wdt()

Voltage Ref

setup_vref()

Standard C Math

abs()
abs32()
acos()
asin()
atan()
ceil()
cos()
exp()
floor()
labs()
log()
log10()
pwr()
sin()
sqrt()
tan()

A/D Conversion

setup_adc_ports()
setup_adc()
set_adc_channel()
read_adc()

Internal EEPROM

read_eeprom()
write_eeprom()
read_program_eeprom()
write_program_eeprom()
read_calibration()

Bit Manipulation

shift_right()
shift_left()
rotate_right()
rotate_left()
bit_clear()
bit_set()
bit_test()
swap()

Parallel Master Port

new_pmp_overflow_input_output()
pmp_address()
pmp_input_full()
pmp_output_full()
pmp_overflow()
pmp_read()
pmp_write()
psp_input_full()
psp_overflow()
psp_read()
psp_write()
setup_pmp()
setup_psp()

Pre-Processor:

Standard C

#define
#else
#elif
#endif
#error
#if
#ifdef
#include
#pragma
#undef

Function Qualifiers

#inline
#int_default
#int_global
#int_xxx
#separate

Device Specification

#device chip
#fuses
#id
#id checksum
#id number
#serialize
#type

Built-In Libraries

#use delay clock
#use fast_io
#use fixed_io
#use i2c
#use rs232
#use standard_io

Memory Control

#asm
#bit
#build
#byte
#endasm
#fill_rom
#locate
#reserve
#rom
#zero_ram

Compiler Control

#case
#opt
#priority
#list
#nolist
#org
#ignore_warnings

Pre-Defined Identifiers

_data_
_device_
_file_
_line_
_pcb_
_pcm_
_pch_
_time_

RTOS

#use rtos
#task

Please note: RTOS and Linker are only included with the PCW and PCWH packages.

Standard C Syntax:

  • if, else, while, do, switch, case, for, return, goto, break, continue
  • ! ~ ++ — + – , & |
  • * / % << >> ^ && || ?:
  • < <= > >= == !=
  • = += -= *= /= %= >>= <<= &= ^= |=
  • typedef, static, auto, const, enum, struct, union
  • Arrays up to 5 subscripts
  • Structures and Unions may be nested.
  • Custom bit fields (1-8 bits) within structures.
  • ENUMurated types
  • CONSTant variables, arrays and strings.
  • Full function parameter support (any number).
  • Some support for C++ reference parameters.