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

Port B Interrupts + Analog Question [Solved]

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



Joined: 21 Jan 2013
Posts: 2

View user's profile Send private message

Port B Interrupts + Analog Question [Solved]
PostPosted: Mon Jan 21, 2013 11:53 am     Reply with quote

I'm working with the datasheet, but I have a question about sharing Port B change on port (B4-B7) and Analog together. The details are:

1) PIC18F66K80
2) RB5 is an external interrupt
3) RB4 is an analog input

So my question is, if I:

1) TRIS RB4 & RB5 as inputs, and
2) Set RB4 as an analog input

Will the PORT B interrupt on change fire when an analog input exceeds V_In_High (0.85 * VCC, or 4.25V @ 5V_VCC)?

More basically, if RB4 is declared an analog input, can it cause a Change-On-Port interrupt?
mullymully



Joined: 21 Jan 2013
Posts: 2

View user's profile Send private message

PostPosted: Mon Jan 21, 2013 12:01 pm     Reply with quote

I believe I found my answer... thought it would be harder ;)

On datasheet p.168 I see that I can set bits 7-4 in the IOCB register to enable or disable interrupt-on-change for the respective pins.

Thanks for the time... hopefully i didn't waste any.
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