I have to interface 120V or 240V ac into a parallel port. The voltage varies mattering on what country the product will be installed. My question is, if I have an optocoupler with reverse diodes to activate for ac, what size resistor do I use for current limiting the input? I know I can use...