Compile then test with Proteus?


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2011
    Posts
    3

    Default Compile then test with Proteus?

    Can i compile these without a programmer in place and "test"them in proteus sim first or not

    sorry if its a stupid question. but after a year of trying and over 50 pics later i am about to bin the lot and take up golf (with is even more boring than spending hours writing something only to blow a chip)

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


    Did you find this post helpful? Yes | No

    Default Re: ??? can I

    Yes you can, Proteus will try to do his best with any .HEX file. Not sure how to deal with Source Code debuging if possible at all.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default Re: ??? can I

    Quote Originally Posted by allenf View Post
    Can i compile these without a programmer in place and "test"them in proteus sim first or not

    sorry if its a stupid question. but after a year of trying and over 50 pics later i am about to bin the lot and take up golf (with is even more boring than spending hours writing something only to blow a chip)
    I think "golf" might be a little extreme, now go paint the kitchen so you can watch the paint dry , and then come back and ask for help (with the PICs, NOT the painting), and WELCOME TO THE FORUM !
    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.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: ??? can I

    What are you trying to do? What are you "driving" with the PIC?
    PICs are actually quite rugged. You can't really blow them up solely by writing "bad" code, there must be some hardware problem which, perhaps in conjunction with bad code, destroys them. (Like having two outputs tied together and driving one high and the other low (not sure that would actually destroy it either but it's not good))

    I've played with these things for ~15 years and I honestly can't remember ever destroying one except when I accidently powered one with 24V.

    If you're doing high power stuff (like the ever so popular 3-phase inverter stuff) you really need to get the hardware and PCB layout correct.

    Proteus might show if the code works or not but I don't think it'll "destroy" the PIC in case there's a designflaw in the hardware causing intermittent problems.

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


    Did you find this post helpful? Yes | No

    Default Re: ??? can I

    I'm curious to know if ISIS allow to debug the source code with latest PBP and MPASM...
    Steve

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

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: ??? can I

    Yes you can.

    You can use it stand alone to step through the source code.
    Or use it in MPLAB to single step and watch the variables.

    http://www.picbasic.co.uk/forum/atta...1&d=1309807487
    Attached Images Attached Images  
    Last edited by Darrel Taylor; - 4th July 2011 at 20:29. Reason: Added ISIS/MPLAB image
    DT

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


    Did you find this post helpful? Yes | No

    Default Re: ??? can I

    Thanks, I may have a 367,358,284,956th try some day. Couldn't be worst than before I guess.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default Re: ??? can I

    Moved from FAQ.

    Robert

Members who have read this thread : 0

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