Interrupt on 12F675 & 12F615

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

Post Reply
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:

Interrupt on 12F675 & 12F615

Post by medelec35 »

I was using Flowcode with 12F675, but wanted to change target to 12F615.
It would not let me change target until I altered interrupt from GP2 to RB0. The odd thing is, interrupt is the same (GP2 = pin 5) on both devices.
Why am I unable to select GP2/INT on 12F615?
Martin

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: Interrupt on 12F675 & 12F615

Post by medelec35 »

Assuming I am correct, I have Changed 12F615.fcd file to show GP2 INT.
would you mind looking, as let me know if what I have altered is correct please.
Attachments
12F615.fcd
(4.87 KiB) Downloaded 422 times
Martin

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: Interrupt on 12F675 & 12F615

Post by Benj »

Hello

Why not simply remove the interrupt icon from your program, change target and then include back in. This way you do not have to edit your FCD files.

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: Interrupt on 12F675 & 12F615

Post by medelec35 »

I did do that before I posted 12F615.fcd. However when I removed INT, changed target then dragged INT back onto flowchart, Drop down box only shows RB0/INT.
I assumed that the interrupt would not work if Flowcode tried to assign it to wrong port. That is the reason for editing 12F615.
So If i had left 12F615 as original, and interrupt on Flowcode shows RB0/INT, would the hardware be set up for interrupt in GP2?
Martin

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: Interrupt on 12F675 & 12F615

Post by medelec35 »

Thanks Ben. I did not realise drop down box in INT icon is for indication only, and if displays RB0, it would still look at GP2.
Martin

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: Interrupt on 12F675 & 12F615

Post by Benj »

Hello

Yes that is a bit misleading but you are correct GP2 is still used for the actual interrupt. We have solved this inconsistency of interrupt names for V4.

chumungi
Posts: 2
Joined: Thu May 07, 2009 3:33 pm
Contact:

Re: Interrupt on 12F675 & 12F615

Post by chumungi »

Hi,

I'm having a similar problem to the one described in this thread.

I wrote a program for the PIC12F615 but have been unable to get the interrupt to work. I initially had the interrupt set for GP3 but having read through the earlier posts I tried switching the connections round so that the interrupt was on GP2 with the setting on RB0/INT. However I still didn't have any luck with this.

I've attached three files. The 16F877A runs the simulation correctly to demonstrate what I'm trying to achieve, and the other two files are the ones I can't get to work, owing to this interrupt issue.

Was wondering if I could get some help troubleshooting this?

Thanks very much
Attachments
16F877A.fcf
(15 KiB) Downloaded 347 times
12F615 (INT on GP3).fcf
(11 KiB) Downloaded 375 times
12F615 (INT on GP2).fcf
(11 KiB) Downloaded 369 times

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: Interrupt on 12F675 & 12F615

Post by Benj »

Hello

Is it just the simulation that is having problems or are there problems on the hardware too?

The simulation of interrupts is not amazing im afraid and may fail for non standard devices like the 12F range. I will have a quick dig in and see what I can find.

chumungi
Posts: 2
Joined: Thu May 07, 2009 3:33 pm
Contact:

Re: Interrupt on 12F675 & 12F615

Post by chumungi »

Hi,

I haven't tried on the 12F615 hardware yet, but it worked fine on the 16F877A prototype board.

I ultimately want to get the interrupt on GP3 though - does this require a custom interrupt to be set in flowcode?

Thanks for your help.

Post Reply