Clearly define the type of driver we need for the ADC
Context of the issue
The ADC of the power converter has been configured to operate on discontinuous mode and dual mode. This means that at each interrupti, each ADC will measure 1 of its group of channels. In our implementation each group contains only one channel.
The channels are setup as follows:
Measurement | Pin | ADC | Channel |
---|---|---|---|
i1_low | PA1 | 1 | 2 |
i2_low | PC1 | 1 | 7 |
i_high | PC2 | 1 | 8 |
V1_low | PA0 | 2 | 1 |
V2_low | PC0 | 2 | 6 |
V_high | PC3 | 2 | 9 |
Which makes for the following sequence of measurements:
Group | Measurement | ADC | Channel | Measurement | ADC | Channel |
---|---|---|---|---|---|---|
1 | i1_low | 1 | 2 | V1_low | 2 | 1 |
2 | i2_low | 1 | 7 | V2_low | 2 | 6 |
3 | i_high | 1 | 8 | V_high | 2 | 9 |
Description of the issue
Each power application may require a different sequence of measurements and sampling rate. This case-by-case dependency is in direct conflict with the currently existing ADC driver which fixes not only the sampling rate but also the sequence of measurements.
There are many questions to be answered regarding this approach:
- Do we wish to continue with this?
- Do we wish to use other ADC setups?
- Do we wish to create a more generic ADC system which can be setup depending on the case-by-base?
- If we choose to implement a more generic ADC system, how can we do it?
Actions
-
Make a series of case-studies to benchmark the measurement sequence and sampling rate needed by the power converter -
List the similarities and differences in needs for these cases -
List the parameters of the ADC driver that can stay fixed and defined by the dts and which parameters will need to be defined by software