![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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 | |
| |
| | #2 |
| | |
| |
| | #3 |
| | |
| |
| | #4 |
|
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. | |
| |
| | #5 |
|
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. | |
| |
| | #6 |
| 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++);
}
| |
| |
| | #7 |
|
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!
| |
| |
| | #8 |
|
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) | |
| |
| | #9 |
|
__________________ E-DESIGN prestigious and quality http://pg.photos.yahoo.com/ph/giaosu...765scd&.src=ph contact me:giaosucan2000@yahoo.com | |
| |
| | #10 |
|
You can also use sdcc (http://sdcc.sourceforge.net)
| |
| |
| | #11 |
|
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. | |
| |
| | #12 |
|
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 | |
| |
| | #13 |
|
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 | |
| |
| | #14 | |
| Quote:
| ||
| |
| | #15 | |
| Quote:
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." | ||
| |
|
| Tags |
| language, pic, programming |
| Thread Tools | |
| Display Modes | |
| |