flip flop with 12F629
Moderator: Benj
flip flop with 12F629
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.
How can I get a flip flop, to memorize the last status, before the interruption power source ?
I want an example of flowchart.
Last edited by donald on Sat May 12, 2012 5:23 pm, edited 2 times in total.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
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?
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?
Martin
Re: flip flop with 12F629
I greet you,
I will do a schematic diagram immediately, I use V4 Flowcode.
I will do a schematic diagram immediately, I use V4 Flowcode.
- Attachments
-
- flip flop.png
- (1.58 KiB) Downloaded 9556 times
Last edited by donald on Sat May 12, 2012 1:23 pm, edited 3 times in total.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
Ah so you must be using the professional version?donald wrote:I use V4 Flowcode.
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
Martin
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
I have idea.donald wrote:It is demo version.
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.
Martin
Re: flip flop with 12F629
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.
then connected will not store condition in which it was the interruption.
- Attachments
-
- flip flop.fcf
- (10.5 KiB) Downloaded 502 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
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
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
- Attachments
-
- flip flop_Mod1.fcf
- (16 KiB) Downloaded 493 times
Martin
Re: flip flop with 12F629
For me it is a good example and I helped me understand very well.
Thank you very much for explanations and flowchart.
Thank you very much for explanations and flowchart.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
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
Martin
As for 12F629
I don't believe you can use that with any of the Flowcode demos.
This is from the marketing datasheet
Also the advance components like communication will not be available.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.
Martin
Martin
Re: flip flop with 12F629
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
Hello everyone,
I'm trying to realize a flip flop set/reset the memory and can't do that. I can help someone?
I'm trying to realize a flip flop set/reset the memory and can't do that. I can help someone?
- Attachments
-
- flip flop mem.fcf
- (15.07 KiB) Downloaded 420 times
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
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?
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?
Martin
Re: flip flop with 12F629
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.
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.

-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
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
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
- Attachments
-
- SR flip flop mem1.fcf
- (16.24 KiB) Downloaded 426 times
Martin
Re: flip flop with 12F629
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!
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!
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: flip flop with 12F629
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
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
Martin