PIC32 assembler

Author
Id
New Member
  • Total Posts : 19
  • Reward points : 0
  • Joined: 2008/04/04 12:53:15
  • Location: 0
  • Status: offline
2008/04/04 13:26:12 (permalink)
0

PIC32 assembler

Hello. Im looking for manual or directives. Help me, please.
#1

4 Replies Related Threads

    PIC32explorer
    Starting Member
    • Total Posts : 54
    • Reward points : 0
    • Joined: 2008/03/07 11:38:31
    • Location: 0
    • Status: offline
    RE: PIC32 assembler 2008/04/04 16:26:47 (permalink)
    0
    Hi Id,
        the PIC32 like most 32-bit microcontrollers is ideally designed for programming in a high level language like C or C++, but if you are absolutely thirsty for performance I can understand your desire to get to know the MIPS core assembly language.
    A good starting point could be: MIPS Assembly Language Programming (Paperback) by Robert Britton
    ( ISBN-10: 0131420445 or ISBN-13: 978-0131420441)
    You can find it on Amazon new or used as well as I am sure in many other bookstores ...

    Hope this helps

    Lucio



    #2
    zardoz1
    Super Member
    • Total Posts : 1852
    • Reward points : 0
    • Joined: 2005/07/09 08:03:28
    • Location: 's-Hertogenbosch, The Netherlands
    • Status: offline
    RE: PIC32 assembler 2008/04/04 22:36:38 (permalink)
    0
    but if you are absolutely thirsty for performance I can understand your desire to get to know the MIPS core assembly language.

     
    In general when working with any microcontroller, one should understand its assembly language. As far as performance is concerned, the compiler is hard to beat. But even when using assembly the 'compiler' (assembler) will take your code and otptimize it unless you tell it explicitly not to (set noreorder).
     
    Performance for PIC32 is a joint venture between the PIC32 and the compiler/assembler.
     
    You have to study the ordering of statements to prevent stalls like when loading a register, no use it as an address pointer in the next instruction since this will cause a slight delay. Furthermore there are the branch delay slots, the instruction immediatelly following a branch is executed, whether the branch is taken or not. This can bring you performance when used right. Watch out for the branch likely instructions where the instruction in the branch delay slots is only executed if the branch is taken.
     
    A very good book is See MIPS Run 2nd edition by Dominic Sweetman.


    AVIX
    the PIC32 & dsPIC/PIC24 RTOS with:
    - Zero Latency Interrupts
    - The best performance!
    - Integrated Power Management
    Download here: http://www.avix-rt.com/
    #3
    Id
    New Member
    • Total Posts : 19
    • Reward points : 0
    • Joined: 2008/04/04 12:53:15
    • Location: 0
    • Status: offline
    RE: PIC32 assembler 2008/04/04 23:46:26 (permalink)
    0
    Thank you very much Smile
    #4
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PIC32 assembler 2008/04/05 19:11:41 (permalink)
    0
    Maybe SPIM site and the links can be useful as well. I have not dealt with PIC32 too much yet though.
    http://pages.cs.wisc.edu/~larus/spim.html

      USB_Links and libusb
    #5
    Jump to:
    © 2017 APG vNext Commercial Version 4.5