Connect with us

PIC guidance needed

Discussion in 'Microcontrollers, Programming and IoT' started by AlenZGB, Mar 3, 2014.

Scroll to continue with content
  1. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    I want to star programming PIC microcontrollers.
    Any guidance what programmator to buy or not to buy,
    which PIC should i use as a begginer in this area?

    :rolleyes: :cool:
     
  2. jpanhalt

    jpanhalt

    426
    4
    Nov 12, 2013
    What language do you intend to use, C, Basic, or Assembly?

    John
     
  3. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    For now the easiest one :D
    Because its my first one
     
  4. jpanhalt

    jpanhalt

    426
    4
    Nov 12, 2013
    I suggest you read about the three languages I mentioned, or at least compare C with Assembly. Many people come to PIC controllers already competent in C, and they continue to use that language. Microchip is designing its newer PIC's to be "optimized" for C. And clearly, C has become the dominant language.

    When I started with PIC's I had no experience with C, and my experience with Basic was more than 25 years in the past. So, I started with Assembly on a simple 12F5xx chip. There are lots of tutorials for PIC Assembly (MPASM). I still enjoy Assembly. The reason I would suggest a simple, baseline chip like that to start, assuming you are using Assembly, is that you don't have to worry about about turning off analog inputs and various peripherals that one has to do with mid-range, enhanced mid-range, and higher chips.

    Here's a discussion of Microchip's 8-bit chips: http://www.microchip.com/pagehandler/en-us/family/8bit/

    John
     
  5. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    Thanks for advice.
    i `programmed` Microchip 93c46/56/66B i think, they are very common in car key coding.
    Thats not complex as this programming is but, its some kind of star i think.

    Anyways ill google C and Assembly and ill let you know, i probably will have few question.
     
  6. nges

    nges

    16
    1
    Feb 21, 2014
    personnally i use the microC pro for pic to program pics. it also very easy to use and also has alot of already made libraries that you draw inspiration from.
    There is a trial version that you can use to program up to about 2k of words.
    its really fun to also try this one. You can download this at http://microcontrollershop.com/product_info.php?products_id=5045
     
  7. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    thanks for tips, i googled alittle around, and i think ill start with C language programming.
    and decided to try with 12F508, i order programmer JDM for few bucks, hope it will work :D



    I downloaded the program. looks good.
    thanks.


    Im on study with this tutorial,
    watching all the parts of tutorial. Any other tutorial suggestion is welcomed.
     
  8. p.erasmus

    p.erasmus

    60
    0
    Jul 18, 2013
    The people from mikroC has books to program PIC's and the mikroC compiler ,the books are free to read online with examples
    here
    http://www.mikroe.com/pic/books/
     
  9. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    Nice, thanks.
    guess this will be busy weekend for me :D
    lots of learning ;)
     
  10. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    Any ways to program motor to stop when cross on obstacle,drawing more amps or something ?
     
  11. jpanhalt

    jpanhalt

    426
    4
    Nov 12, 2013
    You can put a current sense resistor (small value, usually <1 ohm) in the motor supply circuit and monitor the voltage across it. Not sure how your motor is hooked up or how you are controlling it. If you post a schematic, we can be more specific.

    John
     
  12. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    Thanks, so far i dont have any schematic. Gathering info and waiting for PIC programmer to
    arrive. Its kinda build in progress :D
     
  13. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    I got my PIC programmer, K150 and when i use the software it wont work,
    it said The board is not responding,
    I install drivers for it.

    Any help with this?
     
  14. jpanhalt

    jpanhalt

    426
    4
    Nov 12, 2013
    Are you using ICSP mode? Do you have that setting selected and power to the board (if needed)?

    John
     
  15. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    When i go into ISCP mode it said Please select a processor and i can only press ok.
    and nothing happens
    I downloaded new drivers for that and still nothing
    i mean same thing
     
  16. jpanhalt

    jpanhalt

    426
    4
    Nov 12, 2013
  17. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    Cant figure out where to do that,
    guess google is my friend :/
     
  18. jpanhalt

    jpanhalt

    426
    4
    Nov 12, 2013
    This image is from the manual I linked to:
    Capture.PNG

    John
     
  19. AlenZGB

    AlenZGB

    174
    5
    Feb 19, 2014
    didnt think that microkontroller is called processor :/

    but still nothing,crap.
    guess ill have to sleep on this one, maybe ill be smarter tomorrow
     
  20. jpanhalt

    jpanhalt

    426
    4
    Nov 12, 2013
    I' d be happy to program it for you, if you are a simple post away. I use an ICD3 from Microchip. Which processor are your using?

    John
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-