How to just route some pin to some other pin?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by cyberstudio on Tue Jul 07 00:48:48 MST 2015
What is the simplest construct to make some output pin merely follow some input pin (as in a logic buffer passing some signal straight through). In particular the input pin could be the capture pin of a timer/counter and the output pin could be a match pin of the same timer/counter.

I was using the ENCC bit of CTCR to reset upon the falling edge and then use PWMC to make a match output go low when the falling edge reset happens, and then set the match register to 1 to raise the match output when the capture pin goes high. The timer/counter is set to counter mode. But it seems like ENCC and or PWMC does not work well with counter mode.