I am designing a board with a FT230 USB to UART IC. In battery powered applications, one of its GPIO can serve as a VBUS sensing pin.
However, the FT230X was designed for 5V applications, before the era of USB Power Delivery. In my case I'm expecting voltages of up to 20V on VBUS, but with a VIH of 2.0V on the GPIO, I don't see any voltage divider that would produce a logic high voltage on the entire 5-20V range.
So I'm looking for a small circuit that would produce a logic high whenever the VBUS is above 4.5V, as illustrated below.