Rapid pin selection on components with multiple pins.

Please add any feature requests for Flowcode version 6 here

Moderator: Benj

Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Post Reply
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:

Rapid pin selection on components with multiple pins.

Post 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
Martin

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: Rapid pin selection on components with multiple pins.

Post 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.

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: Rapid pin selection on components with multiple pins.

Post by medelec35 »

Thanks Ben. That sounds great. Thanks for letting us know. I will have a play and let you know how it goes.
Martin

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Rapid pin selection on components with multiple pins.

Post 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

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: Rapid pin selection on components with multiple pins.

Post 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?
Martin

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Rapid pin selection on components with multiple pins.

Post 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
1 in 10 people understand binary, the other one doesn't !

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Rapid pin selection on components with multiple pins.

Post 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

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: Rapid pin selection on components with multiple pins.

Post 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
Martin

Post Reply