STM32L051 ADC clockrate discrepancy
Setting up the MCU to use a PCLK of 32 MHz (using PLL and external 16 MHz xtal in x4/2 mode ) I can confirm the clock is really running at 32 MHz with the USART config. I get the expected baudrates and SystemCoreClock is uppdated correctlu.
When I then use ADC_CLOCKPRESCALER_PCLK_DIV1 with oversampling 8x, 239.5 cycles sampling time, continous conversion, 12 bit I get too slow clock.
I use 11 channels and a dma set up to repeat the transfer.
Data arrives correctly and all channels look correct, but rate of conversion (checked by enabling pin strobing in sequence complete interrupt handler) shows a conversion cycle of 1082.25 Hz.
This is comparable to running the ADC from 24 MHz.
I have looked through all the reference docs for the stm32l0x1 and cannot find anything about this quick/limitation.
If anyone can shed some light on this it would be appreciated.
I am running on a stm32l051c8t6 in case it is important.
