External Int Input 12F615

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

External Int Input 12F615

Post by Steff »

Hi all.
In the small test program I want to use the external Int Input (pin5) to turn on/off a Led(Start/Stop function).
But the simulation (FCV5) does not function.
Whats wrong ?

Thanks for Help.

Steff
Attachments
TEST.fcf
(16 KiB) Downloaded 596 times

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: External Int Input 12F615

Post by Enamul »

FC simulator can't simulate C code..it seems your whole code is made of c code. That's why it's not simulating
Enamul
University of Nottingham
enamul4mm@gmail.com

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Hi Enamul
It's a normal FlowCode V5 Programm. I write not one line C-Code .
In the meantime I noticed that the simulation with a
12F683 is possible .
Possible a FlowCode Bug ?

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: External Int Input 12F615

Post by Enamul »

I know you didn't write any c code but you have checked each icon of the flowchart and they are in the edit mode and which means these are now all as c code. You can make whole code again or simple LED flashing code. But please don't edit components if you do so you can't simulate that.
Enamul
University of Nottingham
enamul4mm@gmail.com

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Thanks for this hint, but I cannot remember that I checked some icons. :?
How i can see which Icon that i have checked ? Can i undo this ?
Possibly a wrong adjustment ?

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: External Int Input 12F615

Post by Enamul »

I have tried to do that..but that can be done before shutting down FC when you edited.
Enamul
University of Nottingham
enamul4mm@gmail.com

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: External Int Input 12F615

Post by medelec35 »

All you need to do is right click on each icon, select Annotations, then select as Flowcode.

Odd as cant stop it showing C code because I changed views to Flowcode in View, Global options, Annotations Tab.
It did not change back.
Bug perhaps?

Do you want to make sure your setting are correct?
You can go into View, Global options then select restore defaults.
So next flowchart will be ok.

I believe simulation for 12F615 interrupt is probably bugged.


Martin
Martin

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Thanks for your help. Unfortunately I had no success until now.

I think the problem is "only" from the 12F615! When I select the 12F683 with the same settings, including "C-code" not "Flowcode" works simulating.
I have tried to burn the program to the 12F615 but unfortunately the program does not work there.
One more question: What red star above the icons mean? Unfortunately I have not found anything about it in the help file.

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: External Int Input 12F615

Post by medelec35 »

Stars within Flowchart are indicating Icons have been edited and Flowchart has not been saved.
So every icon that been edited will show a star.
You will then see a star after .fcf at the top of flowchart, which indicates Flowchart requires saving.
As soon as flowchart is saved all the stars will disappear.
Martin

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

I correct myself. on the Chipp it Works 8) with a small correction :wink:

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Thanks for the help.
I was able to program the 12F615 as it is necessary.
But the simulation of Int input does not work on Flowcode v5​​. I think the view as C code, it has no impact. That will be a Flowcode bug.
I hope this bug will be fixed in the future.

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: External Int Input 12F615

Post by Benj »

Hi Steff,

Please can you confirm if your running the latest release of Flowcode v5 (5.5)

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Hi Benj
I think it's the latest release. 5.5.2.1. Or not ?

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

The same for the Port interrupt. Can not be simulated, but it works on the chip.

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: External Int Input 12F615

Post by Benj »

Hello,

Please can you give this updated FCD a go and see if it fixes the problems?

Simply copy the file into your "C:\Program Files (x86)\Flowcode\v5\FCD" directory.

Please can you also sign up for the correct Flowcode forum using the links in my signature.
Attachments
12F615.fcd
(9.44 KiB) Downloaded 437 times

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

I have copy the file in the path C:\Programme\Flowcode\v5\FCD and tested my program again, but unfortunately I see no difference.

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Again a correction.
When I draw a new program then the simulation works, the input and port interrupt. But I can no longer open the port interrupt properties menu and therefore I can no longer configure the inputs(turn on or off)
The "old" programs still fail to simulate. If I "draw" again, they work.

Is there a possibility that I do not need existing programs draw again?

For now, thanks for the correction.

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: External Int Input 12F615

Post by Benj »

Hello,

This should allow you to select the port pins used for the port interrupt again.

Not sure why older programs are not simulating correctly. Going into the interrupt properties and clicking OK should allow them to work correctly.
12F615.fcd
(9.44 KiB) Downloaded 481 times

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Thanks for your help.
For old programs is still not working simulation. But this is not very bad.
Important as that is, it works for new programs and now looks good.

Thanks a lot.

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Next Chip same Problem ?

Is it possible that the same problem also exists at 16F1824 :shock: ?
Or is there already a solution for it ?

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: External Int Input 12F615

Post by Benj »

Hello,

Seems to be working ok for me. The 16F1824 has a maskable interrupt on change. I have made a quick example where pins 0 and 1 will interrupt on both signal edges.
16F1824_IOC.fcf
(11 KiB) Downloaded 461 times

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: External Int Input 12F615

Post by jgu1 »

Hi Ben!

I have also tested your. FCD file and I assume you recommend to keep it in FCF library, it work´s after thee correction.

But Ben, somewhere it's an error in FC (small). As I have previously asked about, please, please will you be so kind to make a window "Minor fixes for FC5.5" :D :D and place or copy all the correction there, Please.

Have a nice day

Best regard

Jorgen.









,

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

OK the Port interrupt works.
The INT input RA2 pin 11 does not work for the simulation.
Or do I make something wrong?
Attachments
Int_Test_16F1824.fcf
Start/Stop function by a pushbutton
(14.5 KiB) Downloaded 454 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: External Int Input 12F615

Post by Benj »

Hello,

Ok please can you try this updated file, hopefully it should solve the issue.
16F1824.fcd
(16.37 KiB) Downloaded 415 times
I have now made a v5.5 updates topic here.
http://www.matrixmultimedia.com/mmforum ... 46&t=12148

Steff
Posts: 46
Joined: Wed Jun 23, 2010 1:26 pm
Has thanked: 6 times
Been thanked: 3 times
Contact:

Re: External Int Input 12F615

Post by Steff »

Hello Benj
It works. Thanks a Lot.
But how can I Simulate a pushbutton on the Int input in single step mode?

Post Reply