Author Topic: Beginnig PIC Advices  (Read 6939 times)

0 Members and 1 Guest are viewing this topic.

Offline VitassetTopic starter

  • Newbie
  • Posts: 2
  • Country: tr
Beginnig PIC Advices
« on: January 14, 2015, 11:50:25 am »
Hello guys :D I want to learn PIC mcu's but I dont know where to start(books,circuits briefly basics..) What are your advices ? Thanks.  :D
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Beginnig PIC Advices
« Reply #1 on: January 14, 2015, 11:59:53 am »
1. get a device and read its datasheet
2. get a pickit2 and start coding
3. google gooligum pic tutorial - the best, bar none.
================================
https://dannyelectronics.wordpress.com/
 

Offline picandmix

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: gb
Re: Beginnig PIC Advices
« Reply #2 on: January 14, 2015, 12:56:53 pm »

3. google gooligum pic tutorial - the best, bar none.

Seems not the case any more  - most tutorial areas seem blocked for free viewing / only for fee payers
( should have downloaded them long ago, as they were a good reference)


Some alternative free sites to view.

Also see the Stickys at the top of the Microprocessors forum

http://www.mikroe.com/chapters/view/14/chapter-1-world-of-microcontrollers/

http://www.winpicprog.co.uk/pic_tutorial.htm

[url=http://www.electro-tech-online.com/articles/nigel-goodwins-tutorials-in-c.467/]http://www.electro-tech-online.com/articles/nigel-goodwins-tutorials-in-c.467/
[/url]
« Last Edit: January 14, 2015, 12:58:34 pm by picandmix »
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8264
Re: Beginnig PIC Advices
« Reply #3 on: January 14, 2015, 03:03:44 pm »
1. get a device and read its datasheet
This cannot be emphasised enough. Almost everything you'll need to know about an MCU will be in the datasheet and supporting documentation. Don't forget to read the errata too! The memory programming specification isn't quite as important but it can clarify a few things about how the memory is laid out, so read that too...

In other words, where to start with PICs is microchip.com
 

Offline Meshka7

  • Contributor
  • Posts: 25
Re: Beginnig PIC Advices
« Reply #4 on: January 14, 2015, 04:59:47 pm »
Wrong. I don't think reading a 500 page reference is a good way to start. If you are short on money, buy a PICkit and want to learn assembly, check online tutorials. If you have some money to spare and like to program in C, buy a demo board and one of the "Flying with" books.
 

Offline picandmix

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: gb
Re: Beginnig PIC Advices
« Reply #5 on: January 14, 2015, 06:39:18 pm »
1. get a device and read its datasheet
This cannot be emphasised enough. Almost everything you'll need to know about an MCU will be in the datasheet and supporting documentation. Don't forget to read the errata too! The memory programming specification isn't quite as important but it can clarify a few things about how the memory is laid out, so read that too...



A newbie to Read all the Datasheet,   >:D  that should be qualified ; you need to be a member of Mensa or similar and have an IQ of at least 148 ! :palm:



Wrong. I don't think reading a 500 page reference is a good way to start. If you are short on money, buy a PICkit and want to learn assembly, check online tutorials. If you have some money to spare and like to program in C, buy a demo board and one of the "Flying with" books.

Agree with Meska , but there are free versions of C for Pics like XC8 which are more than capable of taking you to a good level.

Seems like Pic Assembly is making a comeback -  quite a few of us still use it,  will have to start a new sub-forum ;D

 

Offline BloodyCactus

  • Frequent Contributor
  • **
  • Posts: 482
  • Country: us
    • Kråketær
Re: Beginnig PIC Advices
« Reply #6 on: January 14, 2015, 06:55:16 pm »
get a pickit3, get a PIC32MX220 in DIP28 and go here

http://umassamherstm5.org/tech-tutorials/pic32-tutorials/pic32mx220-tutorials



-- Aussie living in the USA --
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Beginnig PIC Advices
« Reply #7 on: January 14, 2015, 10:06:49 pm »
I'm surprised there's so much variation in opinion here. Pickit 3, Gooligum and PIC10F320 would be my suggestion. Any 8-bit PIC to start really.
 

Offline johnboxall

  • Supporter
  • ****
  • Posts: 652
  • Country: au
  • You do nothing, you get nothing.
    • Books, services and more:
Re: Beginnig PIC Advices
« Reply #8 on: January 15, 2015, 02:31:29 am »
1. get a device and read its datasheet
2. get a pickit2 and start coding
3. google gooligum pic tutorial - the best, bar none.

+1 for the Gooligum system. David keeps updating and adding to the included material.
http://www.gooligum.com.au/shop/PIC-tutorials

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Beginnig PIC Advices
« Reply #9 on: January 15, 2015, 02:51:38 am »
PIC32 isn't even PIC, it's MIPS - why would you suggest it when someone asks about PIC?

Also... I don't see the benefit in restricting yourself to something like a PIC10F320 with 448 bytes of ROM. I mean, it's cool if you like to see what you can squeeze into that - I do too - but come on, the new millennium came a few days ago, we can upgrade now...
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline 22swg

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: gb
Re: Beginnig PIC Advices
« Reply #10 on: January 15, 2015, 10:28:41 am »
I would suggest you walk before you run... get hold of a 'Pickit 3 Debug express ' includes  44 pin demo board with  PIC18F45K20 .  download MPLABX data sheet and examples ... load of fun  :)

Edit ... what OS are you running , some issues with win 8 and pk3
« Last Edit: January 15, 2015, 10:32:06 am by 22swg »
Check your tongue, your belly and your lust. Better to enjoy someone else’s madness.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Beginnig PIC Advices
« Reply #11 on: January 15, 2015, 12:04:31 pm »
Quote
David keeps updating and adding to the included material.

I am glad that he is doing that. I suggested to him years ago that his stuff is so good that he should figure out a way to monetize it. Good to hear that he's charging for them now.
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Beginnig PIC Advices
« Reply #12 on: January 15, 2015, 12:08:45 pm »
If you want to pick specific chips, you want to pick a bigger chip (as big as you will ever need) with the most peripherals, so that you have the most flexibility.

In the lower end, I would recommend 16F193x or 18FxxK22.

However, my preferred PICs are the PIC24 family: lots of peripherals and a vectored interrupt controller. Developing code for those chips is much easier. So I would encourage you to think about that as well.
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Beginnig PIC Advices
« Reply #13 on: January 15, 2015, 12:21:45 pm »
I would stay away from PIC32, unless you have a specific reason to use them. I don't think there is much future for those guys.
================================
https://dannyelectronics.wordpress.com/
 

Offline BloodyCactus

  • Frequent Contributor
  • **
  • Posts: 482
  • Country: us
    • Kråketær
Re: Beginnig PIC Advices
« Reply #14 on: January 15, 2015, 03:27:52 pm »
the pic32 dip is great for beginners. can breadboard them up easy, lots of flash space and ram space and good set of peripherals, works perfectly fine with pickit3 and mplabx for debugging/writing code. good plib documentation. 40-50mhz on a dip28 chip, very nice!
-- Aussie living in the USA --
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Beginnig PIC Advices
« Reply #15 on: January 15, 2015, 03:41:00 pm »
But it's not a PIC! It's MIPS! PIC is only in the name... Sure, it's great, but it's irrelevant to a question about PICs...
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8264
Re: Beginnig PIC Advices
« Reply #16 on: January 15, 2015, 04:00:15 pm »
A newbie to Read all the Datasheet,   >:D  that should be qualified ; you need to be a member of Mensa or similar and have an IQ of at least 148 ! :palm:

Wrong. I don't think reading a 500 page reference is a good way to start. If you are short on money, buy a PICkit and want to learn assembly, check online tutorials. If you have some money to spare and like to program in C, buy a demo board and one of the "Flying with" books.
What is with this aversion to reading? No wonder I see so many MCU beginners asking questions about things that they would've known from reading the datasheet... :palm:
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Beginnig PIC Advices
« Reply #17 on: January 15, 2015, 04:12:35 pm »
What is with this aversion to reading? No wonder I see so many MCU beginners asking questions about things that they would've known from reading the datasheet... :palm:

It comes along with the Newbies Are Idiots mentality that I see from so many people, like the ones who think that the Ebers-Moll equation is a complicated mathematical monstrosity suitable only for use by "PHD physicists". It's ridiculous, condescending, and elitist ("don't you worry yourself with all the fussy little details, I, the Superior Engineer, shall handle all of that for you").

If you're going to use a part, read its manual. We all have to do it. An exception can be made for things with truly huge manuals - things like FPGAs, microcontrollers don't typically count - if you're willing to dive into the manual when you encounter something. Most of those "500 pages" are large items like tables anyway, it's not exactly heavy reading. Nobody's saying you have to fully read every digit of a "baud rate control register vs. baud rate" table - until you need to use the baud rate generator, that is.

If you can't handle reading a document that is specifically designed to explain things to you, perhaps you'd be better off finding something else to do.
« Last Edit: January 15, 2015, 04:14:43 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Beginnig PIC Advices
« Reply #18 on: January 15, 2015, 04:16:26 pm »
Quote
No wonder I see so many MCU beginners asking questions about things that they would've known from reading the datasheet.

Agreed. Datasheets are really the best thing to learn a mcu on.

I have told people countless times that if you are not willing or able to read a datasheet, you should find a job somewhere else. There is really no other way around it.
================================
https://dannyelectronics.wordpress.com/
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: Beginnig PIC Advices
« Reply #19 on: January 15, 2015, 07:38:43 pm »
PIC32 isn't even PIC, it's MIPS - why would you suggest it when someone asks about PIC?

Also... I don't see the benefit in restricting yourself to something like a PIC10F320 with 448 bytes of ROM. I mean, it's cool if you like to see what you can squeeze into that - I do too - but come on, the new millennium came a few days ago, we can upgrade now...

PIC10F320:
Single page of code and single page of memory so no PAGESEL and BANKSEL commands for the beginner to stumble upon. Plenty of codespace for blinky-light or simple relay control. Also available in SOT23-6 which is my favorite part about it. I think it's a good part to start out with. You can learn the basics of assembly on it and then move on to parts that are more complicated and writing for the C compiler. Even if you are writing in C I think it's good to start with a basic understanding of assembly.

I'm going to build a greenhouse control unit (when I get around to it) based on one of these little joys. They're great for simple stuff like "turn on relay two when ADC goes over X temp value".

Edit: I'm working with a PIC12F1840 right now. I really like this one, but I think it's more complicated than for beginners. Actually, so far I've really liked pretty much every PIC I've worked with.
« Last Edit: January 15, 2015, 07:40:32 pm by katzohki »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf