-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: main
Are you sure you want to change the base?
Conversation
…to sd-card-reader
sd_card_reader/imgs/kicad-done.png
Outdated
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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 : |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
7fc6afe
to
17c3941
Compare
17c3941
to
ce3913f
Compare
* 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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 : |
There was a problem hiding this comment.
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"]]) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
@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? |
Hi Nazar,
No need to worry about this.
Regards,
-Bhusan
On Aug 29, 2024 at 3:14 AM -0700, hypadr1v3 ***@***.***>, wrote:
@bhusang<https://github.com/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?
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACDNBPJO7E7PTRORP6AIMGDZT3X6NAVCNFSM6AAAAABNKCWZSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXGIZTSMBWHA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
The final design for the SD card reader is complete.