Baically I work up with PIC 16f877A and 12F629
Lets deal with programmin a PIC with a combination of compiler and programmer that i use for my projects.
The compiler i used is MikroC which is a freeware till a code lenth of 2kb.More than that u have to buy for bucks.But then any normal project work upto a level of a student can be easily accomodated within 2kb space, So its damn too easy with MikroC with a lot of inbuilt functions and a goo interface.
You can download MikroC from here
To learn how it works the same page gives u Manual in PDF format. Now i had tough time going through the Manual so i figured how to work by trial and error. There are various problems related to opwning a project and compiling it and working.possibly i am a biology major and i don know much of programmin it seemed tough for me but them to keep it fair there always is a manual and your own trial and error skils!!!I will be addressing the errors in the later part of this page(do catch up).In case you are a very patient reader you are always welcome to get new things from there(those manuals) and let me and other readers know!
Once you have written and compiled your code in MikroC you will have a .HEX file in the project folder it will have something like this below
HEY DON”T WORRY ALL THIS IS TAKEN CARE BY MickroC. U don have to type in one number of it.
now this is the file yu need to burn into the PIC.
A word about PIC (it will be delt in detail on individual pages)
I work with a 40 pin PIC16F877A. it has 32 i/o pins so comes very handy in cases where i use stepper motors and i need more control wires etc.Another PIC i’m workin recently is 12F629 it has an internal oscillator and best part is it is just 8 pin so it remains hidden under your circuit yet doing a lot of work!.
I bought a programmer from the market. it costed me 4500 buck. its a hell damn costly.When i initatially started working with PIC i had no one to help so did not know how to burn and other issues so to keep on the safer side i bought on(Also because i was racing against time….. hmmm long story i’l blog that up later.)
But even bigginers can make their own PIC programmer. Few days back my friend Ganesh (Meet him) said he made a PIC out of a monitor component or module.I’m damn sure none of you would want to use your monitor part for that (u rather buy) unless you haveone scrap monitor in your junbox.
Wait for a few days.. I’l soon put up a small circuit with the programming software for burning it onto your chip.
The PIC you will make will be specific to one particular contraoller(market one can burn a wide varieties of PIC)