You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/current_sense/hardware_specific/stm32/README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,15 @@ This can help reduce the sampling time.
27
27
Injected ADC is used for sampling that requires a critical timing (e.g. low side current sensing).<BR>
28
28
The driver picks some of the shortest sampling time available on your STM32 chip.<BR>
29
29
You can force a specific sampling time with the ADC_SAMPLINGTIME_INJ build flag (e.g. ADC_SAMPLINGTIME_INJ=ADC_SAMPLETIME_1CYCLE_5).<BR>
30
+
Up to 4 injected channels can be sampled per ADC, you will get an error message beyond that.<BR>
30
31
31
32
### Regular ADC
32
33
Regular ADC is used for less critical sampling.<BR>
33
34
It uses DMA to copy ADC samples to a buffer.<BR>
34
35
If not triggered by a timer, it will sample in continuous mode.<BR>
35
36
You can force a specific sampling time with the ADC_SAMPLINGTIME build flag (e.g. ADC_SAMPLINGTIME=ADC_SAMPLETIME_8CYCLES_5).<BR>
37
+
Up to 16 inected channels can be sampled per ADC, you will get an error message beyond that.<BR>
38
+
If many ADCs are available, this can lead to a lot of RAM usage. You can use the MAX_REG_ADC_CHANNELS build flag to reduce this. (e.g. MAX_REG_ADC_CHANNELS=4).<BR>
36
39
37
40
### Internal channels
38
41
You can now sample internal channels (VREF,VBAT,TEMP).<BR>
@@ -43,5 +46,3 @@ You can force a specific sampling time with the ADC_SAMPLINGTIME_INTERNAL build
43
46
An interrupt is used with low side current sensing if the timer used to trigger the ADC has no repetition counter, which is used to make sure the low side mosfets are ON.<BR>
44
47
You can force the use of an interrupt if needed with the SIMPLEFOC_STM32_ADC_INTERRUPT build flag.
0 commit comments