Telephone: +44 7814 044 754   Skype: warburtech

Add to Favourites


CCS C Instruction Set

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()

Processor Controls
sleep()
reset_cpu()
restart_cause()
disable_interrupts()
enable_interrupts()
ext_int_edge()
read_bank()

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_trix_X()

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()

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()

Analogue Compare
setup_comparator()

Voltage Ref
setup_vref()

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()

Pre-Processor:

Standard C
#define
#undef
#include
#if
#ifdef
#ifndef
#else
#endif
#list
#nolist
#error
#pragma

Function Qualifiers
#inline
#seperate
#int_XXXXX
#int_global
#int_default

Standard C
#device
#id
#fuses

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

Standard C
#byte
#bit
#locate
#reserve
#rom
#zero_ram
#asm
#endasm

Standard C
#case
#opt
#priority
__date__
__device__
__pcb__
__pcm__
__pch__

Standard C:

  • 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.
Google
Cards PayPal
 


Visitor Counter

Page Updated:
27/04/08

Mastercard Visa Credit Solo Visa Debit JCB Visa Electron Maestro
Acceptance Mark

Telephone: +44 7814 044 754   Skype: warburtech

Warburton Technology, 33 Selkirk Close, Wimborne, Dorset, BH21 1TN, United Kingdom

VAT Registration Number: GB 846 917 877

Warburton Technology