How Can I take input on 1 pin and pass through to output on another pin?

Like the topic says. I'm trying to use the arduino to switch between one input and sending it to 2 or 3 output pins depending on the conditions. So it takes the input on one pin then outputs that input signal on another pin.

I'm trying to use a clock generator IC and a few different resistor configs to get multiple clocks from one IC in case someone is wondering what this is for.

Thanks in advance.

You have not told us how frequently there will be a change to the state of the input pin.

I suspect the simplest thing would be to use attachInterrupt() - that will cause a function to be called every time the input pin (Pin 2 or pin 3) changes.

However when you start using interrupts in a program debugging can be very complex so keep it as simple as possible. Nick Gammon has a good interrupt tutorial

...R

The input will never change, only the output of the resistor configurations. I'll look into the information you guys gave me but from the information you gave me it seems there are limited pins that this can be done on or am I completely wrong in this assumption?

What is the output frequency of the clock generator IC?