Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: PIC programming using MPLAB/MPASMWIN software

  1. #1
    Join Date
    May 2007
    Location
    Mooresville, NC
    Posts
    7,554
    Post Thanks / Like

    Default PIC programming using MPLAB/MPASMWIN software

    I made up some new videos for programming PICs. They are more detailed and narrated. They show downloading and working with the Renard firmware, and the flash software of the programmer.
    With these videos, you will see that programming is a very simple task and something anyone can do. The videos are short and broke up into sections for quick reference. So.... here they are...............

    First thing to do.....

    Download and install MPLAB IDE software. (at the time of this edit, it is v8.92) MSASMWIN is bundled with MPLAB. Once done with the install, go to the program list and look for for the "Microchip" folder, MPASMWIN is in that folder.
    If using a PicKit 2 programmer, you will need the PicKit 2 stand alone software used in the video, it can be downloaded here at the bottom of the page. V2.61 at the time of this edit. If you need info on setting up the PicKit 2 , Here is the User's Guide.

    Now that you have the software done and the PicKit 2 setup, you can follow the videos.


    Downloading the .asm file and using MPASMWIN software to create a .HEX file

    http://www.jamesfamilychristmas.com/PICprogram1.swf


    Program the PIC using PicKit 2 flash software and generated .HEX file.

    http://www.jamesfamilychristmas.com/PICprogram2.swf

    ****EDIT**** in the video, I instruct to set the programmer at 5V, I have found that 4.9V is more reliable.

    New instructions for using the PicKit III by 'mmulvenna'

    Okay folks here it is. Dont be too critical as I threw it together pretty fast. This is only to program the chip using the "HEX" file. The first few screens would be the same for the "ASM" file but then you should be able to use Waynes videos for the "project creation".

    EDIT: You should also be able to use this for the diagnostic firmware, just change the file name that you select in the file browse.

    Hope this helps... and good luck. Happy PICkiting

    Old man Mike
    http://doityourselfchristmas.com/for...4&d=1264521468
    **** Notes... Links to these videos (and more info) can also be found in the Christmas Wiki : General Information and Tips ****
    Last edited by Wayne J; 02-06-2019 at 07:06 PM. Reason: removed the MPLABS videos... outdated, added new videos
    James Family Christmas - 1600 channels of SS Renard channels
    Website - http://jamesfamilychristmas.com/ <<broken
    Facebook - James Family Christmas


  2. #2
    Join Date
    May 2007
    Location
    Mooresville, NC
    Posts
    7,554
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    I added another video. This one is for the PicKit2 programmer software. Hope it helps.
    James Family Christmas - 1600 channels of SS Renard channels
    Website - http://jamesfamilychristmas.com/ <<broken
    Facebook - James Family Christmas


  3. #3
    Join Date
    May 2007
    Location
    Mooresville, NC
    Posts
    7,554
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    I removed the outdated MPLABS videos. The MPASMWIN software is much nicer and easier to use anyways. Updated the videos also.
    Last edited by Wayne J; 03-13-2012 at 11:02 AM.
    James Family Christmas - 1600 channels of SS Renard channels
    Website - http://jamesfamilychristmas.com/ <<broken
    Facebook - James Family Christmas


  4. #4
    Join Date
    Dec 2010
    Location
    New Albany, Pa
    Posts
    3
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    Programmed my first ever PICs today. Wayne thanks for the videos ... they helped alot.. Used a PICKIT 2 and a adapter from j1sys.com works great. To anyone newer than me trying to program PICs make sure you follow the instructions to a T... and make sure your jumpers on the adapter board are correct..( a bunch of trial and error)...Now to hook it all to Vixen and away we go.. ..

  5. #5
    Join Date
    Dec 2011
    Location
    The Landmass between NOLA and Mobile
    Posts
    368
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    Quote Originally Posted by tithonia1 View Post
    Programmed my first ever PICs today. Wayne thanks for the videos ... they helped alot.. Used a PICKIT 2 and a adapter from j1sys.com works great. To anyone newer than me trying to program PICs make sure you follow the instructions to a T... and make sure your jumpers on the adapter board are correct..( a bunch of trial and error)...Now to hook it all to Vixen and away we go.. ..
    Got mine yesterday and tried to flash a chip today. Went ahead and used MPASMWIN because the supplied MPLAB disk would not install ( probably because of anti-virus ). I did beat my head for a bit figuring out the jumpers then it hit me. Group C PIC ? Why not use the jumpers with C on them ? Duhhhh, my Homer Simpson moment LOL. Anyway, it worked fine and if I can do it, anyone can.

    One question though. I did the first one in diagnostic mode to test my board. So when I want to change the chip over to operational mode, do I have to erase it first or does the process just overwrite the old firmware? Thanks

  6. #6
    Join Date
    Nov 2010
    Location
    Placerville, CA
    Posts
    2,199
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    ALWAYS erase before programming. Always run a verify afterwards. If you try to program over an unerased part it will probably try to do the programming but only be able to change the bits that were in an erased state to their opposit state (I hate to say "programmed" state but that is the case). You get an unusable mess usually.

    Hope this helps.
    [I][SIZE=2]"Beam me up Scotty, there are only limited pockets of intelligent life on this planet!!"[/SIZE][/I]
    Communicating humor in a text only medium is an art form subject to imprecise interpretation by the audience...

  7. #7
    Join Date
    May 2007
    Posts
    5,341
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    In my experience the MPLAB software erases before programming and verifies after programming, no user intervention needed.
    Phil

  8. #8
    Join Date
    Dec 2010
    Location
    California
    Posts
    2,512
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    what pickit tool is best or better for doing this...i am search for one that works
    [B][I]MY Favorite Links:[/I][/B]
    [URL="http://doityourselfchristmas.com/wiki/index.php?title=Main_Page"][COLOR="red"]Christmas Wiki[/COLOR][/URL] | [URL="https://www.facebook.com/dancingofthelights"][COLOR="red"]My Facebook Page[/COLOR][/URL] | [URL="https://www.calvertimage.com"][COLOR="red"]My Website[/COLOR][/URL]
    _________________________________________
    [B]2013 Show[/B]
    1 - E682 not in use
    248 - Renardss Dimmable channels
    144 - Renard48lsd channels
    272 - channels in use
    40,000 lights synchronized and static

    50% assembled and displayed

  9. #9
    Join Date
    Sep 2008
    Location
    Baulkham Hills, NSW
    Posts
    2,605
    Post Thanks / Like

    Default

    Quote Originally Posted by P. Short View Post
    In my experience the MPLAB software erases before programming and verifies after programming, no user intervention needed.
    This must be a setting 'cause it isn't my experience with the fast pics.
    When i wanted to program them using the program button top RHS on home screen, it failed until i hit the erase button first.
    Matthew
    Sent from my GT-I9100 using Tapatalk 2
    [B][I]Matt[/I][/B]

    You too can become a Supporting member of DIYC.
    Check it out [URL="http://doityourselfchristmas.com/forums/payments.php"]here[/URL]

    I record my Blinky Flashy travels here: [URL="http://MyNoelLights.com"]MyNoelLights.com[/URL]

  10. #10
    Join Date
    Dec 2011
    Location
    The Landmass between NOLA and Mobile
    Posts
    368
    Post Thanks / Like

    Default Re: PIC programming using MPLAB software

    Quote Originally Posted by CaptKirk View Post
    ALWAYS erase before programming. Always run a verify afterwards. If you try to program over an unerased part it will probably try to do the programming but only be able to change the bits that were in an erased state to their opposit state (I hate to say "programmed" state but that is the case). You get an unusable mess usually.

    Hope this helps.
    Thanks Capt. I was kinda leaning towards that answer since I do recall seeing an "erase" button somewhere in the process.

    @ P & Matt : going back thru the process to check, the erase function was in the pickit 2 software during the write operation. I can't speak to MPLAB because I used MPASMWIN as per the video tutorial.
    @ griffixdc : Don't know the best because I am by no means an expert, but I used the pickit2 w/ ICSP14 adapter from j1sys. Hope that helps you out.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •