Page 1 of 2

External Int Input 12F615

Posted: Thu Mar 07, 2013 8:44 am
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

Re: External Int Input 12F615

Posted: Thu Mar 07, 2013 11:51 am
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

Re: External Int Input 12F615

Posted: Thu Mar 07, 2013 2:40 pm
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 ?

Re: External Int Input 12F615

Posted: Thu Mar 07, 2013 2:54 pm
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.

Re: External Int Input 12F615

Posted: Thu Mar 07, 2013 4:37 pm
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 ?

Re: External Int Input 12F615

Posted: Thu Mar 07, 2013 5:55 pm
by Enamul
I have tried to do that..but that can be done before shutting down FC when you edited.

Re: External Int Input 12F615

Posted: Thu Mar 07, 2013 6:49 pm
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

Re: External Int Input 12F615

Posted: Fri Mar 08, 2013 8:09 am
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.

Re: External Int Input 12F615

Posted: Fri Mar 08, 2013 8:22 am
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.

Re: External Int Input 12F615

Posted: Fri Mar 08, 2013 9:44 am
by Steff
I correct myself. on the Chipp it Works 8) with a small correction :wink:

Re: External Int Input 12F615

Posted: Fri Mar 08, 2013 11:38 am
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.

Re: External Int Input 12F615

Posted: Fri Mar 08, 2013 12:48 pm
by Benj
Hi Steff,

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

Re: External Int Input 12F615

Posted: Fri Mar 08, 2013 3:38 pm
by Steff
Hi Benj
I think it's the latest release. 5.5.2.1. Or not ?

Re: External Int Input 12F615

Posted: Mon Mar 11, 2013 9:58 am
by Steff
The same for the Port interrupt. Can not be simulated, but it works on the chip.

Re: External Int Input 12F615

Posted: Mon Mar 11, 2013 12:08 pm
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.

Re: External Int Input 12F615

Posted: Thu Mar 14, 2013 11:48 am
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.

Re: External Int Input 12F615

Posted: Thu Mar 14, 2013 2:06 pm
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.

Re: External Int Input 12F615

Posted: Fri Mar 15, 2013 1:18 pm
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 631 times

Re: External Int Input 12F615

Posted: Fri Mar 15, 2013 2:27 pm
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.

Re: External Int Input 12F615

Posted: Thu Apr 04, 2013 2:38 pm
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 ?

Re: External Int Input 12F615

Posted: Thu Apr 04, 2013 4:51 pm
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 614 times

Re: External Int Input 12F615

Posted: Thu Apr 04, 2013 7:41 pm
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.









,

Re: External Int Input 12F615

Posted: Fri Apr 05, 2013 7:31 am
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?

Re: External Int Input 12F615

Posted: Fri Apr 05, 2013 11:17 am
by Benj
Hello,

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

Re: External Int Input 12F615

Posted: Mon Apr 08, 2013 10:57 am
by Steff
Hello Benj
It works. Thanks a Lot.
But how can I Simulate a pushbutton on the Int input in single step mode?