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

Sd card reader v2 #10

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Sd card reader v2 #10

wants to merge 10 commits into from

Conversation

hypadr1v3
Copy link
Contributor

The final design for the SD card reader is complete.

README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
sd_card_reader/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this picture with the fixed CC resistor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's on the other side of the board

sd_card_reader/main.stanza Outdated Show resolved Hide resolved
set-rules(ocdb/manufacturers/rules/jlcpcb-rules)

; We want decoupling capacitors to be close to the component being decoupled
defn bypass-cap-strap (power-pin:JITXObject, gnd-pin:JITXObject, params:Tuple<KeyValue>) -> JITXObject :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need these functions here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bypass-cap-strap by default can't have parameters in it. The PR to the ocdb isn't complete yet

sd_card_reader/main.stanza Outdated Show resolved Hide resolved
sd_card_reader/main.stanza Outdated Show resolved Hide resolved
sd_card_reader/main.stanza Outdated Show resolved Hide resolved
sd_card_reader/main.stanza Outdated Show resolved Hide resolved
sd_card_reader/main.stanza Outdated Show resolved Hide resolved
sd_card_reader/stanza.proj Outdated Show resolved Hide resolved
* The parameter `"_exist" => ["vendor_part_numbers.lcsc"]` allows us to specify that we require the part to have an LCSC number

#### USB C male connector
Our application uses USB2 so we want to use the USB2 protocol over the USB-C connection. One key aspect of the backwards compatibility is to indicate device type using resistors on the CC1, CC2 pins. In this case, we need a pull-down resistor on the CC1 pin.
Copy link
Contributor

@bhusang bhusang Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to add a link to a reference that describes the requirements for the resistors on CC1/CC2

## Bundles
Bundles allow us to define a set of pins which are commonly used together and allow us to view the design at a higher level. Bundles also make connecting pins easy and foolproof. For example, we can create a bundle called `sd-card-uhs-1-connector` and define every pin required for an SD card. Now we can use this to connect our controller to the SD Card connector within a single `net` statement.

We can create bundles within bundles too to further simplify our code.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Furthermore, we can create bundles within bundles to further simplify our code.

assign-symbol(diode-sym(DiodeLED))
assign-landpattern(lp-led-maker)

defn percent-to-li (percent:Double, min-li:Double, max-li:Double) -> Double :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to spell out what li is -> light-intensity?

net (reg.VOUT power-out.vdd)

bypass-cap-strap(reg.VCC, power-in.gnd, ["capacitance" => 0.1e-6, "_exist" => ["vendor_part_numbers.lcsc"]])
bypass-cap-strap(reg.VOUT, power-out.gnd, ["capacitance" => 0.1e-6, "_exist" => ["vendor_part_numbers.lcsc"]])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Carl just made a change to ocdb to enable to usage of Tuple similar to your pending PR. You should ensure that this code works with the latest OCDB when his PR is merged.

Copy link
Contributor

@bhusang bhusang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of items and we can get this done.

@hypadr1v3
Copy link
Contributor Author

@bhusang sorry, I just realized there was pending work to be done on this. Could I still complete these changes or is this design already too outdated to be used for the cookbook?

@bhusang
Copy link
Contributor

bhusang commented Aug 30, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants