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
 
Thread Tools Display Modes
Old 15th November 2007, 12:04 AM   (permalink)
Default PIC C programming

Hi , im comming from an 8051 background , im going to use PIC16F877 for a line following robot competition.
I wanna know a good c compiler , has PWM libs,ADC..etc
and how to start for programming it ?
and is it easy for someone to get used on it in little time like 2 weeks?

thanks
ahmedragia21 is offline   Reply With Quote
Old 15th November 2007, 03:35 AM   (permalink)
Default

My recommendation is do not use the 16F series with C. There are few compilers and they're not very good because the core does is not C-friendly.

Use the 18F series. In this case you can go to Microchip, download their FREE MCC18 compiler, straightforward install into MPLAB's IDE, plenty of support out there, and you're good to go. 18F are better, more powerful parts anyways. 18F2620 (28 pin)/18F4620 (40 pin) are big general purpose parts that I used awhile back, there are newer ones since then though, might even be obsolete by now. Just browse the parts list on Microchip.
__________________
I thought what I'd do was I'd pretend I was one of those deaf-mutes.
Oznog is offline   Reply With Quote
Old 15th November 2007, 03:49 PM   (permalink)
Default

I'd highly recommend the CCS compiler.. I use this myself and it works beutifully for all pics I have tried (16F, 18F, etc..). It has routines built in for most (all?) of the peripherals in each PIC.

The only set back is that the compiler isn't free, but if you look real hard on the net, you may be able to find a version of it for download.
Stellarcore is offline   Reply With Quote
Old 15th November 2007, 04:06 PM   (permalink)
Default

yea
is GCC easy to use ?
i want to port 8051 C codes to it ...

i tried mikroC its so bad , has many bugs and not good .. right ?
ahmedragia21 is offline   Reply With Quote
Old 15th November 2007, 06:15 PM   (permalink)
Default

I like Hi-tech PICC-Lite. It's free and the latest version comes with an IDE. It also has a bunch of sample code included. I did end up finding some better delay code online and I adapted the LCD library to allow for easy configuration using the same settings PicBasic does.

Melissa

Last edited by melissagirl; 15th November 2007 at 06:58 PM.
melissagirl is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 12:13 PM
Question about Inchworm+ Quan Micro Controllers 54 28th October 2007 12:20 AM
UNIT Committment solution using Dynamic programming arijit18 Electronic Projects 1 18th October 2007 08:27 PM
Programming PIC to generate square wave elec123 Micro Controllers 11 13th October 2007 01:15 PM
Programming languages sram General Electronics Chat 9 2nd March 2007 04:14 PM



All times are GMT. The time now is 03:03 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.