Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing level translation between STM32 and attenuators #81

Closed
dtcallcock opened this issue Jun 11, 2020 · 8 comments
Closed

Missing level translation between STM32 and attenuators #81

dtcallcock opened this issue Jun 11, 2020 · 8 comments

Comments

@dtcallcock
Copy link
Member

See here: quartiq/stabilizer#103

@hartytp
Copy link

hartytp commented Jun 12, 2020

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
Copy link
Member

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

@dnadlinger
Copy link
Member

Can be closed, then?

@jordens
Copy link
Member

jordens commented Jun 15, 2020

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
Copy link

hartytp commented Jun 15, 2020

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

@gkasprow
Copy link
Member

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

@gkasprow
Copy link
Member

We can add pullup to fix the potential issues

@dtcallcock dtcallcock reopened this Jun 18, 2020
@gkasprow
Copy link
Member

added 10k pullups on MOSI and SCK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants