I might be thinking about this wrong...
I have a device that uses an Atmega64A and I'm hooking up an LED driver to one of its GPIO to control the enable pin of the driver. In some circumstances (that are beyond my control, as the Mega64 is an existing device that I don't have firmware control over) the pin is floating. Understandably, that results in unpredictable (and undesired) behavior by the LED driver.
I'm wondering if there's a logic gate setup that I can use such that if EN is floating that output is either high or low (I don't really care which). To make things trickier, the output is sometimes PWM.
So... High, Low, or PWM => A=Y
but... floating => A = High (or low)
Thoughts?
I have a device that uses an Atmega64A and I'm hooking up an LED driver to one of its GPIO to control the enable pin of the driver. In some circumstances (that are beyond my control, as the Mega64 is an existing device that I don't have firmware control over) the pin is floating. Understandably, that results in unpredictable (and undesired) behavior by the LED driver.
I'm wondering if there's a logic gate setup that I can use such that if EN is floating that output is either high or low (I don't really care which). To make things trickier, the output is sometimes PWM.
So... High, Low, or PWM => A=Y
but... floating => A = High (or low)
Thoughts?