sinara-hw / Pounder

PDH/phase lock signal generator for Stabilizer
5 stars 4 forks source link

Missing level translation between STM32 and attenuators #81

Closed dtcallcock closed 3 years ago

dtcallcock commented 4 years ago

See here: https://github.com/quartiq/stabilizer/issues/103

hartytp commented 4 years ago

Isn't this the same as Urukul?

Interfacing between 5V and 3V3 logic directly isn't an issue so long as all logic thresholds are met and no absolute max rating is exceeded. @gkasprow or @jordens probably remember better than me, but IIRC this was all considered at design time; the logic levels are all fine and the 470Ohm resistors (in combination with the input clamping diodes) were chosen to be large enough to protect the CPLD/microprocessor inputs from the 5V outputs. So, this should all work fine without need for additional translators.

gkasprow commented 4 years ago

Attenuators accept 3V3 logic, H state requires 3V or more. Exactly, 470R is used to avoid clamping

dnadlinger commented 4 years ago

Can be closed, then?

jordens commented 4 years ago

Are the logic levels fine? Certainly not on paper. The attenuators want V_ih = 3 V, STM32H7 gives V_oh = V_dd - 0.4 V = 2.9 V. Same for the CPLD.

hartytp commented 4 years ago

@jordens ok, thanks for elaborating. That does sound a bit marginal then.

gkasprow commented 4 years ago

These Vdd-0.4 are usually specified under resistive load. We don't have such.

gkasprow commented 4 years ago

We can add pullup to fix the potential issues

gkasprow commented 3 years ago

added 10k pullups on MOSI and SCK