hello friends,
i'm trying to interface two devices with my microcontroller atmaga8l UART. one of the device support LVTTL signal(3.3v), so i can interface my controller directly with that device through 3.5 mm audio jack. now the second device support rs232 interface, so to interface with this device i have used max232. I want to connect both this device on same 3.5mm jack to achieve compatibility. To achieve this i'm using analog mux(sn74lv4052a) to route uart signal coming from uc to 3.3v supported device1 and rs232 level supported device2 through max232.
now the problem is that when i will connect device2 which support rs232 level(on the same 3.5mm audio jack to which 3.3v o/p signal coming from mux o/p1 is connected)there is quiet possibility to damage analog mux pin since mux pin can handle peak voltage of 5.5v. so i need solution over that such that when i connect device2 and send rs232 signals it should not damage my analog mux o/p1. for better understanding below i'm attaching image