I'm using a 12LF1552, v5.075 compiler. What does constant INT_IOC do when used with enable/disable_interrupts?
It sets bits that are not used in any other INT_IOC_XXX define.

temtronic

Joined: 01 Jul 2010Posts: 5878Location: Greensville,Ontario

Posted: Mon Feb 12, 2018 10:34 am

You should post a small, compilable program that shows what you're asking. That will allow us to compile and test on our computers as well as dump the listing.
If you dump the listing , you can easily see which bits of what registers are being set or cleared. Consulting the datasheet section that has IOC info and the PIC device header will show what's going on and why.

SeeCwriter

Joined: 18 Nov 2013Posts: 121

Posted: Mon Feb 12, 2018 11:02 am

I want to use the interrupt-on-change feature with pins A0 & A1. I'm not following what file instructions ANDWF and IORWF are acting on.