Comments on Level shifting of a 3 state logic pin
Post
Level shifting of a 3 state logic pin
+4
−0
I want to design a simple battery charger using MCP73831/2. This chip has a 3-State state pin according to the table below:
I have a 3.3V MCU and I want to connect this pin to a GPIO. The MCU is not 5V tolerant and maximum votlage on any pin is given 3.6V per datasheet (esp32).
My question is, how can I safely connect this STAT pin to my MCU? How can I translate its HIGH state (which is I guess 5V) to 3.3 and its LOW state to 0V (logic low). Is a resistor divider enough for this? or will I need to use mosfet or transistors? Here is my circuit:
2 comment threads