Fix driver circuits

This commit is contained in:
jaseg 2020-10-14 13:06:13 +02:00
parent 226fef1618
commit ac4cbca273
20 changed files with 41565 additions and 37407 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.kicad_pcb-bak
*-backups

File diff suppressed because it is too large Load diff

View file

@ -56,14 +56,18 @@ int main(void) {
(1<<GPIO_MODER_MODER4_Pos)| /* PA4 - Port 4 */ (1<<GPIO_MODER_MODER4_Pos)| /* PA4 - Port 4 */
(1<<GPIO_MODER_MODER9_Pos); /* PA9 - LED */ (1<<GPIO_MODER_MODER9_Pos); /* PA9 - LED */
int idx = 1; //GPIOA->OTYPER |= (1<<1) | (1<<2) | (1<<3) | (1<<4) | (1<<9);
int idx = 0;
while (1) { while (1) {
GPIOA->ODR ^= (1<<9); GPIOA->ODR ^= (1<<9);
GPIOA->ODR = 2<<idx; GPIOA->ODR &= ~(0xf<<1);
GPIOA->ODR |= 1<<(idx+1);
idx += 1; idx += 1;
if (idx > 4) if (idx > 3)
idx = 1; idx = 0;
for (size_t j=0; j<1000000; j++) {
for (size_t j=0; j<100000; j++) {
asm volatile ("nop"); asm volatile ("nop");
} }
} }

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,14 +1,15 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.99.0-52-gefbc802f4)* G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.99.0-4013-gfd874d834)*
G04 #@! TF.CreationDate,2019-11-04T16:58:42+01:00* G04 #@! TF.CreationDate,2020-10-14T13:04:54+02:00*
G04 #@! TF.ProjectId,remote,72656d6f-7465-42e6-9b69-6361645f7063,rev?* G04 #@! TF.ProjectId,remote,72656d6f-7465-42e6-9b69-6361645f7063,rev?*
G04 #@! TF.SameCoordinates,Original* G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Paste,Bot* G04 #@! TF.FileFunction,Paste,Bot*
G04 #@! TF.FilePolarity,Positive* G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*% %FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.99.0-52-gefbc802f4)) date 2019-11-04 16:58:42* G04 Created by KiCad (PCBNEW (5.99.0-4013-gfd874d834)) date 2020-10-14 13:04:54*
%MOMM*% %MOMM*%
%LPD*% %LPD*%
G01*
G04 APERTURE LIST* G04 APERTURE LIST*
G04 APERTURE END LIST* G04 APERTURE END LIST*
M02* M02*

View file

@ -1,14 +1,15 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.99.0-52-gefbc802f4)* G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.99.0-4013-gfd874d834)*
G04 #@! TF.CreationDate,2019-11-04T16:58:43+01:00* G04 #@! TF.CreationDate,2020-10-14T13:04:54+02:00*
G04 #@! TF.ProjectId,remote,72656d6f-7465-42e6-9b69-6361645f7063,rev?* G04 #@! TF.ProjectId,remote,72656d6f-7465-42e6-9b69-6361645f7063,rev?*
G04 #@! TF.SameCoordinates,Original* G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Legend,Bot* G04 #@! TF.FileFunction,Legend,Bot*
G04 #@! TF.FilePolarity,Positive* G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*% %FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.99.0-52-gefbc802f4)) date 2019-11-04 16:58:43* G04 Created by KiCad (PCBNEW (5.99.0-4013-gfd874d834)) date 2020-10-14 13:04:54*
%MOMM*% %MOMM*%
%LPD*% %LPD*%
G01*
G04 APERTURE LIST* G04 APERTURE LIST*
G04 APERTURE END LIST* G04 APERTURE END LIST*
M02* M02*

View file

@ -1,15 +1,18 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.99.0-52-gefbc802f4)* G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,(5.99.0-4013-gfd874d834)*
G04 #@! TF.CreationDate,2019-11-04T16:58:44+01:00* G04 #@! TF.CreationDate,2020-10-14T13:04:55+02:00*
G04 #@! TF.ProjectId,remote,72656d6f-7465-42e6-9b69-6361645f7063,rev?* G04 #@! TF.ProjectId,remote,72656d6f-7465-42e6-9b69-6361645f7063,rev?*
G04 #@! TF.SameCoordinates,Original* G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Profile,NP* G04 #@! TF.FileFunction,Profile,NP*
%FSLAX46Y46*% %FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW (5.99.0-52-gefbc802f4)) date 2019-11-04 16:58:44* G04 Created by KiCad (PCBNEW (5.99.0-4013-gfd874d834)) date 2020-10-14 13:04:55*
%MOMM*% %MOMM*%
%LPD*% %LPD*%
G01*
G04 APERTURE LIST* G04 APERTURE LIST*
G04 #@! TA.AperFunction,Profile*
%ADD10C,0.050000*% %ADD10C,0.050000*%
G04 #@! TD*
G04 APERTURE END LIST* G04 APERTURE END LIST*
D10* D10*
X151250000Y-165500000D02* X151250000Y-165500000D02*

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,8 @@
M48 M48
; DRILL file {KiCad (5.99.0-52-gefbc802f4)} date Mon Nov 4 16:58:40 2019 ; DRILL file {KiCad (5.99.0-4013-gfd874d834)} date Wed Oct 14 13:04:51 2020
; FORMAT={-:-/ absolute / inch / decimal} ; FORMAT={-:-/ absolute / inch / decimal}
; #@! TF.CreationDate,2019-11-04T16:58:40+01:00 ; #@! TF.CreationDate,2020-10-14T13:04:51+02:00
; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.99.0-52-gefbc802f4) ; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.99.0-4013-gfd874d834)
; #@! TF.FileFunction,NonPlated,1,2,NPTH ; #@! TF.FileFunction,NonPlated,1,2,NPTH
FMAT,2 FMAT,2
INCH INCH
@ -17,12 +17,12 @@ X6.1339Y-4.7874
T2 T2
X6.1122Y-6.3386 X6.1122Y-6.3386
X6.1122Y-3.0315 X6.1122Y-3.0315
X7.1752Y-6.3386
X7.687Y-4.685
X7.687Y-3.7008
X6.1122Y-3.7008
X6.1122Y-5.6693
X7.687Y-5.6693 X7.687Y-5.6693
X7.687Y-4.685
X6.1122Y-5.6693
X7.687Y-3.7008
X7.1752Y-6.3386
X7.1752Y-3.0315 X7.1752Y-3.0315
X6.1122Y-3.7008
T0 T0
M30 M30

View file

@ -1,8 +1,8 @@
M48 M48
; DRILL file {KiCad (5.99.0-52-gefbc802f4)} date Mon Nov 4 16:58:40 2019 ; DRILL file {KiCad (5.99.0-4013-gfd874d834)} date Wed Oct 14 13:04:51 2020
; FORMAT={-:-/ absolute / inch / decimal} ; FORMAT={-:-/ absolute / inch / decimal}
; #@! TF.CreationDate,2019-11-04T16:58:40+01:00 ; #@! TF.CreationDate,2020-10-14T13:04:51+02:00
; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.99.0-52-gefbc802f4) ; #@! TF.GenerationSoftware,Kicad,Pcbnew,(5.99.0-4013-gfd874d834)
; #@! TF.FileFunction,Plated,1,2,PTH ; #@! TF.FileFunction,Plated,1,2,PTH
FMAT,2 FMAT,2
INCH INCH
@ -57,14 +57,17 @@ X6.878Y-5.1063
X6.9331Y-4.8661 X6.9331Y-4.8661
X6.9803Y-5.1811 X6.9803Y-5.1811
X7.0679Y-5.2598 X7.0679Y-5.2598
X7.1004Y-4.3287
X7.1102Y-5.4803 X7.1102Y-5.4803
X7.1102Y-5.5472 X7.1102Y-5.5472
X7.1535Y-4.2244 X7.1535Y-4.2244
X7.1949Y-5.5492
X7.248Y-3.2717 X7.248Y-3.2717
X7.252Y-4.374 X7.252Y-4.374
X7.2559Y-5.2362 X7.2559Y-5.2362
X7.2992Y-4.9921 X7.2992Y-4.9921
X7.3189Y-4.8425 X7.3189Y-4.8425
X7.374Y-4.2008
T2 T2
X6.4961Y-4.0339 X6.4961Y-4.0339
X6.4961Y-4.1339 X6.4961Y-4.1339
@ -79,18 +82,18 @@ X7.4803Y-4.0551
X7.4803Y-4.1535 X7.4803Y-4.1535
X7.4803Y-4.2323 X7.4803Y-4.2323
X7.4803Y-4.3307 X7.4803Y-4.3307
X7.4803Y-6.0236
X7.4803Y-6.122
X7.4803Y-6.2008
X7.4803Y-6.2992
X7.4803Y-3.0709
X7.4803Y-3.1693
X7.4803Y-3.248
X7.4803Y-3.3465
X7.4803Y-5.0394 X7.4803Y-5.0394
X7.4803Y-5.1378 X7.4803Y-5.1378
X7.4803Y-5.2165 X7.4803Y-5.2165
X7.4803Y-5.315 X7.4803Y-5.315
X7.4803Y-3.0709
X7.4803Y-6.0236
X7.4803Y-6.2008
X7.4803Y-6.2992
X7.4803Y-3.1693
X7.4803Y-3.248
X7.4803Y-3.3465
X7.4803Y-6.122
T4 T4
X6.2598Y-4.9646 X6.2598Y-4.9646
X6.2795Y-4.4646 X6.2795Y-4.4646
@ -114,11 +117,11 @@ X6.1752Y-4.8356
T8 T8
X7.587Y-3.9343 X7.587Y-3.9343
X7.587Y-4.4516 X7.587Y-4.4516
X7.587Y-4.9185
X7.587Y-5.4358
X7.587Y-5.9028 X7.587Y-5.9028
X7.587Y-6.4201 X7.587Y-6.4201
X7.587Y-2.95 X7.587Y-2.95
X7.587Y-3.4673 X7.587Y-3.4673
X7.587Y-4.9185
X7.587Y-5.4358
T0 T0
M30 M30

File diff suppressed because it is too large Load diff

71
remote.kicad_prl Normal file
View file

@ -0,0 +1,71 @@
{
"board": {
"active_layer": 37,
"active_layer_preset": "",
"hidden_nets": [],
"high_contrast_mode": 0,
"net_color_mode": 1,
"opacity": {
"pads": 1.0,
"tracks": 1.0,
"vias": 1.0,
"zones": 0.6
},
"ratsnest_display_mode": 0,
"selection_filter": {
"dimensions": true,
"footprints": true,
"graphics": true,
"keepouts": true,
"lockedItems": true,
"otherItems": true,
"pads": true,
"text": true,
"tracks": true,
"vias": true,
"zones": true
},
"visible_items": [
0,
1,
2,
3,
4,
5,
6,
8,
9,
10,
11,
12,
13,
14,
15,
16,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
36,
37
],
"visible_layers": "fffffff_ffffffff"
},
"meta": {
"filename": "remote.kicad_prl",
"version": 2
},
"project": {
"files": []
}
}

442
remote.kicad_pro Normal file
View file

@ -0,0 +1,442 @@
{
"board": {
"design_settings": {
"defaults": {
"board_outline_line_width": 0.049999999999999996,
"copper_line_width": 0.19999999999999998,
"copper_text_italic": false,
"copper_text_size_h": 1.5,
"copper_text_size_v": 1.5,
"copper_text_thickness": 0.3,
"copper_text_upright": true,
"courtyard_line_width": 0.049999999999999996,
"dimension_precision": 4,
"dimension_units": 3,
"dimensions": {
"arrow_length": 1270000,
"extension_offset": 500000,
"keep_text_aligned": true,
"suppress_zeroes": false,
"text_position": 0,
"units_format": 1
},
"fab_line_width": 0.09999999999999999,
"fab_text_italic": false,
"fab_text_size_h": 1.0,
"fab_text_size_v": 1.0,
"fab_text_thickness": 0.15,
"fab_text_upright": false,
"other_line_width": 0.09999999999999999,
"other_text_italic": false,
"other_text_size_h": 1.0,
"other_text_size_v": 1.0,
"other_text_thickness": 0.15,
"other_text_upright": true,
"pads": {
"drill": 0.762,
"height": 1.524,
"width": 1.524
},
"silk_line_width": 0.12,
"silk_text_italic": false,
"silk_text_size_h": 1.0,
"silk_text_size_v": 1.0,
"silk_text_thickness": 0.15,
"silk_text_upright": true,
"zones": {
"45_degree_only": false,
"min_clearance": 0.508
}
},
"diff_pair_dimensions": [
{
"gap": 0.0,
"via_gap": 0.0,
"width": 0.0
}
],
"drc_exclusions": [],
"meta": {
"version": 1
},
"rule_severities": {
"annular_width": "error",
"clearance": "error",
"copper_edge_clearance": "error",
"courtyards_overlap": "error",
"diff_pair_gap_out_of_range": "error",
"diff_pair_uncoupled_length_too_long": "error",
"drill_too_small": "error",
"duplicate_footprints": "warning",
"extra_footprint": "warning",
"hole_clearance": "error",
"hole_near_hole": "error",
"invalid_outline": "error",
"item_on_disabled_layer": "error",
"items_not_allowed": "error",
"keepout": "error",
"length_out_of_range": "error",
"malformed_courtyard": "error",
"microvia_drill_too_small": "error",
"missing_courtyard": "ignore",
"missing_footprint": "warning",
"net_conflict": "warning",
"npth_inside_courtyard": "ignore",
"padstack": "error",
"pth_inside_courtyard": "ignore",
"shorting_items": "error",
"silk_over_copper": "error",
"silk_overlap": "error",
"skew_out_of_range": "error",
"too_many_vias": "error",
"track_dangling": "warning",
"track_width": "error",
"tracks_crossing": "error",
"unconnected_items": "error",
"unresolved_variable": "error",
"via_dangling": "warning",
"via_hole_larger_than_pad": "error",
"zone_has_empty_net": "error",
"zones_intersect": "error"
},
"rule_severitieslegacy_courtyards_overlap": true,
"rule_severitieslegacy_no_courtyard_defined": false,
"rules": {
"allow_blind_buried_vias": false,
"allow_microvias": false,
"max_error": 0.005,
"min_clearance": 0.0,
"min_copper_edge_clearance": 0.01,
"min_hole_to_hole": 0.25,
"min_microvia_diameter": 0.19999999999999998,
"min_microvia_drill": 0.09999999999999999,
"min_silk_clearance": 0.0,
"min_through_hole_diameter": 0.3,
"min_track_width": 0.19999999999999998,
"min_via_annular_width": 0.049999999999999996,
"min_via_diameter": 0.39999999999999997,
"solder_mask_clearance": 0.0,
"solder_mask_min_width": 0.0,
"solder_paste_clearance": 0.0,
"solder_paste_margin_ratio": -0.0
},
"track_widths": [
0.0,
0.2,
0.3,
0.5,
0.8,
1.2,
1.8,
2.8
],
"via_dimensions": [
{
"diameter": 0.0,
"drill": 0.0
},
{
"diameter": 0.6,
"drill": 0.3
},
{
"diameter": 0.8,
"drill": 0.4
},
{
"diameter": 1.2,
"drill": 0.6
},
{
"diameter": 2.0,
"drill": 1.0
}
],
"zones_allow_external_fillets": false,
"zones_use_no_outline": true
},
"layer_presets": []
},
"boards": [],
"cvpcb": {
"equivalence_files": []
},
"erc": {
"meta": {
"version": 0
},
"pin_map": [
[
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
0,
1,
0,
1,
0,
2,
2,
2,
2
],
[
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
2
],
[
0,
1,
0,
0,
0,
1,
1,
2,
1,
1,
2
],
[
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
2
],
[
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
1,
2,
0,
1,
0,
2,
2,
2,
2
],
[
0,
2,
0,
1,
0,
1,
0,
2,
0,
0,
2
],
[
0,
2,
1,
1,
0,
1,
0,
2,
0,
0,
2
],
[
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
]
],
"rule_severities": {
"bus_definition_conflict": "error",
"bus_label_syntax": "error",
"bus_to_bus_conflict": "error",
"bus_to_net_conflict": "error",
"different_unit_footprint": "error",
"different_unit_net": "error",
"duplicate_sheet_names": "error",
"global_label_dangling": "warning",
"hier_label_mismatch": "error",
"label_dangling": "error",
"lib_symbol_issues": "warning",
"multiple_net_names": "warning",
"net_not_bus_member": "warning",
"no_connect_connected": "error",
"no_connect_dangling": "error",
"pin_not_connected": "error",
"pin_not_driven": "error",
"pin_to_pin": "warning",
"similar_labels": "warning",
"unresolved_variable": "error",
"wire_dangling": "error"
}
},
"libraries": {
"pinned_footprint_libs": [],
"pinned_symbol_libs": []
},
"meta": {
"filename": "remote.kicad_pro",
"version": 1
},
"net_settings": {
"classes": [
{
"bus_width": 12.0,
"clearance": 0.125,
"diff_pair_gap": 0.25,
"diff_pair_via_gap": 0.25,
"diff_pair_width": 0.2,
"line_style": 0,
"microvia_diameter": 0.3,
"microvia_drill": 0.1,
"name": "Default",
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.25,
"via_diameter": 0.8,
"via_drill": 0.4,
"wire_width": 6.0
},
{
"bus_width": 12.0,
"clearance": 0.2,
"diff_pair_gap": 0.25,
"diff_pair_via_gap": 0.25,
"diff_pair_width": 0.2,
"line_style": 0,
"microvia_diameter": 0.3,
"microvia_drill": 0.1,
"name": "bus",
"nets": [
"/NRF_CE",
"/NRF_IRQ",
"/NRF_MISO",
"/NRF_MOSI",
"/NRF_SCK",
"/NRF_~CSN"
],
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.25,
"via_diameter": 0.8,
"via_drill": 0.4,
"wire_width": 6.0
}
],
"meta": {
"version": 0
},
"net_colors": null
},
"pcbnew": {
"last_paths": {
"gencad": "",
"idf": "",
"netlist": "",
"specctra_dsn": "",
"step": "",
"vmrl": "",
"vrml": ""
},
"page_layout_descr_file": ""
},
"schematic": {
"drawing": {
"default_bus_thickness": 12.0,
"default_junction_size": 40.0,
"default_line_thickness": 6.0,
"default_text_size": 50.0,
"default_wire_thickness": 6.0,
"field_names": [],
"intersheets_ref_prefix": "",
"intersheets_ref_short": false,
"intersheets_ref_show": false,
"intersheets_ref_suffix": "",
"pin_symbol_size": 25.0,
"text_offset_ratio": 0.3
},
"legacy_lib_dir": "",
"legacy_lib_list": [],
"meta": {
"version": 0
},
"net_format_name": "",
"page_layout_descr_file": "",
"plot_directory": "",
"spice_adjust_passive_values": false,
"spice_external_command": "spice \"%I\"",
"subpart_first_id": 65,
"subpart_id_separator": 0
},
"sheets": [
[
"481cdfe7-285c-4fc2-a0db-ac358cf848fd",
""
]
],
"text_variables": {}
}

4052
remote.kicad_sch Normal file

File diff suppressed because it is too large Load diff

Binary file not shown.

BIN
usb_remote_v02.zip Normal file

Binary file not shown.