Electronic – MCP23017 connection to CD74HC4067 through Diode

diodes

enter image description hereI am connecting a digital output pin from an MCP23017 through a diode (1N4001, forward biased) to a CD74HC4067 input channel. VDD is 5V to all devices.

I am seeing 1.45V on the anode side of the zener and 0.7V on the cathode side. Since the CD74HC4067 is hooked up to the cathode side of the diode, I'm also seeing 0.7V there. If I hook up the CD74HC4067 to the anode side, I see 1.45V there.

I was expecting to see 5.0V-0.7V=4.3V at the anode side of the diode, why am I not seeing that?

If I just connect the diode from 5V to ground, I see 4.3V when it's forward biased.

Any help would be appreciated.

Thanks!

Edit: rectifier diode, not Zener.

Fix found! I had to disconnect GPA1 (accidentally still had it connected).

Best Answer

I suspect you have the MCP23017 pin configured not as an output but as an input with a weak pullup and that you have an as-yet unreported 10K pulldown on the other side of the diode (on the input of the HC4067).

1N400x are just regular very slow rectifier diodes, not Zener diodes.

It's always better to supply an actual schematic, it prevents wasted time and guesses. If you use the schematic button you can edit your question to include a schematic.