Defining MCU with MPASM


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,810

    Default Defining MCU with MPASM

    I decided after a long time of resistance to leave PM assembler and start using MPASM. Up to this moment I could not find a way to define the use of PIC type in my program like the usual

    @ device pic18fxxx

    in PM assembler.

    Thanks,
    Ioannis

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    HI, Ioannis

    I didn't find nor ... that way.

    BUT ... if you use The MPLAB Project Wizard ( you should !!! )... you define the processor there and do not need to define it in your program !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,810


    Did you find this post helpful? Yes | No

    Default

    Thanks Alain. When using Mpasm, to assemble my program, it is funny, I cannot bootload it to the PIC. It seems that the mcu should be defined in the Basic program. I'll have to dig further and see what causes this to happen.

    Ioannis

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    Ha ! Bootloaders and Hex files ...

    1) in MPLAB : Configure/Select Device

    2) Select your programmer

    2) " : FILE / Import " my bootloader.hex "

    3) " : View / Program memory ( optionnal ... but useful !!! )

    4) Program the bootloder ...


    Here it is ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,810


    Did you find this post helpful? Yes | No

    Default

    Hi Alain.

    I have already loaded the PIC with the appropriate bootloder hex code. It is working just fine with any program created from PBP with it's own assembler. But it is not working with Mpasm!

    Of course I can always load the new hex file without Bootloader, but...

    Ioannis

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,615


    Did you find this post helpful? Yes | No

    Wink

    I do not know any real Bootloading directly from MPLAB ...

    download AN 851 and its softs from Microchip Website ... interesting - and useful !!!

    do not forget to (copy into the "Program Files/P1618QP" directory)

    : http://ww1.microchip.com/downloads/e...618QP_v1_1.zip

    and select AN851 as a programmer ...

    For REAL Bootloaders ( free ... ) see here :

    http://www.etc.ugal.ro/cchiculita/so...bootloader.htm

    Alain
    Last edited by Acetronics2; - 24th May 2007 at 13:25.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,810


    Did you find this post helpful? Yes | No

    Default

    Thanks, I'll check it. Indeed interesting!

    Ioannis

Similar Threads

  1. 12F675 MCLR directive MPASM
    By OLDSCHOOL in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th May 2008, 01:29
  2. MPASM vs PM
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th October 2007, 01:29
  3. MPASM 18F4550 getting started
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th September 2007, 23:59
  4. 18F8722 and MPASM confusion!
    By Jackson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 2nd April 2006, 01:24
  5. Converting to MPASM
    By btaylor in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th November 2005, 01:35

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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