Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 22nd June 2006, 12:27 PM   #1
Default PIC Programming in C Language

Hi Friends

I have examples in Basic Language of PIC Programmes.
But I know only C Language. So I dont want to learn Basic from
start. Plzzz send me some C written programme for PIC I'll refer them and learn how to programme PIC in C. I found some Compilers of C(MPLIB).
just send .c files if possible scematic digrame and source code
at onlineajit2000@yahoo.com
Thank You!
Ajit
onlineajit2000 is offline  
Old 22nd June 2006, 02:31 PM   #2
Default

YOU MAY FİND WHAT YOU WANT IN CCS FORUM PAGE:

http://www.ccsinfo.com/forum/index.php

GOOD LUCK
butterfly is offline  
Old 22nd June 2006, 05:08 PM   #3
Default

look here : http://www.google.com/search?hl=en&q...=Google+Search
philba is offline  
Old 23rd June 2006, 07:45 PM   #4
Default

MCC18 or even PICC18 is a much better compiler than CCS.

Many examples of C coding out there. The code will generally require changes depending on the compiler, though.
__________________
I thought what I'd do was I'd pretend I was one of those deaf-mutes.
Oznog is offline  
Old 24th June 2006, 01:03 AM   #5
Default

two others to look at

mikroelectonika C http://www.mikroelektronika.co.yu/en...kroc/index.htm
free version is limited to 2K of code. code gen isn't great but they've got a really nice library for the microcontroller beginner.

cc5x. http://www.bknd.com/cc5x/download.shtml free version is limited to 1K but its a lot tighter code than MikroC. for PIC18, check out cc8e

Last edited by philba; 24th June 2006 at 01:06 AM.
philba is offline  
Old 24th June 2006, 12:50 PM   #6
Default

Code:
#include<pic.h>

void delay(void);

void main()
{
  TRISB=0x00;
 while(1)
  {
  PORTB=0xFF;
  delay();
  PORTB=0x00;
  delay();
  }
}

void delay()
{
  int i;
  for(i=0;i<3000;i++);
}
This is a very simple code to blink8 led's connected in PORTB. This is compiled using Hitech C compiler. Hitech PICC is very simple to use.
sukumar is offline  
Old 25th June 2006, 12:30 PM   #7
Default Thanks Sumukar

Sumukar I just downloaded the hitech c compiler, it seems like just what I needed. Not having to write assembler code will speed up development time. Thank you for the great suggestion and saving me a valuable commodity-time!
jcirafic is offline  
Old 25th June 2006, 06:20 PM   #8
Default

To programe for PIC , you can choose some C language compiler
such as CCS ,HT-PIC .in addition ,you can use ASM language complier (MPLAb)
giaosucan is offline  
Old 25th June 2006, 06:57 PM   #9
Default

I know some website discuss about that ,such as
http://www.picvietnam.com
you can consult
__________________
E-DESIGN prestigious and quality
http://pg.photos.yahoo.com/ph/giaosu...765scd&.src=ph
contact me:giaosucan2000@yahoo.com
giaosucan is offline  
Old 25th June 2006, 07:37 PM   #10
Default

You can also use sdcc (http://sdcc.sourceforge.net)
b0j3 is offline  
Old 26th June 2006, 06:12 PM   #11
Default

I've used the Microchip compilers and don't like them at all. The header files are bloated, hard to read, and the interface needs some work.

However, I've used CCS for awhile and its worked great. Better then Hitech I think. The forum is pretty good. The only thing I dislike is that they seem to have new bugs with every single release. And thier support for x64 blows.

Other then all that, I still recommend it.
iso9001 is offline  
Old 26th June 2006, 06:47 PM   #12
Default

how about the basic language ?
is it good ?
__________________
E-DESIGN prestigious and quality
http://pg.photos.yahoo.com/ph/giaosu...765scd&.src=ph
contact me:giaosucan2000@yahoo.com
giaosucan is offline  
Old 27th June 2006, 07:48 AM   #13
Default

Hi,
mikroBasic is also an easy language to use but C is much more easy than basic. when comparing both Basic has additional features. But C is user freindly.

when u are using Hitech picc just install MPLAB Tool suite from hitech-group there by we can write codes in MPLAB without using hitech IDE.
But u have to select language toolsuite in MPLAB by

Projects->select language tool suite->Hitech picc
sukumar is offline  
Old 27th June 2006, 09:21 AM   #14
Default

Quote:
Originally Posted by sukumar
Hi,
but C is much more easy than basic. But C is user freindly.
Interesting point of view?, "C more easy than BASIC, and user friendly", must be the first time anyone has ever suggested that?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 27th June 2006, 01:02 PM   #15
Default

Quote:
Originally Posted by Nigel Goodwin
Interesting point of view?, "C more easy than BASIC, and user friendly", must be the first time anyone has ever suggested that?.
for one who 'thinks' in the C format , basic is trash..
__________________
Gods own Country
Incredible !ndia

www.flickr.com/photos/_akg/

"Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime."
akg is offline  
Reply

Tags
language, pic, programming

Thread Tools
Display Modes




All times are GMT. The time now is 09:14 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker