greatscottgadgets / cynthion

USB test instrument
https://greatscottgadgets.com/cynthion/
BSD 3-Clause "New" or "Revised" License
90 stars 21 forks source link

I don't think the aux power works as written? How do I send power to a port? #184

Closed rlewkowicz closed 2 months ago

rlewkowicz commented 2 months ago

Resource("aux_vbus_en", 0, Pins("L2", dir="o"), Attrs(IO_TYPE="LVCMOS33")),

Has this been verified to work for the r1.4 as written? If yes, whats the code to power the aux port via m.d.comb?

mossmann commented 2 months ago

aux_vbus_en has been tested. The purpose of aux_vbus_en when used alone is to pass VBUS power from AUX to TARGET A. If you want to pass power from some other port to AUX, you must enable both aux_vbus_en and either target_c_vbus_en or control_vbus_en.

For background on the power pass-through architecture, see: https://www.crowdsupply.com/great-scott-gadgets/cynthion/updates/cynthion-hardware-design-update

One change since that post is that we turned off TARGET C pass-through when Cynthion is unpowered.

Does this answer your question?

rlewkowicz commented 2 months ago

This is perfect!

rlewkowicz commented 2 months ago

image This is a great image just for reference. I know I'm goofy rambling in half these threads, someone will appreciate it one day I promise. I'm learning fpgas through this platform and amaranth.