I don't need the editor to work or anything... just be able to compile and load it so I can debug, even at the asm level.
I thought that part still worked, but maybe I'll try treating it as an asm...
Type: Posts; User: tumbleweed; Keyword(s):
I don't need the editor to work or anything... just be able to compile and load it so I can debug, even at the asm level.
I thought that part still worked, but maybe I'll try treating it as an asm...
Not really that I can think of.
I thought I'd try and load it into MPLABX so I could debug it, but it's been so long since I've used it w/PBP I can't seem to get the two so I can build and debug...
On the Q43 (and most recent PIC18's with the VIC), the SFR registers have been moved down in memory starting at BANK 0,
so general purpose RAM no longer starts there. The access bank used to be part...
From what I can tell the basic interrupt structure looks to be ok.
Unfortunately, the way the various files are written, all of the ReEnterPBP routines don't appear in the .lst files, so it makes...
In your main file you need to uncomment the 'define use_lowpriority' and rearrange the DT-INTS setup section.
Try:
' ---------- Set up DT_INTS-18 Routine for Instant Interrupt handling ...
Oops, that one's on me! I forgot that they re-arranged things with the new VIC module and there's only GIE/GIEH and GIEL.
You can just kill that line.
I'm gonna have to take a closer look at...
... and one I forgot.
In your Timer0_Count routine, stop messing around with the PIE bits. You can't get another TMR0 interrupt while you're already inside the ISR.
Timer0_Count:
'...
I don't see anything wrong with ReEnterPBP-18LP.bas, but there are a few other things I noticed.
First off, as I said, you can't have just a low-priority interrupt.
If you don't define a...
Could be, but I don't have any PBP version even remotely up to date to test it with.
Could you post the .lst and .hex files that go along with that?
One thing I never see... the INTCON0.GIE bit...