mirror of
https://github.com/eddyem/stm32samples.git
synced 2025-12-06 10:45:11 +03:00
sync with development PC; old -> kicad8
This commit is contained in:
parent
c6e8347d23
commit
4a6086a182
Binary file not shown.
@ -35,7 +35,7 @@ static uint32_t maxCnum = 1024 / sizeof(user_conf); // can't use blocksize here
|
||||
.userconf_sz = sizeof(user_conf) \
|
||||
,.CANspeed = 100000 \
|
||||
,.CANID = 0xaa \
|
||||
,.bounce = 50 \
|
||||
,.bounce_ms = 50 \
|
||||
,.adcmul[0] = 10.930f \
|
||||
,.adcmul[1] = 2.028f \
|
||||
,.adcmul[2] = 1.f \
|
||||
|
||||
@ -1,326 +1,703 @@
|
||||
(kicad_sch (version 20230121) (generator eeschema)
|
||||
|
||||
(uuid c774fcd8-2321-49e3-82b6-f080291ee83c)
|
||||
|
||||
(kicad_sch
|
||||
(version 20240101)
|
||||
(generator "eeschema")
|
||||
(generator_version "8.99")
|
||||
(uuid "c774fcd8-2321-49e3-82b6-f080291ee83c")
|
||||
(paper "A4")
|
||||
|
||||
(lib_symbols
|
||||
(symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
|
||||
(property "Reference" "R" (at 2.032 0 90)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
(symbol "Device:R"
|
||||
(pin_numbers hide)
|
||||
(pin_names
|
||||
(offset 0)
|
||||
)
|
||||
(property "Value" "R" (at 0 0 90)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
(exclude_from_sim no)
|
||||
(in_bom yes)
|
||||
(on_board yes)
|
||||
(property "Reference" "R"
|
||||
(at 2.032 0 90)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(property "Footprint" "" (at -1.778 0 90)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "Datasheet" "~" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "ki_keywords" "R res resistor" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
(property "Value" "R"
|
||||
(at 0 0 90)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(property "ki_description" "Resistor" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "ki_fp_filters" "R_*" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "Footprint" ""
|
||||
(at -1.778 0 90)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Datasheet" "~"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Description" "Resistor"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "ki_keywords" "R res resistor"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "ki_fp_filters" "R_*"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(symbol "R_0_1"
|
||||
(rectangle (start -1.016 -2.54) (end 1.016 2.54)
|
||||
(stroke (width 0.254) (type default))
|
||||
(fill (type none))
|
||||
(rectangle
|
||||
(start -1.016 -2.54)
|
||||
(end 1.016 2.54)
|
||||
(stroke
|
||||
(width 0.254)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
)
|
||||
)
|
||||
(symbol "R_1_1"
|
||||
(pin passive line (at 0 3.81 270) (length 1.27)
|
||||
(name "~" (effects (font (size 1.27 1.27))))
|
||||
(number "1" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 0 -3.81 90) (length 1.27)
|
||||
(name "~" (effects (font (size 1.27 1.27))))
|
||||
(number "2" (effects (font (size 1.27 1.27))))
|
||||
(pin passive line
|
||||
(at 0 3.81 270)
|
||||
(length 1.27)
|
||||
(name "~"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
)
|
||||
(symbol "Isolator:PC817" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
|
||||
(property "Reference" "U" (at -5.08 5.08 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(number "1"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(property "Value" "PC817" (at 0 5.08 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
)
|
||||
(property "Footprint" "Package_DIP:DIP-4_W7.62mm" (at -5.08 -5.08 0)
|
||||
(effects (font (size 1.27 1.27) italic) (justify left) hide)
|
||||
)
|
||||
(property "Datasheet" "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left) hide)
|
||||
)
|
||||
(property "ki_keywords" "NPN DC Optocoupler" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
(pin passive line
|
||||
(at 0 -3.81 90)
|
||||
(length 1.27)
|
||||
(name "~"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(property "ki_description" "DC Optocoupler, Vce 35V, CTR 50-300%, DIP-4" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "ki_fp_filters" "DIP*W7.62mm*" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(number "2"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(symbol "Isolator:PC817"
|
||||
(pin_names
|
||||
(offset 1.016)
|
||||
)
|
||||
(exclude_from_sim no)
|
||||
(in_bom yes)
|
||||
(on_board yes)
|
||||
(property "Reference" "U"
|
||||
(at -5.08 5.08 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
)
|
||||
(property "Value" "PC817"
|
||||
(at 0 5.08 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
)
|
||||
(property "Footprint" "Package_DIP:DIP-4_W7.62mm"
|
||||
(at -5.08 -5.08 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
(italic yes)
|
||||
)
|
||||
(justify left)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Datasheet" "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Description" "DC Optocoupler, Vce 35V, CTR 50-300%, DIP-4"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "ki_keywords" "NPN DC Optocoupler"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "ki_fp_filters" "DIP*W7.62mm*"
|
||||
(at 0 0 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(symbol "PC817_0_1"
|
||||
(rectangle (start -5.08 3.81) (end 5.08 -3.81)
|
||||
(stroke (width 0.254) (type default))
|
||||
(fill (type background))
|
||||
(rectangle
|
||||
(start -5.08 3.81)
|
||||
(end 5.08 -3.81)
|
||||
(stroke
|
||||
(width 0.254)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type background)
|
||||
)
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy -3.175 -0.635)
|
||||
(xy -1.905 -0.635)
|
||||
(xy -3.175 -0.635) (xy -1.905 -0.635)
|
||||
)
|
||||
(stroke
|
||||
(width 0.254)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0.254) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy 2.54 0.635)
|
||||
(xy 4.445 2.54)
|
||||
(xy 2.54 0.635) (xy 4.445 2.54)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy 4.445 -2.54)
|
||||
(xy 2.54 -0.635)
|
||||
(xy 4.445 -2.54) (xy 2.54 -0.635)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type outline)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type outline))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy 4.445 -2.54)
|
||||
(xy 5.08 -2.54)
|
||||
(xy 4.445 -2.54) (xy 5.08 -2.54)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy 4.445 2.54)
|
||||
(xy 5.08 2.54)
|
||||
(xy 4.445 2.54) (xy 5.08 2.54)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy -5.08 2.54)
|
||||
(xy -2.54 2.54)
|
||||
(xy -2.54 -0.635)
|
||||
(xy -5.08 2.54) (xy -2.54 2.54) (xy -2.54 -0.635)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy -2.54 -0.635)
|
||||
(xy -2.54 -2.54)
|
||||
(xy -5.08 -2.54)
|
||||
(xy -2.54 -0.635) (xy -2.54 -2.54) (xy -5.08 -2.54)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy 2.54 1.905)
|
||||
(xy 2.54 -1.905)
|
||||
(xy 2.54 -1.905)
|
||||
(xy 2.54 1.905) (xy 2.54 -1.905) (xy 2.54 -1.905)
|
||||
)
|
||||
(stroke
|
||||
(width 0.508)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0.508) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy -2.54 -0.635)
|
||||
(xy -3.175 0.635)
|
||||
(xy -1.905 0.635)
|
||||
(xy -2.54 -0.635)
|
||||
(xy -2.54 -0.635) (xy -3.175 0.635) (xy -1.905 0.635) (xy -2.54 -0.635)
|
||||
)
|
||||
(stroke
|
||||
(width 0.254)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0.254) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy -0.508 -0.508)
|
||||
(xy 0.762 -0.508)
|
||||
(xy 0.381 -0.635)
|
||||
(xy 0.381 -0.381)
|
||||
(xy 0.762 -0.508)
|
||||
(xy -0.508 -0.508) (xy 0.762 -0.508) (xy 0.381 -0.635) (xy 0.381 -0.381) (xy 0.762 -0.508)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy -0.508 0.508)
|
||||
(xy 0.762 0.508)
|
||||
(xy 0.381 0.381)
|
||||
(xy 0.381 0.635)
|
||||
(xy 0.762 0.508)
|
||||
(xy -0.508 0.508) (xy 0.762 0.508) (xy 0.381 0.381) (xy 0.381 0.635) (xy 0.762 0.508)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type none)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type none))
|
||||
)
|
||||
(polyline
|
||||
(pts
|
||||
(xy 3.048 -1.651)
|
||||
(xy 3.556 -1.143)
|
||||
(xy 4.064 -2.159)
|
||||
(xy 3.048 -1.651)
|
||||
(xy 3.048 -1.651)
|
||||
(xy 3.048 -1.651) (xy 3.556 -1.143) (xy 4.064 -2.159) (xy 3.048 -1.651) (xy 3.048 -1.651)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(fill
|
||||
(type outline)
|
||||
)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type outline))
|
||||
)
|
||||
)
|
||||
(symbol "PC817_1_1"
|
||||
(pin passive line (at -7.62 2.54 0) (length 2.54)
|
||||
(name "~" (effects (font (size 1.27 1.27))))
|
||||
(number "1" (effects (font (size 1.27 1.27))))
|
||||
(pin passive line
|
||||
(at -7.62 2.54 0)
|
||||
(length 2.54)
|
||||
(name "~"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(pin passive line (at -7.62 -2.54 0) (length 2.54)
|
||||
(name "~" (effects (font (size 1.27 1.27))))
|
||||
(number "2" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 7.62 -2.54 180) (length 2.54)
|
||||
(name "~" (effects (font (size 1.27 1.27))))
|
||||
(number "3" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin passive line (at 7.62 2.54 180) (length 2.54)
|
||||
(name "~" (effects (font (size 1.27 1.27))))
|
||||
(number "4" (effects (font (size 1.27 1.27))))
|
||||
(number "1"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
(wire (pts (xy 129.413 54.229) (xy 124.46 54.229))
|
||||
(stroke (width 0) (type default))
|
||||
(uuid 2f25ebff-821d-424a-a5e6-7aaeb1db0afa)
|
||||
(pin passive line
|
||||
(at -7.62 -2.54 0)
|
||||
(length 2.54)
|
||||
(name "~"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(wire (pts (xy 124.46 59.309) (xy 129.286 59.309))
|
||||
(stroke (width 0) (type default))
|
||||
(uuid f4fc9d10-1e63-4e24-a02b-556e4b39b19c)
|
||||
)
|
||||
|
||||
(hierarchical_label "EXT5V" (shape input) (at 109.22 46.609 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid 0b20c453-dee8-4cc6-90fe-d346e6222768)
|
||||
)
|
||||
(hierarchical_label "In" (shape input) (at 129.413 54.229 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid 8e6bd8d7-45cc-4e50-9857-61670736c481)
|
||||
(number "2"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hierarchical_label "gnd" (shape input) (at 129.286 59.309 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid ab6c4d70-58f2-4e0b-88e2-6f2d9aeddb16)
|
||||
)
|
||||
(hierarchical_label "EXTi" (shape input) (at 109.22 59.309 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid c868a95d-cc21-426a-9cfd-3f9543b753be)
|
||||
)
|
||||
|
||||
(symbol (lib_id "Device:R") (at 109.22 50.419 0) (unit 1)
|
||||
(in_bom yes) (on_board yes) (dnp no)
|
||||
(uuid 09735fc2-1580-4524-a728-ca09449b348a)
|
||||
(property "Reference" "R31" (at 110.998 49.5843 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
)
|
||||
(property "Value" "360" (at 109.093 51.943 90)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(pin passive line
|
||||
(at 7.62 -2.54 180)
|
||||
(length 2.54)
|
||||
(name "~"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder" (at 107.442 50.419 90)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "Datasheet" "~" (at 109.22 50.419 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(pin "1" (uuid d8e2831f-0444-4eb0-a255-0be00f3eb495))
|
||||
(pin "2" (uuid 450e036f-cbf0-46f9-86d8-88929d707ae4))
|
||||
(number "3"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(pin passive line
|
||||
(at 7.62 2.54 180)
|
||||
(length 2.54)
|
||||
(name "~"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
)
|
||||
(number "4"
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(wire
|
||||
(pts
|
||||
(xy 129.413 54.229) (xy 124.46 54.229)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(uuid "2f25ebff-821d-424a-a5e6-7aaeb1db0afa")
|
||||
)
|
||||
(wire
|
||||
(pts
|
||||
(xy 124.46 59.309) (xy 129.286 59.309)
|
||||
)
|
||||
(stroke
|
||||
(width 0)
|
||||
(type default)
|
||||
)
|
||||
(uuid "f4fc9d10-1e63-4e24-a02b-556e4b39b19c")
|
||||
)
|
||||
(hierarchical_label "EXT5V"
|
||||
(shape input)
|
||||
(at 109.22 46.609 0)
|
||||
(fields_autoplaced yes)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
(uuid "0b20c453-dee8-4cc6-90fe-d346e6222768")
|
||||
)
|
||||
(hierarchical_label "In"
|
||||
(shape input)
|
||||
(at 129.413 54.229 0)
|
||||
(fields_autoplaced yes)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
(uuid "8e6bd8d7-45cc-4e50-9857-61670736c481")
|
||||
)
|
||||
(hierarchical_label "gnd"
|
||||
(shape input)
|
||||
(at 129.286 59.309 0)
|
||||
(fields_autoplaced yes)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
(uuid "ab6c4d70-58f2-4e0b-88e2-6f2d9aeddb16")
|
||||
)
|
||||
(hierarchical_label "EXTi"
|
||||
(shape input)
|
||||
(at 109.22 59.309 180)
|
||||
(fields_autoplaced yes)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify right)
|
||||
)
|
||||
(uuid "c868a95d-cc21-426a-9cfd-3f9543b753be")
|
||||
)
|
||||
(symbol
|
||||
(lib_id "Device:R")
|
||||
(at 109.22 50.419 0)
|
||||
(unit 1)
|
||||
(exclude_from_sim no)
|
||||
(in_bom yes)
|
||||
(on_board yes)
|
||||
(dnp no)
|
||||
(uuid "09735fc2-1580-4524-a728-ca09449b348a")
|
||||
(property "Reference" "R31"
|
||||
(at 110.998 49.5843 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
)
|
||||
(property "Value" "360"
|
||||
(at 109.093 51.943 90)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
)
|
||||
)
|
||||
(property "Footprint" "Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolder"
|
||||
(at 107.442 50.419 90)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Datasheet" "~"
|
||||
(at 109.22 50.419 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Description" ""
|
||||
(at 109.22 50.419 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(pin "1"
|
||||
(uuid "d8e2831f-0444-4eb0-a255-0be00f3eb495")
|
||||
)
|
||||
(pin "2"
|
||||
(uuid "450e036f-cbf0-46f9-86d8-88929d707ae4")
|
||||
)
|
||||
(instances
|
||||
(project "stm32"
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/311a5cb3-0370-4a86-a5e8-6335fee47f9a"
|
||||
(reference "R31") (unit 1)
|
||||
(reference "R31")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/2b18f3bb-219b-4cc5-8bc9-bc122d6e81e9"
|
||||
(reference "R35") (unit 1)
|
||||
(reference "R35")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/c51c7789-4b67-42c9-a921-b1066b3f95ba"
|
||||
(reference "R37") (unit 1)
|
||||
(reference "R37")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/737c47dd-2cc5-4c23-ab54-7bef18beb2a3"
|
||||
(reference "R32") (unit 1)
|
||||
(reference "R32")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/0ff6ac13-ac49-41f0-9506-376ccd8b8ba4"
|
||||
(reference "R33") (unit 1)
|
||||
(reference "R33")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/1cf77ae7-411e-49cc-bbff-6947c0aa32bd"
|
||||
(reference "R34") (unit 1)
|
||||
(reference "R34")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/d7c9ec36-f6b4-4bc2-8e9a-7a0792b9eff0"
|
||||
(reference "R36") (unit 1)
|
||||
(reference "R36")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/e5255d96-2d32-432c-bf31-9afa6ac7ec6a"
|
||||
(reference "R38") (unit 1)
|
||||
(reference "R38")
|
||||
(unit 1)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(symbol (lib_id "Isolator:PC817") (at 116.84 56.769 0) (unit 1)
|
||||
(in_bom yes) (on_board yes) (dnp no) (fields_autoplaced)
|
||||
(uuid 400c154c-5d09-4b90-bd4d-4cdbee68e158)
|
||||
(property "Reference" "U11" (at 116.84 49.2592 0)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
(symbol
|
||||
(lib_id "Isolator:PC817")
|
||||
(at 116.84 56.769 0)
|
||||
(unit 1)
|
||||
(exclude_from_sim no)
|
||||
(in_bom yes)
|
||||
(on_board yes)
|
||||
(dnp no)
|
||||
(fields_autoplaced yes)
|
||||
(uuid "400c154c-5d09-4b90-bd4d-4cdbee68e158")
|
||||
(property "Reference" "U11"
|
||||
(at 116.84 49.2592 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(property "Value" "PC817" (at 116.84 51.7961 0)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
)
|
||||
(property "Footprint" "Package_DIP:DIP-4_W7.62mm" (at 111.76 61.849 0)
|
||||
(effects (font (size 1.27 1.27) italic) (justify left) hide)
|
||||
)
|
||||
(property "Datasheet" "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf" (at 116.84 56.769 0)
|
||||
(effects (font (size 1.27 1.27)) (justify left) hide)
|
||||
(property "Value" "PC817"
|
||||
(at 116.84 51.7961 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
)
|
||||
)
|
||||
(property "Footprint" "Package_DIP:DIP-4_W7.62mm"
|
||||
(at 111.76 61.849 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
(italic yes)
|
||||
)
|
||||
(justify left)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Datasheet" "http://www.soselectronic.cz/a_info/resource/d/pc817.pdf"
|
||||
(at 116.84 56.769 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(justify left)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(property "Description" ""
|
||||
(at 116.84 56.769 0)
|
||||
(effects
|
||||
(font
|
||||
(size 1.27 1.27)
|
||||
)
|
||||
(hide yes)
|
||||
)
|
||||
)
|
||||
(pin "1"
|
||||
(uuid "91cf025a-067c-492c-bcee-1aa442b5190b")
|
||||
)
|
||||
(pin "2"
|
||||
(uuid "92a29dae-4114-4ac4-b292-3f9303033fe3")
|
||||
)
|
||||
(pin "3"
|
||||
(uuid "22931c93-52d3-4f9e-a51a-72db694a5d75")
|
||||
)
|
||||
(pin "4"
|
||||
(uuid "493f9777-02f4-4e33-a6e5-ec3981392cf3")
|
||||
)
|
||||
(pin "1" (uuid 91cf025a-067c-492c-bcee-1aa442b5190b))
|
||||
(pin "2" (uuid 92a29dae-4114-4ac4-b292-3f9303033fe3))
|
||||
(pin "3" (uuid 22931c93-52d3-4f9e-a51a-72db694a5d75))
|
||||
(pin "4" (uuid 493f9777-02f4-4e33-a6e5-ec3981392cf3))
|
||||
(instances
|
||||
(project "stm32"
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/311a5cb3-0370-4a86-a5e8-6335fee47f9a"
|
||||
(reference "U11") (unit 1)
|
||||
(reference "U11")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/2b18f3bb-219b-4cc5-8bc9-bc122d6e81e9"
|
||||
(reference "U15") (unit 1)
|
||||
(reference "U15")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/c51c7789-4b67-42c9-a921-b1066b3f95ba"
|
||||
(reference "U17") (unit 1)
|
||||
(reference "U17")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/737c47dd-2cc5-4c23-ab54-7bef18beb2a3"
|
||||
(reference "U12") (unit 1)
|
||||
(reference "U12")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/0ff6ac13-ac49-41f0-9506-376ccd8b8ba4"
|
||||
(reference "U13") (unit 1)
|
||||
(reference "U13")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/1cf77ae7-411e-49cc-bbff-6947c0aa32bd"
|
||||
(reference "U14") (unit 1)
|
||||
(reference "U14")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/d7c9ec36-f6b4-4bc2-8e9a-7a0792b9eff0"
|
||||
(reference "U16") (unit 1)
|
||||
(reference "U16")
|
||||
(unit 1)
|
||||
)
|
||||
(path "/f40cbe7e-cd25-45e5-a6cb-d92457495048/e5255d96-2d32-432c-bf31-9afa6ac7ec6a"
|
||||
(reference "U18") (unit 1)
|
||||
(reference "U18")
|
||||
(unit 1)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -67,11 +67,30 @@
|
||||
"visible_layers": "fffffff_ffffffff",
|
||||
"zone_display_mode": 0
|
||||
},
|
||||
"git": {
|
||||
"repo_password": "",
|
||||
"repo_type": "",
|
||||
"repo_username": "",
|
||||
"ssh_key": ""
|
||||
},
|
||||
"meta": {
|
||||
"filename": "stm32.kicad_prl",
|
||||
"version": 3
|
||||
},
|
||||
"project": {
|
||||
"files": []
|
||||
},
|
||||
"schematic": {
|
||||
"selection_filter": {
|
||||
"graphics": true,
|
||||
"images": true,
|
||||
"labels": true,
|
||||
"lockedItems": false,
|
||||
"otherItems": true,
|
||||
"pins": true,
|
||||
"symbols": true,
|
||||
"text": true,
|
||||
"wires": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -204,6 +204,13 @@
|
||||
"zones_allow_external_fillets": false,
|
||||
"zones_use_no_outline": true
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
@ -398,10 +405,12 @@
|
||||
"duplicate_sheet_names": "error",
|
||||
"endpoint_off_grid": "warning",
|
||||
"extra_units": "error",
|
||||
"footprint_link_issues": "warning",
|
||||
"global_label_dangling": "warning",
|
||||
"hier_label_mismatch": "error",
|
||||
"label_dangling": "error",
|
||||
"lib_symbol_issues": "warning",
|
||||
"lib_symbol_mismatch": "warning",
|
||||
"missing_bidi_pin": "warning",
|
||||
"missing_input_pin": "warning",
|
||||
"missing_power_pin": "error",
|
||||
@ -496,14 +505,75 @@
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "stm32.net",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"annotate_start_num": 0,
|
||||
"bom_fmt_presets": [],
|
||||
"bom_fmt_settings": {
|
||||
"field_delimiter": ",",
|
||||
"keep_line_breaks": false,
|
||||
"keep_tabs": false,
|
||||
"name": "CSV",
|
||||
"ref_delimiter": ",",
|
||||
"ref_range_delimiter": "",
|
||||
"string_delimiter": "\""
|
||||
},
|
||||
"bom_presets": [],
|
||||
"bom_settings": {
|
||||
"exclude_dnp": false,
|
||||
"fields_ordered": [
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Reference",
|
||||
"name": "Reference",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": true,
|
||||
"label": "Value",
|
||||
"name": "Value",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Datasheet",
|
||||
"name": "Datasheet",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Footprint",
|
||||
"name": "Footprint",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Qty",
|
||||
"name": "${QUANTITY}",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": true,
|
||||
"label": "DNP",
|
||||
"name": "${DNP}",
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"filter_string": "",
|
||||
"group_symbols": true,
|
||||
"name": "Grouped By Value",
|
||||
"sort_asc": true,
|
||||
"sort_field": "Reference"
|
||||
},
|
||||
"connection_grid_size": 50.0,
|
||||
"drawing": {
|
||||
"dashed_lines_dash_length_ratio": 12.0,
|
||||
"dashed_lines_gap_length_ratio": 3.0,
|
||||
@ -517,6 +587,11 @@
|
||||
"intersheets_ref_suffix": "",
|
||||
"junction_size_choice": 3,
|
||||
"label_size_ratio": 0.25,
|
||||
"operating_point_overlay_i_precision": 3,
|
||||
"operating_point_overlay_i_range": "~A",
|
||||
"operating_point_overlay_v_precision": 3,
|
||||
"operating_point_overlay_v_range": "~V",
|
||||
"overbar_offset_ratio": 1.23,
|
||||
"pin_symbol_size": 0.0,
|
||||
"text_offset_ratio": 0.08
|
||||
},
|
||||
@ -542,6 +617,7 @@
|
||||
"spice_external_command": "spice \"%I\"",
|
||||
"spice_model_current_sheet_as_root": true,
|
||||
"spice_save_all_currents": false,
|
||||
"spice_save_all_dissipations": false,
|
||||
"spice_save_all_voltages": false,
|
||||
"subpart_first_id": 65,
|
||||
"subpart_id_separator": 0
|
||||
@ -549,7 +625,7 @@
|
||||
"sheets": [
|
||||
[
|
||||
"f40cbe7e-cd25-45e5-a6cb-d92457495048",
|
||||
""
|
||||
"Root"
|
||||
],
|
||||
[
|
||||
"311a5cb3-0370-4a86-a5e8-6335fee47f9a",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,123 +0,0 @@
|
||||
/*
|
||||
* This file is part of the canbus4bta project.
|
||||
* Copyright 2023 Edward V. Emelianov <edward.emelianoff@gmail.com>.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "adc.h"
|
||||
#include "proto.h"
|
||||
#include "strfunc.h"
|
||||
#include "usart.h"
|
||||
#include "usb.h"
|
||||
#include "version.inc"
|
||||
|
||||
const char* helpmsg =
|
||||
"https://github.com/eddyem/stm32samples/tree/master/F3:F303/CANbus4BTA build#" BUILD_NUMBER " @ " BUILD_DATE "\n"
|
||||
"'a' - print ADC values\n"
|
||||
"'i' - print USB->ISTR state\n"
|
||||
"'p' - toggle USB pullup\n"
|
||||
"'N' - read number (dec, 0xhex, 0oct, bbin) and show it in decimal\n"
|
||||
"'R' - software reset\n"
|
||||
"'T' - get MCU T\n"
|
||||
"'U' - get USB status\n"
|
||||
"'W' - test watchdog\n"
|
||||
;
|
||||
|
||||
static char stbuf[256], *bptr = NULL;
|
||||
static int blen = 0;
|
||||
static void initbuf(){bptr = stbuf; blen = 255; *bptr = 0;}
|
||||
static void bufputchar(char c){
|
||||
if(blen == 0) return;
|
||||
*bptr++ = c; --blen;
|
||||
*bptr = 0;
|
||||
}
|
||||
static void add2buf(const char *s){
|
||||
while(blen && *s){
|
||||
*bptr++ = *s++;
|
||||
--blen;
|
||||
}
|
||||
*bptr = 0;
|
||||
}
|
||||
|
||||
extern uint8_t usbON;
|
||||
const char *parse_cmd(const char *buf){
|
||||
initbuf();
|
||||
if(buf[1] == '\n' || !buf[1]){ // one symbol commands
|
||||
switch(*buf){
|
||||
case 'a':
|
||||
for(int i = 0; i < ADC_TSENS; ++i){
|
||||
bufputchar('A'); bufputchar(i+'0'); bufputchar('=');
|
||||
add2buf(u2str(getADCval(i))); bufputchar('\n');
|
||||
}
|
||||
return stbuf;
|
||||
break;
|
||||
case 'i':
|
||||
add2buf("USB->ISTR=");
|
||||
add2buf(uhex2str(USB->ISTR));
|
||||
add2buf(", USB->CNTR=");
|
||||
add2buf(uhex2str(USB->CNTR));
|
||||
break;
|
||||
case 'p':
|
||||
pin_toggle(USBPU_port, USBPU_pin);
|
||||
add2buf("USB pullup is ");
|
||||
if(pin_read(USBPU_port, USBPU_pin)) add2buf("off");
|
||||
else add2buf("on");
|
||||
break;
|
||||
case 'R':
|
||||
USB_sendstr("Soft reset\n");
|
||||
NVIC_SystemReset();
|
||||
break;
|
||||
case 'T':
|
||||
add2buf("T=");
|
||||
add2buf(float2str(getMCUtemp(), 1));
|
||||
break;
|
||||
case 'U':
|
||||
add2buf("USB status: ");
|
||||
if(usbON) add2buf("ON");
|
||||
else add2buf("OFF");
|
||||
break;
|
||||
case 'W':
|
||||
USB_sendstr("Wait for reboot\n");
|
||||
usart_send("Wait for reboot\n");
|
||||
while(1){nop();};
|
||||
break;
|
||||
default:
|
||||
return helpmsg;
|
||||
}
|
||||
bufputchar('\n');
|
||||
return stbuf;
|
||||
}
|
||||
uint32_t Num = 0;
|
||||
const char *nxt;
|
||||
switch(*buf){ // long messages
|
||||
case 'N':
|
||||
++buf;
|
||||
nxt = getnum(buf, &Num);
|
||||
if(buf == nxt){
|
||||
if(Num == 0) return "Wrong number\n";
|
||||
return "Integer32 overflow\n";
|
||||
}
|
||||
add2buf("You give: ");
|
||||
add2buf(u2str(Num));
|
||||
if(*nxt && *nxt != '\n'){
|
||||
add2buf(", the rest of string: ");
|
||||
add2buf(nxt);
|
||||
}else add2buf("\n");
|
||||
break;
|
||||
default:
|
||||
return buf;
|
||||
}
|
||||
return stbuf;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user