Electronics > Projects, Designs, and Technical Stuff
Octocoupler Strange Open State Behaviour
(1/3) > >>
mattg443:
I'm using an CPC1018N octocoupler to switch on/off a 3v3 UART signal.

The first attachment shows the circuit setup. I turned off the octocouplerby lifting a pin on the control side, so no current can flow.

I'm having unexpected results when the octocoupler is off (open circuit) and send data on the UART. (Shown in the second attachment)

The problem is fixed when I add a 10k resistor and 10nF cap to VDD. (Third attachment)

I was under the impression that the load terminals should be extremely high impedance when no current flows through the control side.

When current flows through the control side, the signal passes through with no problems.

Is there an explanation of why the signal is able to pass through the switch, even though the switch *should* be in the open state? Possibly something related to the output of the switch floating?

Thanks,
Matt
madires:
The two back-to-back MOSFETs in the optocoupler have a leakage current. The datasheet states max. 1µA. This is the reason why you need a pull-up resistor.
SiliconWizard:
Leakage current in the off state as madires said.

Even if it were a perfect switch, a pull-up resistor would still be necessary anyway, otherwise, in the off state, the input of your buffer would be left floating, which would cause other problems.

Is the capacitor necessary though?
Wolfram:
What's the capacitance across the optocoupler when it's off, and what's the input capacitance of your logic gate? These will form a capacitive voltage divider, potentially transmitting a significant fraction of your logic signal even when the optocoupler is off. Loading the logic line with 10 nF seems excessive, you can probably use a much lower value capacitor here.
mattg443:
Thanks for the replies. It helped with pointing me in the right direction to start looking.

I found that with a 10k pullup, some of the pulses from the input where still present on the output, even when the device was in the "off state". The pulses where reduced with a 1k pullup, but still present at the output of the buffer.

I agree, 10nF is likely too much capacitance, but it's what I had handy at the time to test.

After some more reading, I understand that there is a this part is a solid state relay, slightly different from an octocoupler.

Ultimately, I would like to implement a SPDT switch using SPST solid state relays. I would like to see a good app note/reference design on how to do this, especially with reference on where pullups/pulldowns are required for using solid state (as opposed to electromechancial) devices.
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod