Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

From assembly to c in MPLAB IDE v8.30

Status
Not open for further replies.

PIC2PIC

New Member
Hi
I always used assembler for programming my PIC-s. Now I think it might be nice to go to C. It probably will not be a problem to learn C but I don't know how to or is it at all possible to make a .hex file with MPLAB IDE v8.30.
 
You simply need to buy a compatible C compiler, and installl it - MPLAB works with various ones. As long as you use 18F series PIC's, you can download a free C18 compiler from MicroChip.
 
You can use hi-tech C to in lite mode it should be installed mircochip kind of pushes it on you when you install mplab

If I was you and you use a lot of 16f chips I woutd give Jalv2 a try it a good compiler
this is good for the 18F chips to
http://www.casadeyork.com/jalv2/

This is good if you want to work with just 18f chips Its swordfish basic it's like visual basic
http://www.sfcompiler.co.uk/swordfish/

But is C is what you want Hi-tech or boostC
http://www.sourceboost.com/Products/BoostC/Overview.html
http://www.htsoft.com/

If 18F chips
**broken link removed**
 
Last edited:
Hi Nigel and Burt,

There is also mikroC and mikrobasic also mikropascal, code limit on the non registered versions, works for the 16F and the 18F but has separate IDE than MPLab. But the built in functions are helpful if you want to start programming immediately.

Compilers - mikroElektronika
 
Hi all .Thank you for your help.
@ Wond3rboy
Is it possible to make a .hex file from program "microC PRO for PIC " . I install that program but I think it can't make a .hex file. I use PIC 16f***
 
MiKroC is some what a pain but here is a some window shot showing how there 10 pic the pictures should tell it all.
 

Attachments

  • pic1.PNG
    pic1.PNG
    72.9 KB · Views: 236
  • mickroC.zip
    2.7 MB · Views: 142
If you are going to use mikroc stay away from the built in functions. I am thinking they do not provide source code for them and if you get in trouble you are out in the cold.

The delays would be ok. Not much to go wrong.
 
mikroc is good easy to learn but if you don't save your project the right way it hard for a noob to find them
 
Hi 3V0 and Burt,

They have put up examples/source code on their site. Its for the 16f877.

**broken link removed**

But like 3V0 said try to stay of the libraries, people get stuck more often than getting their problems solved. Besides, its better for a good learning experience that you do every thing manually first.
 
Status
Not open for further replies.

Latest threads

Back
Top