OPTO, but integrated diode on the output works quite well too.