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
PIC16F1825 IOC Interrupt
Moderator: Benj
-
- 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
Hi Dirk,
Have you selected the pins and how you would like them triggered? 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.
Have you selected the pins and how you would like them triggered? 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
-
- Posts: 116
- Joined: Wed Feb 08, 2012 2:45 pm
- Has thanked: 7 times
- Been thanked: 11 times
- Contact:
Re: PIC16F1825 IOC Interrupt
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
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
- QMESAR
- 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
Hi
How do you see if the controller is running? do you have a LED that is flashing at a fix rate for example
How do you see if the controller is running? do you have a LED that is flashing at a fix rate for example
https://www.flowcodexchange.com/
Regards QMESAR
Regards QMESAR
-
- 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
Can you post your flowchart so we can see if we can spot something?
Martin
-
- Posts: 116
- Joined: Wed Feb 08, 2012 2:45 pm
- Has thanked: 7 times
- Been thanked: 11 times
- Contact:
Re: PIC16F1825 IOC Interrupt
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
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
- 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
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
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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel