Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 4th November 2009, 09:44 PM   #1
Default which pic to use

Im interested in getting into pic programming, I have taken a few courses in c++ so i have decided to lean how to program the pic in C, and i have chosen to use the CCS PCWHD software. Unless anyone has a better suggesting?
My question is which pic should I use to start with. Im hopping to be able to learn how to convert the analogue output of hall effect sensors, accelerometers, temperature sensors etc. into digital and feed that information to a LCD display or maybe even a computer via usb. Thanks in advance
rkelly47 is offline  
Old 5th November 2009, 04:56 AM   #2
Default

Quote:
Originally Posted by rkelly47 View Post
Im interested in getting into pic programming, I have taken a few courses in c++ so i have decided to lean how to program the pic in C, and i have chosen to use the CCS PCWHD software. Unless anyone has a better suggesting?
My question is which pic should I use to start with. Im hopping to be able to learn how to convert the analogue output of hall effect sensors, accelerometers, temperature sensors etc. into digital and feed that information to a LCD display or maybe even a computer via usb. Thanks in advance
you are aware that there are many other as good and better microprocessors?
stevech is offline  
Old 5th November 2009, 07:08 AM   #3
Default

Quote:
you are aware that there are many other as good and better microprocessors?
This may be the case stevech, but the Microchip PIC range has extensive support and many people use them and are confortable with them.

Becasue of this, the process of learning is made easier becasue many people will be able to answer any questions a newbie may have about a PIC.

This is just my opinion of course...

In answer to rkelly47's question,
I would start with the PIC16F84A or the PIC16F628A
These are both 18 pin devices and the 628A is a more updated version of the 84A, although the 84A is still in use.

However they do not have ADC capabilities, but when it comes to support, you wont run out!
If you want to go straight to a PIC device that has ADC capabilities, more pins (40) and almost as much support, you can opt for the PIC16F877A.

This is the programmer i use...PIC Programmer
Once you know how to write the code, the rest is simple when you know how.

You will find a lot of information in the Microchip datasheets.
There is also the instruction set and example code.
But, It is all in assembly language.
Presonally I started with and continue to use assembly language.
Although a lot of people seem to code in C.
There is a user called atomsoft who i have noticed will help anyone with their C code when ever he can.
As well as many others in this forum of course.

Good luck to you,
hope this answers at least one of your questions...
__________________

jakeselectronics is offline  
Old 5th November 2009, 07:29 AM   #4
Default

Quote:
Originally Posted by rkelly47 View Post
Im interested in getting into pic programming, I have taken a few courses in c++ so i have decided to lean how to program the pic in C, and i have chosen to use the CCS PCWHD software. Unless anyone has a better suggesting?
My question is which pic should I use to start with. Im hopping to be able to learn how to convert the analogue output of hall effect sensors, accelerometers, temperature sensors etc. into digital and feed that information to a LCD display or maybe even a computer via usb. Thanks in advance
If your budget extends to $139 I would just buy one of these;


EasyPIC6 PIC Microcontrollers Development System Tool(programmer, debugger, manual, examples) mikroElektronika

The MikroC compiler is good for PIC because it handles bit variables very well and it is free for small PIC projects up to 2K rom. It has ready to use libraries for all the sensor devices you mentioned and LCD and serial comms to PC, USB comms etc etc.
Mr RB is offline  
Old 5th November 2009, 07:32 AM   #5
Default

I agree with Jake's assessment except I would recommend newer chips. For 18 pin the 16F88 as this has ADC capability. For 28/40 pin the 16F886 and 16F887 as these are the newer versions of the 16F876/7.

Mike.
Pommie is online now  
Old 5th November 2009, 08:00 AM   #6
Default

I think i better update my bits boxes
__________________

jakeselectronics is offline  
Old 6th November 2009, 12:47 AM   #7
Default

Quote:
Originally Posted by jakeselectronics View Post
This may be the case stevech, but the Microchip PIC range has extensive support and many people use them and are confortable with them.
.
Not pushing any vendor, but "which PIC should I use" is like, "which Chevy should I drive"
stevech is offline  
Old 6th November 2009, 04:43 AM   #8
Default

IMHO I'd skip the 16F and start with the 18F chips. None of the oddities that the old 14bit core series have.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 6th November 2009, 04:50 AM   #9
Default

thanks for the input, i've been doing some research and i've decided to start with the 18f, does anybody know of any good beginner tutorials or lessons?
rkelly47 is offline  
Old 6th November 2009, 05:18 AM   #10
Default

Read the two issues of JPUG on my site. Also worth noting is Swordfish BASIC and C18
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 6th November 2009, 06:44 PM   #11
Default

If you change your mind and want to start with PIC16F628A, check my blog.

- Raj
Experiments with PIC16F628A
rajbex is offline  
Old 6th November 2009, 07:23 PM   #12
Default

Quote:
Originally Posted by rkelly47 View Post
thanks for the input, i've been doing some research and i've decided to start with the 18f, does anybody know of any good beginner tutorials or lessons?
Try this for C18 or BoostC C on the PIC18
http://www.rocklore.com/3v0/tutorials/JunebugTut1C3.pdf

3v0
__________________
Please post questions to the forums. PM's are for personal communication.

BCHS/3v0's Tutorials
Junebug USB PIC programmer kit., USB Bit Whacker,
The 15 Minute Printed Circuit Board! (+drill time)
3v0 is online now  
Reply

Tags
pic

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Need to Program PIC 16F628(A), how To Make PIC PROGRAMMER amodpg Micro Controllers 1 9th May 2008 05:58 PM
Bunch of questions regarding PIC, PCB fabrication, LCD interfacing and PIC-C xieliwei Electronic Projects Design/Ideas/Reviews 9 3rd May 2008 10:12 AM
PIC Start Time Problem - PIC 16F628A Suraj143 Micro Controllers 10 22nd May 2007 04:00 PM
User Interface using PIC 16F877 and PIC PLUs plus 2 demo aidantmurphy Micro Controllers 3 21st December 2004 09:24 PM
new enntry for pic plz link me to pic source websites vijaya Micro Controllers 2 20th March 2003 09:12 PM



All times are GMT. The time now is 06:20 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker