I am using the PIC18F series processor and was wondering how I use high priorty interrupts with the CCS compiler?
Thanks
Trampas
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Thu Aug 05, 2004 8:24 am
Search the board. That question has been asked within 2 days.
Trampas Guest
Posted: Thu Aug 05, 2004 10:34 am
I read the post and found the problems I was having. Or at least some of them.
Specifically I noticed in the disassembly that CCS does not save any registers for the fast interrupt. I would have expected that they would at least save the ones twiddled with like status register...
Second I found that you can only have one fast interrupt which of course is a pain in the butt. But I guess you could hack it by using the fast interrupt as your global interrupt handler, but you still need to write all code in assembley to know what registers to save or spend your days reading the disassembly.
Trampas
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Thu Aug 05, 2004 11:22 am
The PIC saves the status register, wreg, I believe the BSR and maybe some more. Look at the datasheet for the PIC and you can find which ones are saved.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum