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?
Interrupt on 12F675 & 12F615
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
-
- 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
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.
would you mind looking, as let me know if what I have altered is correct please.
- Attachments
-
- 12F615.fcd
- (4.87 KiB) Downloaded 428 times
Martin
- 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
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.
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.
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
-
- 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
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?
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
-
- 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
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
- 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
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.
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.
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
Re: Interrupt on 12F675 & 12F615
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
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 354 times
-
- 12F615 (INT on GP3).fcf
- (11 KiB) Downloaded 381 times
-
- 12F615 (INT on GP2).fcf
- (11 KiB) Downloaded 373 times
- 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
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.
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.
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
Re: Interrupt on 12F675 & 12F615
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.
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.