Page 1 of 1

Masking PortB interrupts for PIC 18F2685

Posted: Tue Nov 22, 2022 1:55 am
by Tortilla
Hello,

Can someone kindly tell me how to mask the PortB interrupts so only RB6 is used as an interrupt on change and the other PortB pins are used as normal input and output pins?

I assume that it is necessary to use a C-code block after enabling the interrupt, but I can't figure out how to do it from reading the datasheet for the PIC 18F2685.

I have searched this question on the forums and have not been able to find an answer that applies to the 18F2685.

Thanks!

Re: Masking PortB interrupts for PIC 18F2685

Posted: Tue Nov 22, 2022 8:21 am
by medelec35
Hello.
As the 18F2685 does not have a register, this post will apply to you.

Re: Masking PortB interrupts for PIC 18F2685

Posted: Tue Nov 22, 2022 11:49 pm
by Tortilla
medelec35 wrote:
Tue Nov 22, 2022 8:21 am
Hello.
As the 18F2685 does not have a register, this post will apply to you.
Thanks Martin, much appreciated!