Grab the BoostC demo from SourceBoost. It's an excellent PIC compiler. The demo works on all supported PICs. It's only memory and code size limited. When your programs get too big for the demo you can buy a full license for about $75. That gets you both 16F and 18F compilers, as well as support for some 12F's. A ton of bang for the buck!I just recently got into C programming for the PIC's, and I am completely lost as to what compiler I have to pick. I have the PIC 16F877A.
I have ran C programs on the PIC, but I am having trouble decoding what the program instruction do - I havnt found any useful tutorial for Hi-Tech C (Im using the PIC lite intergration with MPLAB)
Are there any useful tutorials, etc. Or are there better compilers, with a larger support base.
Grab the BoostC demo from SourceBoost. It's an excellent PIC compiler. The demo works on all supported PICs. It's only memory and code size limited. When your programs get too big for the demo you can buy a full license for about $75. That gets you both 16F and 18F compilers, as well as support for some 12F's. A ton of bang for the buck!
You can't beat that deal anywhere. Microchip's C18 is about $500 and is for 18F's only. You get to pay again to get another compiler for 16F's. PICC is around $1000 for a full license, I think for only one family (16F or 18F). I could be mistaken about that, but still it's a lot of bucks if you're a hobbiest.
There's lots of BoostC users here at Electro Tech. I don't know of any tutorials targetted exactly at BoostC, but aside from compiler specific stuff it's an ANSI C compiler. It works as you would expect one to work. Tutorials for other compilers, except for minor syntax differences (not in C, but in register/bit access), should work fine.In terms of support and noob-friendliness - i.e tutorials, etc, does BoostC stand out from the rest?
Well, C is C, and has been "forever". The equates in the include files and the libraries supplied are mostly what makes compilers different from each other. And libs are pretty standardized too.And I'm assuming that all C compilers syntax's are very similar to each other?
Well, C is C, and has been "forever". The equates in the include files and the libraries supplied are mostly what makes compilers different from each other. And libs are pretty standardized too.
Gayan,
What target hardware do you have available.
Mike.
As you have a Junebug then I'd start with C18. There's lots of example code on here. Why not start by controlling a servo clicky.
Mike.
Look at Page 41 of the datasheet where it says:I gave BoostC a try last night, and my LED's have been flashing
What I didnt understand, is why I had to turn my porta into digital mode so I can get them on?
Note: On a Power-on Reset, these pins are configured as analog inputs and read as ‘0’.
I gave BoostC a try last night, and my LED's have been flashing
What I didnt understand, is why I had to turn my porta into digital mode so I can get them on?
bsf PORTA,1
bsf PORTA,2
I'm having trouble starting. Can anyone confirm that I should get a good C book, learn the basics and then apply it to the PIC's?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?