Page 1 of 1
flip flop with 12F629
Posted: Sat May 12, 2012 10:43 am
by donald
Hello everybody,
How can I get a flip flop, to memorize the last status, before the interruption power source ?
I want an example of flowchart.
Re: flip flop with 12F629
Posted: Sat May 12, 2012 12:15 pm
by medelec35
For that device, you can write to the EEPROM which is non volatile so will retain the value when power has been removed and restored.
you don't want to keep writing to EEPROM as it has a limited number of write/read cycles you can do.
So I would only advise only to write only when value has changed and require updating.
If you try and create a flowchart and post it, then I can help you modify it.
This thread has to be moved since your not posting a tip, or a flowchart that will help others.
So I can move to correct section, are you using V3, V4 or V5 Flowcode?
Re: flip flop with 12F629
Posted: Sat May 12, 2012 12:55 pm
by donald
I greet you,
I will do a schematic diagram immediately, I use V4 Flowcode.
Re: flip flop with 12F629
Posted: Sat May 12, 2012 1:07 pm
by medelec35
donald wrote:I use V4 Flowcode.
Ah so you must be using the professional version?
But It does not look like you have requested to be able to post in the correction section.
If you register for V4 by following these instructions:
http://www.matrixmultimedia.com/support ... =602#p1235
This thread can be then moved to correct section.
Martin
Re: flip flop with 12F629
Posted: Sat May 12, 2012 1:23 pm
by donald
It is demo version.
Re: flip flop with 12F629
Posted: Sat May 12, 2012 1:33 pm
by medelec35
donald wrote:It is demo version.
I have idea.
There is a free version of Flowcode V5.
So Superior to the v4 version.
E.g all the timers simulate, much wider range of variables, search function etc.
Datasheet is here:
http://www.matrixmultimedia.com/resourc ... klet-2.pdf
If you uninstall V4 demo, and install V5 free version (same limitation as V4 demo)
Then if you post the V5 flowchart, I will correct it for you.
If you don't wan't to do that just yet then just post a V4 flowchart of what you have done.
V5 can be found here:
http://www.matrixmultimedia.com/lc_index.php?p=25
Once you have tried V5, I dont think you would want to go back to the V4 demo again.
Re: flip flop with 12F629
Posted: Sat May 12, 2012 2:07 pm
by donald
Thank you very much, do I install and return as soon as I can.
Re: flip flop with 12F629
Posted: Sat May 12, 2012 3:18 pm
by donald
I'm back with a flowchart, I believe that ifthe power supply is interrupted and
then connected will not store condition in which it was the interruption.
Re: flip flop with 12F629
Posted: Sat May 12, 2012 4:34 pm
by medelec35
This flowchart should store its status each time the switch is pressed.
The status should be restored in event of interruption of power.
I have added two extra storage location which prevents data from being read if
a: Switch not pressed for the first time after compiling to chip before power interrupted.
b: Some how EEPROM has got corrupted or overwritten.
Martin
Re: flip flop with 12F629
Posted: Sat May 12, 2012 5:12 pm
by donald
For me it is a good example and I helped me understand very well.
Thank you very much for explanations and flowchart.
Re: flip flop with 12F629
Posted: Sat May 12, 2012 5:31 pm
by medelec35
No problem, just glad it helps.
As for 12F629
I don't believe you can use that with any of the Flowcode demos.
This is from the marketing datasheet
Flowcode for PICmicro MCUs
the demo version will produce hex code for only the following: 16F628A,
16F690, 16F88, 16F84A, 16F877, 18F2220, 18F4431, Formula Flowcode,
and ECIO. Free versions are limited to around 50 usable icons and also
have code size limitations for PICmicro microcontrollers.
Also the advance components like communication will not be available.
Martin
Re: flip flop with 12F629
Posted: Sat May 12, 2012 5:58 pm
by donald
Flowcode for PICmicro I like it more and more, so that my small savings put it aside and i purchasing professional version complete.
Re: flip flop with 12F629
Posted: Tue May 22, 2012 4:03 pm
by donald
Hello everyone,
I'm trying to realize a flip flop set/reset the memory and can't do that. I can help someone?
Re: flip flop with 12F629
Posted: Wed May 23, 2012 6:22 pm
by donald
Hello everyone,
No one can help me ?
Re: flip flop with 12F629
Posted: Wed May 23, 2012 7:03 pm
by medelec35
Hi donald,
The set/reset can be achieved fairy easily.
The only issue you will have is retaining memory once the power is restored.
Normally EEPROM could be used, but I don't believe it can be available for free versions.
Is flip flop for a school or college project?
Re: flip flop with 12F629
Posted: Thu May 24, 2012 3:30 am
by donald
Hi,
In the school has made in assembler a colleague in a group, in our group fails no one to do.
I did it, with two buttons, but it is not set/reset.

Re: flip flop with 12F629
Posted: Thu May 24, 2012 10:10 am
by medelec35
Hi donald,
See if this is any better for you.
I have programmed flowchart so if EEPROM was never wrote to (e.g when fist program chip, then Set = 0 and reset =1
See if this is more what your after.
Martin
Re: flip flop with 12F629
Posted: Thu May 24, 2012 3:46 pm
by donald
Hi Martin,
Fantastic flawlessly functioning, we are saved, can now be present the our panel illumination to enforce two bulbs in a set/reset.
For me you are a great master, I don't know whether our thanks are sufficient, but I hope our joy to be strongly felt that a thought
beneficial for recharging the batteries you.
Thousand thanks to you!
Re: flip flop with 12F629
Posted: Thu May 24, 2012 4:24 pm
by medelec35
Hi donald,
Just glad it works for you.
Yes, thanks is enough.
You have not just thanked me, you have brought a big smile to my face
So thank you!
Martin