Electronics > Microcontrollers

Good PIC tutorial in C

<< < (3/3)

juanfermed:
Hi! As many people says, learning assembly is good for you to understand what is happening in the background. As C is a high level language (not too high level like python, but no so low level as assembly) it lets have good control of the microcontroller. Anyway, as you are starting, I would suggest you to stick to C as much as possible, and when you feel you are a pro, maybe move to C++ (I am a newbie to C so I havent made that move  ;) ). Also I have used MikroC compiler from mikroe.com.

You cand download an evaluation version of mikroC which its only limits is 2kb of code (you cannot write very long programs) but for me it has been more than enough. If you decide to use this software (which you can download from here http://www.mikroe.com/eng/products/view/7/mikroc-pro-for-pic/) maybe you will want to go to this webpage http://embedded-lab.com  and look for the "PIC Tutorial" section. They go from the very basics (Input/Output, how to make some registers work, ADC, UART...) and make very interesting projects with not too hard language. The best thing is that they are very well explained and I am learning from there too right now, you not only learn about the PIC, but about many many other components like sensors, amplifiers, transistors, connections and many other cool stuff. The thing is that they use MikroC for the tutorials so you are done! 

I really suggest you to use mikroC, it is very easy, continue learning C (when you switch from PIC to many many other microcontrollers you will notice the use C also)  and go to embedded-lab.com.

Hope to hear of your first projects soon, have us updated!!! :D

PIC microcontrollers are widely known in the web, and I know something, even being that way, it is hard to get started. It is good you found a forum like this were a lot of people are willing to help.

P.S.: I really dont think you are gonna get to write code for PICs in Python in the near future, as far as I know, there is no compiler that can translate python to PIC assembler, and then to its hex. Python is really easy, but maybe you will find yourself writing code in Python for your computer, to comunicate externally with a PIC, via USB for example ;D

ThunderSqueak:
Always liked BoostC from http://www.sourceboost.com/

Combine this with picpack from http://www.embeddedadventures.com/pages/p/Tutorials/id/29

toss in the stand alone programmer http://www.microchip.com/forums/m554515.aspx

Embedded adventures has some good tutorials too.   

check out both (old website) http://embeddedadventures.blogspot.com/
and (new website) http://www.embeddedadventures.com/



Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version