Previous in Forum: Device Driver Gridlock?   Next in Forum: Exterior Drive Back Up
Close
Close
Close
2 comments
Rate Comments: Nested
Active Contributor

Join Date: Apr 2009
Location: singapore
Posts: 16

C Programming for PIC

11/22/2010 8:20 AM

how to write for C programming for PIC . i can write abit for BASIC pic . but i need to write for C . so every one can teach me at online. ?

i want to learn for C programming for PIC .

__________________
A h tun
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru

Join Date: Feb 2009
Location: Houston, USA
Posts: 946
Good Answers: 244
#1

Re: C Programming for PIC

11/23/2010 7:00 PM

Whenever you want to use C programming language to do something, you first need to learn C programming. This forum is not for teaching you the C programming language. Since you use BASIC for PIC (Peripheral Interface Controller), it wouldn't be difficult for you to use C for the same purpose. However, there is lot of difference between BASIC and C.

__________________
"All my technical advices in this forum must be consulted with and approved by a local registered professional engineer before implementation" - Mohammed Samad (Linkedin Profile: http://www.linkedin.com/in/msamad)
Register to Reply
Anonymous Poster
#2

Re: C Programming for PIC

01/26/2011 10:55 AM

If you download the Microchip IDE you can get some free and trial version C compilers, and your programs will run in the included MPLAB SIM simulator.

There are some parts of C that just don't translate well to the PIC processor, but those are usually advanced topics.

There's also some functionality that was built into the BASIC that you used (built in functions) which probably won't be present in the C library, so you will have to be more intimately familiar with the hardware registers and some assembly language.

Also your best bet would be to target the PIC18 or higher processors, if that's an option.

Rufus

Register to Reply
Register to Reply 2 comments

Previous in Forum: Device Driver Gridlock?   Next in Forum: Exterior Drive Back Up

Advertisement