Transition from Assembly to C

Thread Starter

Codar

Joined Dec 16, 2012
2
Greetings everyone.

I have traditionally only done PIC programming with MPLAB IDE in assembly language. I use the Pickit 3 to do it at the moment. I want to transition to programming in C, but I am a bit confused as to how this works. Can I just use MPLAB IDE for it? I keep reading about compilers so I'm assume mplab doesn't include one, so what is my best solution?

I would also love to find a good simulator to test out code.

Any help would be appreciated thank you.
 

ErnieM

Joined Apr 24, 2011
8,415
You go to the Microchip website, find the compiler to match your PIC, download and install it.

They work inside MPLAB so you will be familiar with the environment.

If you look for the PICkit 3 debug express package you will find some C tutorials there to download.
 

absf

Joined Dec 29, 2010
1,968
Codar said:
I would also love to find a good simulator to test out code.

Any help would be appreciated thank you.
Proteus ISIS is a simulator that supports many but not all the PICs. After you have the schematics drawn, you can load the Hex code onto the PIC and run it in the simulator. The demo version can be downloaded for free trial. Just google for the keywords "labcenter electronics" and "proteus" for the download site.

I also heard that multisim is a good simulator but have never used it. No sure if it can emulate PIC in animation mode or not.....

Allen
 

Attachments

Last edited:
Top