TIMER module of MC9S12XEP100 has a same function with Enhanced Capture Timer(ECT) in Input Capture and Output Compare(IOC). However external pins of TIMER (Port P[0:7]) are not in reset condition when act as IOC, as the reference manual says “a possible rerouting under software control” (please see MC9S12XEP100 Reference Manual，Table 1-8. Peripheral - Port Routing Options）. Here my problem. I am so confused how can achieve my target in Code Warrior, maybe by setting some registers. Any sample routine in C is welcomed.