- Sat Aug 15, 2015 3:59 am
#26046
martinayotte wrote:MikeBolton wrote:Yes, I have a real RS232 port. I have had bad experiences with serial to USB converters, especially at 115200B. Hence the HIN232 IC. This inverts the RS232 and gives 5V logic levels.
I think you have ever complexified the logic here for simple level logic shifter by adding 2 inverters.
Simply use a MOSFET with 2 resistors as shown here :
Martin
I think you have missed what I am doing again. The added logic has nothing to do with logic levels. My original scheme, without added logic, worked fine for PC to ESP only. The logic was added so I can send and receive between the PC, the PIC and the ESP at the same time. This required additional gating. As I was using NAND gates, there was an intrinsic inversion, hence needing to invert it back again. As I said, nothing to do with logic levels, just I found initially that my 4000 series logic output would not drive an ESP Rx input.
Anyway, problem solved with a transistor. Your MOSFET level shifter seems OTT for what I did with just a resistor and zener.
Mike B