Change connections between ports at runtime

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

I have 8 pins input and 8 as output.

   

I would like to change connections between them during runtime.

   

Please see attached 2 pictures for reference.

   

Please give me a hint how should I make this.

   

 

   

Kind REgards,

   

Daniel

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Here It is.   
This can select pins by control_reg_pin value.   

View solution in original post

0 Likes
6 Replies
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

 and second image

0 Likes
Anonymous
Not applicable
        Hi Daniel   
One idea is use multiplexer or gate logic for Pin 14,16   
This logic controled by other Pin or CPU signal.   
I will show you soon.   
0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Here It is.   
This can select pins by control_reg_pin value.   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

You can also use the port in configuration register which uses the routing net/mux.

   

See Register TRM for the part you are using.

   

 

   

0 Likes
Anonymous
Not applicable

 Thank you all for solutions provided.   I have been able to look on mux until now.

   

I do have a question related solutions: 

   

does transfer speed between input pins and output pins depend on CPU clock ? 

   

I mean I would like to use a PSoC4 and from input to output pins should handle a 200Khz signal.

   

 

   

Thank you !

   

Daniel

0 Likes
Anonymous
Not applicable
        Pin to Pin transition time is not depend on CPU clock.   
It is a hardware, i.e: Pin1 to Pin2   
However, pin selection time is depend on CPU,   
in case of software is switching MUX.   
   
About Pin to Pin delay,   
See Electrical specifications of each device data sheet.   
[ GPIO AC Specifications ]   
   
Usually, PSoC4:   
It is up to 100MHz around.   
0 Likes