Ok so now... to the SIM!
Now that I'm pretty sure I have the software settled... Has anyone been able to simulate a PIC16F876A with MPLAB's Simulator? What's the trick? I think I have everything set up right, it doesn't complain, but when I run the compile option it opens the PBP editor and then nothing else happens... Anyone?
Bron
Ok I did a IDE Compile in PBP(Microcode Studio +) and the simulator started running after I exited manualy from PBP
For some reason it's stuck in this loop in PBPPIC14.LIB
CLRWDT? macro
ifndef NO_CLRWDT
clrwdt
endif
endm
hserinloop CLRWDT? ; Keep Watchdog timer clear
btfss PIR1, RCIF ; Check for char
goto hserinloop ; Loop till char
NOLIST
HSERINX_USED = 1
endif
Return
Is it looking for the watchdog timer?
I'll keep playing with the simulator but this isn't my code, it looks like junk PBP added from the PBPPIC14.LIB?
Last edited by Bronurstomp; - 27th June 2008 at 03:49.
Reason: Stuck in MPLAB SIM
The less you expect, the more you get.
Bookmarks