Hi ,
Finally, I found the solution.
even after doing this PORT_PTCOE_PTCOE2 = 1, we may not be able to get the output.
because the port ptc2 is works based on the priority.
here what the happening is we are having the TSI8 input for the same ptc2 port, so it is giving high priority to the alternate TSI8. so, we must do the input reading pin zero (0).
TSI_PEN1 |= 0x0.
Now after doing this, it will consider PORT_PTCOE_PTCOE2 = 1 this as high priority and will generate the output.
Regards@MSR ...!