Beginner PIC user?

I have some pic12f675 chips laying around, but I have never used pic before. I have heard that they are very easy to program, and very useful. I have experience using arduino. does it use the same language, and can you use the arduino ide with it? as I said I am a beginner with these, so please include as much info as you can, and please leave links to some tutorials if you can. thanks in advance!

sort by: active | newest | oldest
When I first started out to learn how to use PICs, I used the tutorials from Microchip itself. I assume they are still available to download from their site.
They stepped through the general information of how the processors work. It does help if you have learned about any other kind of processor assembly language before.

Microchip has loads of good app notes on their site, some of which have the text of the assembly code within them. The code in those notes was generally well commented and easy to follow.

I have some projects that I have used PICs for under my instructables. These are written in assembly, and I have commented them pretty thoroughly. They may give you an idea of what you need for a working program.

To program them, you will need a programmer. There are many low cost programmers out there, and plans on how to build your own also. Mine is a unit from www.melabs.com

You do have to set up many different things in different registers, which can vary somewhat between different PIC processors. I kind of like to have microscopic control and visibility of things.
Higgs Boson (author)  LargeMouthBass5 years ago
Thank you. that was very helpful.
Higgs Boson (author)  Higgs Boson5 years ago
I'll probably going to make a programmer. it looks like I should download the MPLAB IDE, and use the MPASM assembler. Is this what I should use, if not what should I use? Is there any way I can download it for free?
MPASM is the only thing I use for writing code for PICs. MPASM is free from the Microchip site.

If you want to program in a higher level language like C++ you will most likely have to buy something.
Higgs Boson (author)  LargeMouthBass5 years ago
But MPASM will cover stuff like regular C right? If I get MPASM would I need to get a separate IDE like the MPLAB one, or would it basically have/ be its own IDE?
The MPLAB IDE is free, and includes MPASM. Their web site lists something called CCS PCB C Compiler under the free portions, and it also claims to include support for many third party tools.

I can't really comment more than that, because I've written all my PIC code in assembler, and so I just used MPASM to assemble it into a hex file which I then used with a third party programming device to actually program the code into the part.
Higgs Boson (author)  LargeMouthBass5 years ago
I now have the MPLAB IDE, but it appears you need to select a specific programmer in order to upload. so what would you select if you made your own? (I haven't yet, but that is probably what I am going to do.)

i am in the same situation , i have a par of pic12f675 ´s , and i like it to learn to configure /use it !!!!

could give the steps to doit that ????

i have a pcb programmer for this model (various 8 pins 14 pins 20 pins 40 pins etc)

but i dont know how to do it

the only thinks i know is :
-i have to programing in mode HEX to rec the chip
but i dont know :
-how to create my own program (instructions commands rutines etc)
-passit to hex fileand burn the chip, and build a pcb to test my pic12f675.

yeah i appreciate i f some one tell me how to know the basic

My idea is press a push button and with comands program the chip to output a positive pin to turn on a led (or relay) at x time in seconds .... (timer internal ).... pcb test.

thanks if anyone could help me....
rickharris5 years ago
Programming a bare PIC requires a good knowledge of assembler programming. Along with a suitable programmer and the associated assembler software.

It isn't easy as you need to cover EVERY little aspect of what you want the device to do. You may be able to find libraries of routines if your lucky.

Most of the commercial PIcs - Arduino, - Picaxe , Stamp get round this by having a software system programmed in a high level language such as Basic or C.

Then this high level language is converted (tokenised) into something the PIC chip can understand BUT this only works with the chips they pre-program to understand their language/system.

Higgs Boson (author)  rickharris5 years ago
So how would you program a bare chip? if you had the CPU and everything would you be able to program it? wouldn't there be a compiler to convert the code into something the pic could understand?
iceng5 years ago
No and no.
So you solved your arduino ide on win-7..?
Here are some pdf files.

I used to write native code in the pics before the clumsy integrated windows tools that stumble if not loaded right.

Higgs Boson (author)  iceng5 years ago
Thank you. (yeah I did solve the problem, but I had to download an older version of the ide at first.)