I want to turn on and off device only when TRS connector is inserted in device and vice versa. I'm using 5pin contacts TRS female switch with detect at tip. My power supply is based on TPS61200 and wants to turn it on by pulling tps enable pin high only when 2.5mm TRS connector is inserted.
attaching the datasheet of TRS female switch PJ280A
If Pin 5 does not switch from low to V+, you may have to invert ground contact to create this signal. Cant tell from your description what conditions exist before after power is applied when inserted.
actually TIP and Ring signals are software UART TX & RX line of controller atmega8l respectively which will be connected to VNC2-32L UART input whenever TRS connector is inserted. So my TIP terminal i.e pin contact 4 is connected to VNC2L RX terminal(which will be floating during shut down mode) and because of that i can not pull up or pull down this terminal since it will affect my uart signals.