Electronic – Logic level translations

logic-levelspi

Have you ever had any experience with an ADG3304 IC? I've prepared a circuit which allows to translate logic levels in SPI interface.

I want my circuit to be compatible with both 1.8V and 3.3V logic levels. That's why I used a relay for selecting the output voltage. My master device is attached to Y-signed pins and slave is opposite. My problem is that I can't communicate with neither 3.3V nor 1.8V-supplied slaved-devices. The circuit of the voltage selector works good.

What could be a possible issue?

enter image description here

I used a logic analyzer to check periods. The first screen is wrong communication

enter image description here

This one is correct:

enter image description here

I tried 3 another methods:
– I added decoupled capacitors near VCCa any VCCy (100 nF)
– CS pin has been pulled up to VCC via a 10k resistor
– Voltage divider has been created on a MISO line with 2 10k resistors

Still no results. SPI doesn't work

Best Answer

As discussed in the remarks, you can operate the IC with Vcca = Vccy = 3.3V.
But make sure your circuit satisfies the description given in POWER SUPPLIES on page 17 of the datasheet. So, power VCCY first and then VCCA, and decouple the VCCA pin and VCCY pin to GND as close as possible to the device.

I'd also advise to get rid of the relay and replace it by (high side) mosfets. This enables you to enable Vout (whether it is 1.8V or 3.3V) after 3.3V is powered up. You could e.g. implement a supervisor IC to enable Vout.