Skip to content

Commit

Permalink
Merge pull request #36 from atopile/mawildoer/pull-down-mux-for-boot-pin
Browse files Browse the repository at this point in the history
Fix CAN + boot mux selector
  • Loading branch information
napowderly authored Jul 9, 2024
2 parents 2475686 + e38f206 commit d756462
Show file tree
Hide file tree
Showing 12 changed files with 2,418 additions and 2,851 deletions.
4,772 changes: 2,405 additions & 2,367 deletions elec/layout/default/servo-drive.kicad_pcb

Large diffs are not rendered by default.

231 changes: 0 additions & 231 deletions elec/src/lv2842xlvddcr/elec/layout/default/lv2842xlvddcr 2.kicad_pro

This file was deleted.

98 changes: 0 additions & 98 deletions elec/src/lv2842xlvddcr/lv2842kit 2.ato

This file was deleted.

1 change: 1 addition & 0 deletions elec/src/lv2842xlvddcr/lv2842kit.ato
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module LV2842Kit from Buck:
power_in ~ input_cap.power
input_cap.value = 1uF to 10uF
input_cap.voltage = 30V to 69V
input_cap.package = "0603"

# Output Capacitors
power_out ~ output_cap.power
Expand Down
22 changes: 11 additions & 11 deletions elec/src/micro.ato
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ module Micro:
can ~ can_tranciever.can

# CAN RX and Bootpin are shared, need to be multiplexed externally (backup for SW boot option)
button ~ mux.input_b1
can_tranciever.can_ttl.rx ~ mux.input_b2.io
button ~ mux.input_select_high
can_tranciever.can_ttl.rx ~ mux.input_select_low.io
button ~ micro.PB5 # for enumeration or something while micro is running
mux.output ~ micro.PB8_BOOT0
mux.select ~ micro.PA6
can_tranciever.can_ttl.tx ~ micro.PB9.io

# Pullup reistor to default to boot selction - assert low with PA6 to enable CAN
# Pullup reistor to default to boot selction - drive low with PA6 to enable CAN
select_resistor.1 ~ mux.select.io
select_resistor.2 ~ power.vcc

Expand Down Expand Up @@ -90,8 +90,8 @@ module Micro:
component SN74LVC1G3157DBVR:
"""
Analog multiplexer with two inputs and one output.
control L = input_b1 enabled
control H = input_b2 enabled
select L = input_select_low enabled
select H = input_select_high enabled
"""
footprint = "SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BR"
lcsc_id = "C10426"
Expand All @@ -102,13 +102,13 @@ component SN74LVC1G3157DBVR:
power.vcc ~ pin 5
power.gnd ~ pin 2

input_b1 = new Pair
input_b1.io ~ pin 1
input_b1.gnd ~ power.gnd
input_select_low = new Pair
input_select_low.io ~ pin 3
input_select_low.gnd ~ power.gnd

input_b2 = new Pair
input_b2.io ~ pin 3
input_b2.gnd ~ power.gnd
input_select_high = new Pair
input_select_high.io ~ pin 1
input_select_high.gnd ~ power.gnd

output = new Pair
output.io ~ pin 4
Expand Down
Loading

0 comments on commit d756462

Please sign in to comment.