Page 1 of 1

Rapid pin selection on components with multiple pins.

Posted: Sat Aug 17, 2013 12:34 pm
by medelec35
I just had a thought.
Can Flowcode be modified so that if multiple pins require selecting, then it could be done in the same way as another product:
pin selection.png
(8.57 KiB) Downloaded 2612 times
All you do just set one pin e.g with LCD data4 on pin RC0
Then on the same pin select Next follows up.
All the pins after data4 will automatically be assigned:
pin selection 2.png
(3.8 KiB) Downloaded 2612 times

Re: Rapid pin selection on components with multiple pins.

Posted: Sat Aug 24, 2013 7:27 pm
by Benj
Thanks Martin,

I think something similar to this is now part of the current release - patchset 2. Choose your first pin and then right click the pin and select auto connect to fill in the rest.

Re: Rapid pin selection on components with multiple pins.

Posted: Sat Aug 24, 2013 7:34 pm
by medelec35
Thanks Ben. That sounds great. Thanks for letting us know. I will have a play and let you know how it goes.

Re: Rapid pin selection on components with multiple pins.

Posted: Sat Aug 24, 2013 10:46 pm
by JonnyW
Hi. At the moment every component will simply increment all remaining selections based on the connection you have made. I was unsure whether there would be more requirements than that.

However the components can modify this on an event, so for example a keypad can auto populate rows only if they are selected, columns if they are. This might be preferable for you, but still needs to be implemented.

Jonny

Re: Rapid pin selection on components with multiple pins.

Posted: Sun Aug 25, 2013 8:33 pm
by medelec35
Hi Ben & Jonny,
There is a definite improvement, Even over pre V6 flowcode versions.
I don't believe the preceding pins should be altered, just succeeding.
E.g if all 8 pins are on a0 to a7 then you want to change a5 and all following pins to c5 to c7 ,then this could be done with without changing a0 to a4
That would be a good compromise.

What do people think about that idea?

Re: Rapid pin selection on components with multiple pins.

Posted: Sun Aug 25, 2013 8:53 pm
by JohnCrow
Hi
This seems to work ok on PIC/ARM-ECIO/AVR
But does not work on PIC16

Example select 30F2012 and the LCD display
Set the first conection to Port BL.0
Right click on the second line it changes the first line back to B.0

Tried this with a few different chips with thw same results
Also same using the LED array

Re: Rapid pin selection on components with multiple pins.

Posted: Tue Aug 27, 2013 9:48 am
by JonnyW
Hi John.

I think this should work OK. $PORTB_L.0 and $PORTB.0 are the same pin, as well as PORTB0.0.

$PORTB_L is the low byte of $PORTB, as is $PORTB0. The L and H are legacy as I have been informed these are what we label on our dev boards so dropping them could be confusing. The compiled code should be exactly the same though.

Jonny

Re: Rapid pin selection on components with multiple pins.

Posted: Sat Sep 07, 2013 10:20 am
by medelec35
JohnCrow wrote: Set the first connecion to Port BL.0
Right click on the second line it changes the first line back to B.0
My take on this is it would be better if only pins below are automatically assigned and not pins above.
For example I have a 7 segment quad and would like commons connected from pin C.0 to C.3
Segment (A) to (G) + (DP) connected from pin D.0 to D.7

With the current method for commons change A.0 to B.0, then can select either B.0 or the next pin below and connections will be:
7seg conn1.png
(71.88 KiB) Downloaded 2482 times
So the idea would then select pin connected to segment (A) and change that from C.4 to D.0 then select 'Auto connect digital' (either select D0 or next pin below).
Connections should then change from Segment (B) all the way to DP and ignore pins above (all commons)
Unfortunately as it stands now if you now select from segment (A) and 'Auto connect digital' then this will happen which is not ideal.:
7seg conn2.png
(68.5 KiB) Downloaded 2482 times
All Common pins (above Segement (A)) are now wrong.

Martin