2019-05-08 03:44 PM
Hi,
As for the STM32L486, it have 3 ADCs. Is There only 1 ADC common registers ADCx_CCR (x=1,2,3) for all or individual for each ADCx?
In IAR IDR Arm8.32.2, the SFR setup information states that it is only one ADC_ CCR for both 3 (atached picture). Thus if the CH18SEL bit is set, will VBAT/3 connect to ADC1 or ADC3?
Thank you
2019-05-08 11:45 PM
> Is There only 1 ADC common registers ADCx_CCR (x=1,2,3) for all or individual for each ADCx?
No, there's only one ADC_CCR. It's unfortunate the manual uses ADCx_CCR in anticipation of having more than one ADC-triple, so it's so it's *not* x=1, 2, 3, it's only x=1 in the 'L476/486.
If CH18SEL is set, VBAT/3 connects to all three ADCs, see figures in the ADC1/2/3 connectivity subchapter in the RM.
JW