PIC16F1825 IOC Interrupt

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

PIC16F1825 IOC Interrupt

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC16F1825 IOC Interrupt

Post 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.
Martin

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

Re: PIC16F1825 IOC Interrupt

Post 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

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: PIC16F1825 IOC Interrupt

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC16F1825 IOC Interrupt

Post by medelec35 »

Can you post your flowchart so we can see if we can spot something?
Martin

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

Re: PIC16F1825 IOC Interrupt

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: PIC16F1825 IOC Interrupt

Post 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

Post Reply