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

#int_rb ISR puts PIC to sleep?

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



Joined: 13 May 2004
Posts: 90
Location: Nashville, TN

View user's profile Send private message Send e-mail Visit poster's website

#int_rb ISR puts PIC to sleep?
PostPosted: Mon Nov 22, 2004 1:38 pm     Reply with quote

Can anyone lend some insight into why my interrupt-on-change ISR has a SLEEP instruction in it? This ISR is designed to reset a battery charger, but I can't figure out why the SLEEP instruction is there.

Code:
.................... #int_rb
.................... void int_portBChange() {
1D96:  SLEEP
....................    output_high(CHARGER_ENABLE);
*
0388:  BCF    F94.0
038A:  BSF    F8B.0
....................    output_low(CHARGER_ENABLE);
038C:  BCF    F94.0
038E:  BCF    F8B.0
.................... }
....................
0390:  BCF    FF2.0
0392:  GOTO   0078


--
Jeff S.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 22, 2004 1:42 pm     Reply with quote

It's not in there. Look at the address.
This is CCS's explanation for it:
http://www.ccsinfo.com/faq/?9
object01



Joined: 13 May 2004
Posts: 90
Location: Nashville, TN

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Nov 22, 2004 2:27 pm     Reply with quote

PCM programmer wrote:
It's not in there. Look at the address.
This is CCS's explanation for it:
http://www.ccsinfo.com/faq/?9


<parrot>I'm sorry, I have a cold.</parrot>

Didn't even notice the instruction address.

--
Jeff S.
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