2025-04-27 6:18 PM
First of all, this problem is related to ADC and OPAMP, in the program I designed to enable adc1 and adc2, as well as opamp2 and opamp6.
The clocks of ADC1 and ADC2 come from the output of the PLLP and each set the same sampling time.
The TRGO2 output signal of TIM8 is used to trigger the sampling of the injection channels of ADC1 and ADC2. ADC2 obtains the output signal of opamp2 through an internal connection, and ADC1 obtains the output signal of opamp6 through an external connection of PB11. Both samples operate in differential sampling PGA mode with the same 1.65V bias voltage added externally.
.
After passing the self-calibration program of the ADC and opamp of the HAL library, only the sampling of ADC1 is enabled to complete the interrupt signal.
ADC2 sampling found that the output signal of OPAMP2 was not converted to 1.65V. The output signal of the OPC1 sampled by OP6 is converted to 1.65V.
Because the external pin is used, the voltage value of PA6 can be directly measured by a voltmeter, and it is found that the voltage value of PA6 is 1.65V, but the signal obtained by sampling is not the same as that obtained by ADC2.
So it feels like it's going to be ADC, but since the clock source and sampling time are the same, ADC2 should also be sampled when ADC1 is sampled.
Can someone help me with this, thanks
2025-04-27 8:01 PM
After one night, now opamp2 is working again, it's amazing