CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

High Priorty ISR

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Trampas
Guest







High Priorty ISR
PostPosted: Thu Aug 05, 2004 7:26 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Aug 05, 2004 8:24 am     Reply with quote

Search the board. That question has been asked within 2 days.
Trampas
Guest







PostPosted: Thu Aug 05, 2004 10:34 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Thu Aug 05, 2004 11:22 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group