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

PIC18F4620 INT_RB question.

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



Joined: 06 Mar 2010
Posts: 1

View user's profile Send private message

PIC18F4620 INT_RB question.
PostPosted: Sat Jun 26, 2010 9:13 pm     Reply with quote

I would like to utilize a portb on change interrupt.
The CCS manual says: "#INT_RB Port B any change on B4-B7".

Does this apply also to the 18F4620? It would seem logical that the interrupt should detect any pin on port b. B4-B7 limits the amount of inputs I want to detect using the ISR.

If this is indeed the case, can B6 and B7 be used as inputs when they are also used for ICSP (PGC & PGD)? Is it okay to attach buttons to these pins and use the ISR to detect off of them?

I am using the internal portb pullups and a simple spst push button to pull the inputs low when the spst's are pressed.

Thanks,
_________________
JT
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jun 26, 2010 11:46 pm     Reply with quote

Quote:
The CCS manual says: "#INT_RB Port B any change on B4-B7".
Does this apply also to the 18F4620?

Yes, look in the 18F4620 data sheet in the I/O Ports section on Port B:
http://ww1.microchip.com/downloads/en/DeviceDoc/39626e.pdf

Quote:

If this is indeed the case, can B6 and B7 be used as inputs when they are
also used for ICSP (PGC & PGD)?

They can, but not while the ICD is plugged into the board.
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