LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Thread Tools
Old 11-05-2009, 04:24 PM   #1
MasterOfTheWind
Member
 
Registered: Jul 2004
Distribution: Arch, Debian sid, Kubuntu, Slackware 11
Posts: 314
Thanked: 0
Newbie in need of help on PIC programming


[Log in to get rid of this advertisement]
Hey there


I have recently become very interested in PICs and microelectronics. I have a (self-taught) background in programming in C++, but otherwise little experience with microelectronics.

I have looked around quite a bit, and there is plenty of information about the subject - the only problem is that most of it seems target at advanced users, which I am not.

What I would like specifically, is a book (or an online tutorial) on PICs for the very beginners - going through all the basics, including assembly of components and, of course, the programming itself. Along with it I need a understandable guide of how to get it all (that is PIC programming boards etc.) to work in Linux. Perhaps I could get a nice pre-assembled kit somewhere together with instructions to get me going?

Any tips, suggestions and remarks are welcome! Thanks in advance

PS. Could someone also recommend a good place to buy the components (besides ebay) which ship internationally? I've found www.mouser.com, any other suggestions?
linuxubuntu MasterOfTheWind is offline     Reply With Quote
Old 11-05-2009, 08:38 PM   #2
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
http://www.google.com/linux
http://www.google.com/linux?hl=en&q=...ng&btnG=Search
.. ( 1460 hits ).
> http://www.micahcarrick.com/04-19-20...ing-linux.html
" Intro to Programming PIC Microcontrollers in Linux "

http://unix.freshmeat.net/search?Go....with=&without=
" 52 search results for: microcontrollers " ( page 6 )
.....

Last edited by knudfl; 11-05-2009 at 08:40 PM..
linuxpclinuxos knudfl is offline     Reply With Quote


Old 11-06-2009, 12:53 AM   #3
MasterOfTheWind
Member
 
Registered: Jul 2004
Distribution: Arch, Debian sid, Kubuntu, Slackware 11
Posts: 314
Thanked: 0

Original Poster
Well, thank you. Except the fact that I have already seen the tutorial you highlighted and it states: "This article is inteded (sic.) for people who are familiar with PIC programming." - which was exactly my point.
linuxubuntu MasterOfTheWind is offline     Reply With Quote


Old 11-06-2009, 05:27 AM   #4
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 183
Thanked: 0
Just wanted to share a website that helped me a lot when I was self learning the Micro-controllers and related stuff.
This is Cornell University's website for students of Electronics where they submit their Final projects with their source code, design diagrams and documentation. Just visit the link below and open some interesting project from the list and try to understand with documentation and code. It worked for me, hope it helps.

http://courses.cit.cornell.edu/ee476/FinalProjects/

Regards,
--Tayyab
windows_xp_2003 cppkid is offline     Reply With Quote


Old 11-06-2009, 05:54 AM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 2,303
Thanked: 89
Quote:
Originally Posted by MasterOfTheWind View Post
PS. Could someone also recommend a good place to buy the components (besides ebay) which ship internationally? I've found www.mouser.com, any other suggestions?
www.jameco.com
www.farnell.com
www.conrad.de

If you had added your location to your profile we could have been more to the point with this answer.

BTW Jameco had the worst web site ever to find particular parts. Their paper catalogue is much, much better. I am not sure what the situation is today.


jlinkels
linuxdebian jlinkels is offline     Reply With Quote


Old 11-06-2009, 10:27 AM   #6
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 1,885
Thanked: 88
Quote:
Originally Posted by MasterOfTheWind View Post
Well, thank you. Except the fact that I have already seen the tutorial you highlighted and it states: "This article is inteded (sic.) for people who are familiar with PIC programming." - which was exactly my point.
You could have carried the quote on a little further to give a fuller view:

Quote:
This article is inteded for people who are familiar with PIC programming. It's not a beginners guide to programming PICs, but not far from it. It's intention is to get you setup and started in programming, compiling, and simulating your PICs in a Linux environment. Ideally you have a basic knowledge of PIC programming. Ideally you have a basic understanding of using Linux and installing from source-- but if not, I do go over it step-by-step.
linux salasi is offline     Reply With Quote


Old 11-06-2009, 11:11 AM   #7
MasterOfTheWind
Member
 
Registered: Jul 2004
Distribution: Arch, Debian sid, Kubuntu, Slackware 11
Posts: 314
Thanked: 0

Original Poster
Quote:
Originally Posted by salasi View Post
You could have carried the quote on a little further to give a fuller view:
Indeed. And if you quote even further down:

Quote:
I'm not going to explain this code, as that's another article at another time. It's assumed you know the very basics of PIC programs.
Thus, the assembly code is not explained, neither is the basic architecture of PICs or how to transfer the code to a chip instead of just simulating it or which PIC programmer I should choose etc ad infinitum. Therefore I still maintain that most of the reading material I need about the basic aspects of PIC programming are missing from this tutorial. Perhaps you could suggest another one that fills in these gaps? Or may be a suitable book?

Otherwise I would like to thank cppkid and jlinkels for the links!
linuxubuntu MasterOfTheWind is offline     Reply With Quote


Old 11-06-2009, 10:10 PM   #8
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: washington U.S.
Distribution: Damn Small Linux, KateOs, M$ Ickdows Vista, My own OS
Posts: 1,246
Thanked: 60
http://lmgtfy.com/?q=microcontroller...mming+in+linux
thanks to somebody but i forgot there username (something that starts with a w).
windows_vista smeezekitty is offline     Reply With Quote


Old 11-07-2009, 03:43 AM   #9
MasterOfTheWind
Member
 
Registered: Jul 2004
Distribution: Arch, Debian sid, Kubuntu, Slackware 11
Posts: 314
Thanked: 0

Original Poster
Quote:
Originally Posted by smeezekitty View Post
http://lmgtfy.com/?q=microcontroller...mming+in+linux
thanks to somebody but i forgot there username (something that starts with a w).
Sigh... Have you even read *any* of the above posts? Like, i don't know, for example knudfl's?

And by the way, the username you are thinking of is "waste-of-everyone's-time".

Anyways, here are some online resources I have found interesting, if it can be help to anyone else:

http://www.youtube.com/user/MungedTo.../0/ftgUSNzfXUw - This first one was very nice, although unfortunately for MPLAB (which is Windows-only) and even more unfortunately not yet completed.
http://www.linuxjournal.com/article/3045
http://www.piclist.com/tecHREF/piclist/begin.htm
http://www.diylife.com/2008/02/15/pr...crocontroller/
http://www.mstracey.btinternet.co.uk...al/picmain.htm

Also the link suggested by cppkid was very educational and quite exhaustive.

Despite this in the end I think I'll go for a book. One of the tutorials advertised "Programming & Customizing PICmicro Microcontrollers" by Myke Predko - but it has a rather low rating on Amazon. Another one was "PIC Microcontrollers: Know It All" by Lucio Di Jasio. For now, the latter one is the favorite, but I have to nose around a little bit more and see if anything else shows up.
linuxubuntu MasterOfTheWind is offline     Reply With Quote



Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
interfacing and PIC programming... cactusface Programming 1 07-28-2007 10:01 PM
Newbie to linux - KP at start (pic) zband Mandriva 2 04-04-2005 09:41 AM
Pic programming possible? perdesiz Linux - Software 1 09-23-2003 11:03 PM


All times are GMT -5. The time now is 01:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration