PBP for dsPIC 16bit??


Closed Thread
Results 1 to 34 of 34

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    Hi,

    The subject was discussed some times ago ...

    looked Melabs had no real project for 16 bits ...

    May be Charles Leo could make a little " update " about the future ...

    BTW CCS C compiler also is a possibility ( take care to recent versions > 4.110 : somewhat buggy ...)

    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 " !!!
    *****************************************

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    And why would 16-bit PICs be interesting? A PIC16 is rated at 5MIPs and the fastest PIC18s are rated 16MIPs (typically 10MIPs). The 16-bit PIC24/dsPIC are rated from 16-40MIPs. However, MIPs (million-instructions/second) are very misleading and do not not take into account things like instruction and data sizes. So how, for example, does a 10MIPs PIC18F97J60 compare to a 16MIPs PIC24FJ64GA004 - is the PIC24FJ 1.6x faster? In real world testing and benchmarking, it is more like 13-23x. Comparing PIC32s which are rated at 40-80MIPs, the disparity gets even larger. Instead of 4-8x that of a PIC18, it can be as much 160x. Take a look at the CoreMark figures (last column) in the table below.
    Attached Images Attached Images  
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

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


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    (post removed)
    Last edited by Demon; - 15th May 2011 at 22:18.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  4. #4
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    (post removed)
    Last edited by Demon; - 15th May 2011 at 22:18.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    (post removed)
    Last edited by Demon; - 15th May 2011 at 22:18.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  6. #6
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    (post removed)
    Last edited by Demon; - 15th May 2011 at 22:18.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    (post removed)
    Last edited by Demon; - 15th May 2011 at 22:19.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Post Re: PBP for dsPIC 16bit??

    Quote Originally Posted by Acetronics View Post
    ...
    looked Melabs had no real project for 16 bits
    ...
    I wouldn't make a statement like that (EDIT: Until Microchip closes the production line or issues a formal statement).

    http://www.microchip.com/en_US/family/16bit/index.html

    Microchip’s 16-bit, PIC24 MCUs and dsPIC® Digital Signal Controllers provide designers with an easy upgrade path from 8-bit PIC® microcontrollers and a cost effective option to 32-bit MCUs. The broad product line includes everything from eXtreme Low Power microcontrollers to high performance digital signal controllers. Combined with hardware and free software these 16-bit products make the design of Control, mTouch™ Sensing, Graphics, Connectivity, Digital Power Conversion, Smart Sensing and Motor Control solutions easy to implement.

  9. #9
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    Quote Originally Posted by Demon
    ...So, is it possible that finding a programmer that generates INHX32 hex files is the only hurdle to using PIC Basic Pro on dsPIC devices?

    Simple answer - no. Programmers do not generate INHX32 files - that is the job of the compiler. The files required by a PIC12/16/18 is very different from that of a dsPIC. While it may be possible to take a
    PIC12/16/18 HEX file and burn it into a dsPIC, it will not do what you expect it to.

    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  10. #10
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    Quote Originally Posted by rmteo View Post
    Simple answer - no. Programmers do not generate INHX32 files - that is the job of the compiler.
    ...
    Ok, my mistake.

    If this is from 18F2550.INC in the PBP folder:

    Quote Originally Posted by Demon View Post
    ...
    LIST p = 18F2550, r = dec, w = -311, w = -230, f = inhx32
    ...
    Then it will be used by compiler right?
    (Mecanique Studio Plus, MPLAB or whatever alternatives if there are any)

    So, wouldn't you still end up with an INHX32 hex file anyways?

  11. #11
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Question Re: PBP for dsPIC 16bit??

    (just had a thought)

    Or is it more an issue of how the commands are structured within the hex file?

    The layout is compatible, but the commands are not.

  12. #12
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    That is the "file format" same as pdf, doc,pbp,xls,dwg and so on.

    But the content will not be correct. At best you will get an eight bit program to run on a 16 or 32 bit processor. This will not be too good. For instance, when we declare a WORD variable, the compiler generates code to make the uP act on the WORD in multiple BYTES. The 16 bit uP would not need the extra overhead of manuiplating the BYTES since it can handle WORDS. But the program would have it anyway since it was compiled for an eight bit uP.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  13. #13
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    Quote Originally Posted by cncmachineguy View Post
    That is the "file format" same as pdf, doc,pbp,xls,dwg and so on.

    But the content will not be correct. At best you will get an eight bit program to run on a 16 or 32 bit processor. This will not be too good. For instance, when we declare a WORD variable, the compiler generates code to make the uP act on the WORD in multiple BYTES. The 16 bit uP would not need the extra overhead of manuiplating the BYTES since it can handle WORDS. But the program would have it anyway since it was compiled for an eight bit uP.
    PBP could very well have a separate compiler switch like it does for longs to switch up to 16 bit compiler, yeah it would probably be a a complete rewrite from the code in an 8 bit compiler but the interface could remain the same and use the same syntax. Look at how similar "C" compilers are for each series. All said I think it would be Do able, however; I think the upgrade price would be steep, I think it would HAVE to be. My thoughts are it would be worth it so as not to need retraining in " C ".
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  14. #14
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: PBP for dsPIC 16bit??

    You can start right now with assembler or C... it's free (with some limitations).

    If you already mess with 10,16,18 series, then you'll discover PIC24, DsPIC, PIC32 assembler is far different... not to mention the extra features and architecture.

    Download a datasheet... then oh surprise, you also need to download the family common datasheet for x specific section of the internal peripherals.

    Yes it is a complete rewrite, no it's not simple... and no you don't need to stick to C, there's already Basic compilers available.

    On the long run, you may find it handy to know C.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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