Page 1 of 1

PIC16F1825 IOC Interrupt

Posted: Wed Dec 04, 2019 3:12 pm
by DirkB
Hello,

the ioc interrupts on the pic16f1825 doesn't works.
I need ioc Interrupts on 5 Pins on port a. Two of the
interrupts must be trigger on both edge. Is this possible?

thanks

Dirk

Re: PIC16F1825 IOC Interrupt

Posted: Wed Dec 04, 2019 4:01 pm
by medelec35
Hi Dirk,
Have you selected the pins and how you would like them triggered?
Interrupt_properties.png
(42.9 KiB) Downloaded 521 times
If so, are you saying they just don't work?
Do you have either internal weak pull-up, external pull-up or pull-down resistors?
If not I/P's could be floating.

Re: PIC16F1825 IOC Interrupt

Posted: Wed Dec 04, 2019 5:36 pm
by DirkB
Hi Martin,

i have external pull-ups on A0 and A1 for trigger both Edge
using reflex-coupler, pull-downs on A3, A4 and A5 for trigger
with switches on rising egde. Setup is right. A0, A1 green, A3,
A4 and A5 red ;o)
For testing A0 triggers a macro only a LED goes on in a loop.
No interrupt works. ???

regards

Dirk

Re: PIC16F1825 IOC Interrupt

Posted: Wed Dec 04, 2019 5:57 pm
by QMESAR
Hi
How do you see if the controller is running? do you have a LED that is flashing at a fix rate for example

Re: PIC16F1825 IOC Interrupt

Posted: Wed Dec 04, 2019 6:11 pm
by medelec35
Can you post your flowchart so we can see if we can spot something?

Re: PIC16F1825 IOC Interrupt

Posted: Thu Dec 05, 2019 2:16 pm
by DirkB
Hello at all,

I have probably found a bug. If you activate several interrupts,
only the last one of the activated interrupts will work. The others
will be deactivated.
Think it is a Job for Ben ;o)

regards

Dirk

Re: PIC16F1825 IOC Interrupt

Posted: Fri Dec 06, 2019 10:48 am
by Benj
Hi Dirk,

This shouldn't be the case, please can you attach a simple program that exhibits this problem and I will investigate for you.

Edit, I see you've created a new topic with an attachment so I've answered here.
viewtopic.php?f=78&t=21731&p=98477#p98477