Skip to content

Commit

Permalink
Add USB diff trace calcs and reroute usb traces
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimos committed Aug 22, 2024
1 parent ff99e85 commit b422afb
Show file tree
Hide file tree
Showing 3 changed files with 3,729 additions and 4,028 deletions.
38 changes: 37 additions & 1 deletion Mad_RP2040.kicad_dru
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,40 @@
(constraint edge_clearance (min 0.3mm))
# V-Cut Panel
# (constraint edge_clearance (min 0.4mm))
)
)


# --- Differential Pair ---
# https://www.pcbway.com/multi-layer-laminated-structure.html
#
# F.Cu, B.Cu: H1=0.1855;Er=4.29
# In1.Cu, In2.Cu: H1=0.1855;H2=1.03;Er=4.29
#
# F.Cu,B.Cu:
# 11W,9S
# 90.3Ohms
#
# In1.Cu,In2.Cu:
# 6W,10S
# 90.8Ohms
#
#
(rule "Differential Pair: Outer"
# Differential Pair Rule for a 4 Layer 1.6mm PCB. F.Cu and B.Cu layers only: 100 Ohm
(layer outer)
(condition "A.NetClass == 'USB")
(constraint track_width (min 10.8mil) (opt 11mil) (max 11.2mil))
# Define min and max otherwise no errers will be thrown
(constraint diff_pair_gap (min 8.5mil) (opt 9mil) (max 9.5mil))
# (constraint clearance (opt 4mil))
)

(rule "Differential Pair - Inner"
# Differential Pair Rule for a 4 Layer 1.6mm PCB. In1.Cu and In2.Cu layers only: 100 Ohm
(layer inner)
(condition "A.NetClass == 'USB")
(constraint track_width (min 5.8mil) (opt 6mil) (max 6.2mil))
(constraint diff_pair_gap (min 9.5mil) (opt 10mil) (max 10.5mil))
# (constraint clearance (opt 4mil))
)

Loading

0 comments on commit b422afb

Please sign in to comment.