Load short circuit protection using analog COMP2

- Immediate load cut-off in case of current > 2x rated current (still to be fine-tuned)
- Using built-in comparator of STM32 MCU
- Currently only supported by PWM charge controller PCB, as it doesn't have an internal fuse
This commit is contained in:
Martin Jaeger
2019-05-27 16:41:30 +02:00
parent 977002b0e7
commit 5a264e9332
3 changed files with 76 additions and 10 deletions
+1
View File
@@ -40,6 +40,7 @@
#define PIN_LOAD_DIS PB_2
#define PIN_USB_PWR_DIS PB_5
#define PIN_I_LOAD_COMP PB_4
#define PIN_REF_I_DCDC PA_4