First CCS Compiled Program

This is my first shot at using the CCS Compiler for PIC10F-18F MCUs …. so far its nice and simple…
Has tons of tools in it and is MPLAB compatible which is awesome!!!

#include “18F2525.h”
#fuses INTRC_IO,NOWDT,NOPROTECT,NOLVP
#use delay(clock=8000000)

void main() {
setup_oscillator(OSC_8MHZ);

set_tris_b(0);
output_b(0);

while(TRUE) {
output_high(PIN_B0);
delay_ms(500);
output_low(PIN_B0);
delay_ms(500);
}
}

Advertisements

About atomsoft

Starting a small company. Trying to build it from ground up. Only 2 employees so far. Nothing serious yet but soon!

4 responses to “First CCS Compiled Program”

  1. pasanlaksiri says :

    Yeah MPLAB compatibility is very awesome.

    That is the main reason that I move on MikroC to HiTech.

    But the thing is mikroC have one hell of hidden super cool libraries which we did not get from any other compilers even CCS C.

  2. atomsoft says :

    Oh ok i see now

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: