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 support@ccsinfo.com

16F877 and 18F452 RB interrupts

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







16F877 and 18F452 RB interrupts
PostPosted: Mon May 19, 2003 9:50 am     Reply with quote

I was using the RB (pins 4-7) interrupt on an 16F877 without any problems. I needed more programming space so I went to an 18F452. I can not get the RB interrupts to function. Are there additional settings for the 18F452 that are not required for the 16F877 for the RB interrupt to work?


___________________________
This message was ported from CCS's old forum
Original Post ID: 144514552
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: 16F877 and 18F452 RB interrupts
PostPosted: Mon May 19, 2003 1:15 pm     Reply with quote

:=I was using the RB (pins 4-7) interrupt on an 16F877 without any problems. I needed more programming space so I went to an 18F452. I can not get the RB interrupts to function. Are there additional settings for the 18F452 that are not required for the 16F877 for the RB interrupt to work?
--------------------------------------------

In your 16F877 code, do you have something like this:

#byte port_b = 6

so that you can clear the "change" condition by reading
the port in the isr ?

ie:

#int_rb
void int_rb_isr(void)
{
char c;
c = port_b;
// etc.
}

If so, did you change the address of Port B from 6, to the
address used by the 18F452 chip, 0xF81 ?
___________________________
This message was ported from CCS's old forum
Original Post ID: 144514557
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