Masking PortB interrupts for PIC 18F2685

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Tortilla
Posts: 17
http://meble-kuchenne.info.pl
Joined: Tue Jul 05, 2022 8:54 am
Has thanked: 9 times
Been thanked: 3 times

Masking PortB interrupts for PIC 18F2685

Post 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!

medelec35
Matrix Staff
Posts: 1475
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 522 times
Been thanked: 477 times

Re: Masking PortB interrupts for PIC 18F2685

Post by medelec35 »

Hello.
As the 18F2685 does not have a register, this post will apply to you.
Martin

Tortilla
Posts: 17
Joined: Tue Jul 05, 2022 8:54 am
Has thanked: 9 times
Been thanked: 3 times

Re: Masking PortB interrupts for PIC 18F2685

Post 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!

Post Reply