So, while I can't recommend a book myself, hopefully those are some good leads.

  • Thread starter Thread starter kschong
  • Start date Start date
AI Thread Summary
To learn about the PIC18F series microcontroller, it's essential to first grasp basic C programming and understand the microcontroller's block diagram, which can be found in its datasheet online. A development board and a programmer are recommended for practical experience. Users should ensure they have a compatible C compiler, such as Microchip's C18 or CCS Compiler, as assembly language can provide deeper hardware insights but may be more complex. For learning resources, the C Programming Wiki and O'Reilly's "Practical C Programming" are suggested, along with classic texts like Kernighan and Ritchie's book. Familiarity with these resources will aid in projects like controlling robots or cansats using the PIC18F.
kschong
Messages
5
Reaction score
0
Hi, now i want to learn about the PIC18F series microcontroller. Can anyone teach me where i need to learn 1st? Is it the C programing or the structure of PIC18F? Can introduce me some reference source or book? Thanks. ^^
 
Engineering news on Phys.org
you need to be familiar with basic C, and then need to learn the basic block diagram of the PIC to get the idea of its topology or layout. This can be found in the datasheet of the PIC, easily found on the internet. Also it's a good idea to read it from top to bottom.

might need a development board, and the programmer too,

look around this site - it has pretty much everything you need.

www.sparkfun.com
 
Do you, in fact, have a C compiler for the PIC18? Something like Microchip's own C18 compiler, or the CCS Compiler, or some such? Because otherwise, you should be using assembly (the opcodes are in the back of any of the PIC18 datasheets--the full sized several hundred page ones, not the 20 page 'brief introduction' documents). If you were using an ATMEL, there would be the GCC compiler instead (there is no official GCC port to PICs because of underlying design constraints).

From a pedagogical (i.e. educational) point of view, assembly language is good because it gives you a deeper understanding of what happens at the hardware level. From a functional point of view, it's probably easier to bang something out and debug C code.

Note that, if you are a student, you can get a student evaluation version of the C18 compiler (from Microchip) which, when it expires after a few months, is still functional, if not as optimized as the full version (this was true as of a few years ago, at any rate):
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014&part=SW006011

EDIT: There are other threads which mention PIC-derived development boards which are easier to work with, and offer, for instance BASIC support. Perhaps someone will mention one of those later in this thread, or point out one of the preexisting ones?
 
Last edited by a moderator:
Thanks. Actually i got CCS program and the MPLAB C compiler, i want to learn how to control a robot or cansat by using the PIC18F. May i have any books reference for the basic C programming?
 
kschong said:
Thanks. Actually i got CCS program and the MPLAB C compiler, i want to learn how to control a robot or cansat by using the PIC18F. May i have any books reference for the basic C programming?

You could try the C Programming Wiki book:
http://en.wikibooks.org/wiki/C_Programming

A (professional) programmer friend of mine is a big fan of the O'Reilly series of books, which happens to have Practical C Programming, Third Edition by Steve Oualline:
http://oreilly.com/catalog/9781565923065?CMP=AFC-ak_book&ATT=Practical+C+Programming,

Looking at the Amazon page for that, there seem to be a few higher-ranked introductory C programming books than that, including the 20-year old Kernighan and Ritchie, which still seems to be quite popular:
https://www.amazon.com/dp/0131103628/?tag=pfamazon01-20
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top