Thanks! That seems to have done the trick. I'm using MicroCode Studio Plus, is there anyway to see what variables are stored in what banks?
Also, more importantly, I'm not currently saving/restoring the FSR register when I go into my interrupt service routine. I'm not sure if any of the PBP commands use indirect addressing, do they?
If they do, I can do the following:
Code:
'create fsrsave
fsrsave VAR byte bank0 system 'What does the "system" do anyways?
...
ASM
...
movf FSR,W
movwf fsrsave
...do the routine
...at the end, restore stuff, and then before retfie
movf fsrsave,W
movwf FSR
retfie
Right? I'm learning so damn much from this project. It's not even an electrical engineering project, it's a mechanical engineering project, but I like to take it to the next level to learn more
.
Thanks,
Matt
Bookmarks