Can an optocoupler be connected between MCU pin and ground without resistor?
My current design has +5V connected to an optocoupler output pin, the other optocoupler pin is connected to ground through a 25k resistor. (External pull down) The connection point between the optocoupler and the resistor is connected to the MCU pin which is configured as a floating input.
Can I replace this with the following circuit?
MCU pin connected to optocoupler pin. The other optocoupler pin connected directly to ground. The MCU pin configured as input with internal pull up.
