View Full Version : Compile then test with Proteus?
allenf
- 4th July 2011, 01:12
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)
mister_e
- 4th July 2011, 01:15
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.
Archangel
- 4th July 2011, 01:44
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 :D, and then come back and ask for help (with the PICs, NOT the painting), and WELCOME TO THE FORUM !
HenrikOlsson
- 4th July 2011, 06:19
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.
mister_e
- 4th July 2011, 07:47
I'm curious to know if ISIS allow to debug the source code with latest PBP and MPASM...
Darrel Taylor
- 4th July 2011, 19:16
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/attachment.php?attachmentid=5737&stc=1&d=1309807487
mister_e
- 5th July 2011, 04:14
Thanks, I may have a 367,358,284,956th try some day. Couldn't be worst than before I guess.
Demon
- 22nd January 2012, 13:11
Moved from FAQ.
Robert
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.