Hot!new to mplab ide 5.15 (my last was mplab10)

Author
rnewman
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2003/11/07 12:39:53
  • Status: offline
2019/03/23 14:56:03 (permalink)
0

new to mplab ide 5.15 (my last was mplab10)

I used microchip MCUs from 1990 till about 2008.
I still have old ice & debuggers
My last debugger was pickit3
I just purchased pickit4 and just installed mplab ide v5.15 in both win7 and win10 computers
One of the problems when I left off with init/startup code.
FYI I only used/knew assembly code.
Is there sample code to get each mcu initialized with bare minimum code for modules like uart, interrupt disabled, tris, etc. ????
Right now I have a pic16f18854 I want to play with on an explorer-8 board.
Thanks,
Ray
 
#1

13 Replies Related Threads

    qhb
    Superb Member
    • Total Posts : 9657
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 15:11:48 (permalink)
    +2 (2)
    No, they are pushing you towards C, with the MCC package used to generate the code.
    I'm curious about your mention of MPLAB10.
    The final version of MPLAB was 8.92, before it jumped to MPLABX 1.0
     
    MPLABX contains a window to help you generate the correct CONFIG settings.
    You have to start an assembly project, then do what is described here:
    The easy way to set CONFIG bits in your source using MPLABX
     
    Interrupts start off disabled. Setting TRIS registers is still the same as it was in your old chips.
     
    Note, the PK4 is not a mature product yet.There's still a few anomolies, and it does not support as many chips as the PK3 yet.
    You can still use your PK3.
     
    #2
    rnewman
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2003/11/07 12:39:53
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 16:02:00 (permalink)
    0
    MPLAB IDE v10 I think was beta
    but mostly MPLAB IDE v7.5
    I used to write large init files for every option byte with bit set/clear for description.
    There was some sample code back then for doing just that for each chip.
     
    #3
    qhb
    Superb Member
    • Total Posts : 9657
    • Reward points : 0
    • Joined: 2016/06/05 14:55:32
    • Location: One step ahead...
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 16:09:48 (permalink)
    +1 (1)

    There was some sample code back then for doing just that for each chip.

    Indeed.
    There's so many chips now, they don't do a file for every one.
     
     
    #4
    katela
    Super Member
    • Total Posts : 1191
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 16:13:17 (permalink)
    +2 (2)
    This Microchip Developer help site has got lot of information to get started: http://microchipdeveloper.com/
     

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #5
    rnewman
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2003/11/07 12:39:53
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 16:15:08 (permalink)
    0
    I have two pickit3 but when I went to run self test it could not be found.
    Do I need to download a driver for pickit3 in windows?
    I seem to remember to not plugin pickit3 until mplab running???
    I did not but still can not find.
    :-(
     
    #6
    rnewman
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2003/11/07 12:39:53
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 17:16:52 (permalink)
    0
    I guess I need a simple project for this mcu to build from there.
    GUI is not the same I worked with before.
    any suggestions?
    #7
    katela
    Super Member
    • Total Posts : 1191
    • Reward points : 0
    • Joined: 2013/06/11 05:25:18
    • Location: South Africa
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 17:40:45 (permalink)
    +1 (1)
    These Microchip Minutes series will get you started with simple projects with MCC: https://www.youtube.com/playlist?list=PL9B4edd-p2ahRAG3QFVtrbtJf8HJH0zSZ
     

    Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
    YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
    #8
    rnewman
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2003/11/07 12:39:53
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/23 18:59:55 (permalink)
    0
    Wow. I was so used to building module functions then nesting them in subroutines.
    I downloaded the demo sample for explorer-8 and for what it demos the actual code is huge.
    I was used to small program space and fast execution but demo has so much redundancy. :-(
     
    #9
    rnewman
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2003/11/07 12:39:53
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/24 10:21:22 (permalink)
    0
    qhb
    No, they are pushing you towards C, with the MCC package used to generate the code.
    I'm curious about your mention of MPLAB10.
    The final version of MPLAB was 8.92, before it jumped to MPLABX 1.0
     
    MPLABX contains a window to help you generate the correct CONFIG settings.
    You have to start an assembly project, then do what is described here:
    The easy way to set CONFIG bits in your source using MPLABX
     
    Interrupts start off disabled. Setting TRIS registers is still the same as it was in your old chips.
     
    Note, the PK4 is not a mature product yet.There's still a few anomolies, and it does not support as many chips as the PK3 yet.
    You can still use your PK3.
     


    Going through my archive drives I only can find mplab 7.6 in 2007. Bad memory, I guess.
    #10
    rnewman
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2003/11/07 12:39:53
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/24 16:20:13 (permalink)
    0
    I am just looking for a project that I can use in mplabX ide of assembly code to just blink a led on a port pin.
    I have a pic16f18854 on a explorer-8 board and have both pickit3 or pickit4.
    I just need help to get started.
    maybe xc8 build project that generates assembly language?
    Please,
    Thanks,
    Ray
     
    post edited by rnewman - 2019/03/24 16:24:35
    #11
    mpgmike
    Senior Member
    • Total Posts : 113
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/25 05:53:37 (permalink)
    +1 (1)
    katela
    This Microchip Developer help site has got lot of information to get started: http://microchipdeveloper.com/
     

    I didn't know about that!  Bless your heart, and Thank You!!
    #12
    Jams100001
    Starting Member
    • Total Posts : 54
    • Reward points : 0
    • Joined: 2018/04/12 13:37:33
    • Location: MCHP Chandler
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/26 08:27:04 (permalink)
    0
    Ray,
     
    Unfortunately, there isn't a magic pill for this one the closest your going to get is the MCC Microchip Code Configurator. The only issue the code MCC generates is in C. MCC makes it easy to set up most of the microcontroller by just clicking on what you want and click the generate button and it will generate all the setup code for your project. 
     
    Then for blinking an LED all you have to do is write the code for that in the main.
     
    Jamus
    #13
    Mysil
    Super Member
    • Total Posts : 3295
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: new to mplab ide 5.15 (my last was mplab10) 2019/03/27 00:19:21 (permalink)
    0
    Hi,
    Here is a minimal blinking LED project in MPLAB X v5.15 and XC8 cmpiler v2.05.
     
    It have been run in Simulator and on a Curiosity board with a PIC16F18875,
    and have a configuration for Explorer 8 board with PIC16F18854.
     
    When project have been unpacked and opened in MPLAB X,
    use the selection field in MPLAB X Toolbar, to select which configuration to use: 
    Simulator, Explorer8_28, or Curiosity_HPC
     
    You may then use debugger to step or run the code.
     
    In lower lefthand quarter of MPLAB window, in lefthand margin of 'project' - Dashboard,
    is icon with a spanner, nut and bolt.
    This will open 'Project Properties', a big dialogbox with lots of settings.
    You may select what debugging / programming tool to use,
    or change to use a different PIC device, or compiler version.
    In lefthand part of Project Properties box, there is a three with detail settings for compiler, linker and debug tool.
    Note that there are separate settings for each configuration alternative,
    so make sure that you work with settings for the configuration alternative that you are actually using.
     
     See the attached zipfile.
     
    Regards,
        Mysil

    Attachment(s)

    Attachments are not available: Download requirements not met
    #14
    Jump to:
    © 2019 APG vNext Commercial Version 4.5