Commit 2a96f91
authored
Basic gate driver support for Telsa Model 3 inverter (#49)
Pull in the tested tesla::GateDriver from commit
bc109b82 of the c2000-inverter project for the Tesla
Model 3 inverter native. This targets the STGAP1AS
but this appears to be identical to the STGAP1BS from
a programming perspective.
A simple TeslaModel3 class is created to initialise and
poll the operation of the gate driver.
The Tesla Model 3 inverter board is identified
automatically via the expected resistor divider
network.
The GPIO allocation for the gate driver is a
placeholder only and will need further elaboration.
Tests:
- Core gate driver has been tested with HV on an
original Tesla Model 3 inverter with TI C2000 MCU
and open-loop PWM generation. No faults
experienced in normal operation. Faults trip with
incorrect PWM generation (dead-time, deliberate IO
glitches, etc).
- STM32 code compile tested only.1 parent 9a2ce33 commit 2a96f91
File tree
12 files changed
+1110
-3
lines changed- include
- hw
- src
12 files changed
+1110
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
94 | 119 | | |
95 | 120 | | |
96 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
0 commit comments