Author Topic: Pic and pickit 3 - C language guide  (Read 2418 times)

0 Members and 1 Guest are viewing this topic.

Offline VancataTopic starter

  • Contributor
  • Posts: 47
  • Country: bg
  • Hobby electronics
Pic and pickit 3 - C language guide
« on: March 15, 2014, 10:33:04 am »
Hello there folks.
Again i have some boring question. Just bought the pickit 3 and now i'm in the "business". I need some logic for my hobby projects and i find the arduino pretty sucked up, lack of control, slow processing et.c I have it with one atmega328 but i don't feel really "free" with the code when i'm programming it. Everything is premade on high level language and i don't see the stuffs behind it.

I'm looking for some book/online site for "C" so i can start with base level language for programming the pic mcu's. I'm beginner, i know some C but i'm not so confident in my knowledge. The idea is to start with C and move in some assembly language in the parts where i need optimal code.

I'm pretty open for any suggestions :)
btw: thumbs up for the forum and the folks here, not many places where you can ask your rookie questions and some pro's take the time to explain you stuffs.
« Last Edit: March 15, 2014, 10:35:11 am by Vancata »
 

Offline Chris.M

  • Contributor
  • Posts: 42
  • Country: au
Re: Pic and pickit 3 - C language guide
« Reply #1 on: March 15, 2014, 10:53:29 am »
Take a look at www.mikroe.com/products/view/11/book-pic-microcontrollers for an understanding of a PIC microcontroller and www.gooligum.com.au/tutorials.html for PIC tutorials in C.

For a free IDE, check out MPLabX from Microchip http://www.microchip.com/pagehandler/en-us/family/mplabx and their XC compilers www.microchip.com/pagehandler/en_us/devtools/mplabxc. Some of the compilers are free and each one has an in depth manual for how the C programming language works with that compiler.
« Last Edit: March 15, 2014, 10:58:44 am by Chris.M »
 

Offline VancataTopic starter

  • Contributor
  • Posts: 47
  • Country: bg
  • Hobby electronics
Re: Pic and pickit 3 - C language guide
« Reply #2 on: March 15, 2014, 11:01:15 am »
Thanks.
"PIC Microcontrollers" book looks just right for me, with a lot of pictures and explanations for beginners. Time to make some coffee and jump in to the pic-mcu "pool".  :-+
 

Offline rollatorwieltje

  • Supporter
  • ****
  • Posts: 571
  • Country: nl
  • I brick your boards.
Re: Pic and pickit 3 - C language guide
« Reply #3 on: March 15, 2014, 11:14:21 am »
Not trying to start an Atmel/PIC war, but you are aware that "Arduino code" is actually C / C++? If you're not happy with any of the supplied libraries, it's trivial to write your own stuff. Inline assembly is also easy if you really want it.
The C code Arduino uses is in the IDE folder (hardware\arduino\cores\arduino).
The Arduino IDE is horrible, but you can basically use any IDE that supports the GCC toolchain. I use Eclipse. I think there is even a manual on the Arduino website that explains how to set up Eclipse.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf