Skip to main content
ALott.1
Visitor II
August 7, 2020
Question

Hi everyone! I'm using an STM32L071CBTx and I'm trying to configure ADC with MSI clock.

  • August 7, 2020
  • 1 reply
  • 553 views

I'm configuring HSI16 clock and I don't have any problem but when I switch to MSI clock at 262.144KHz, the ADC is not working.

Datasheet describes that it's possible to configure the ADC from HSI clock or setting the CKMODE (0x01-0x02-0x03) to make it work in CPLK.

I set CKMODE to 0x03, LFMEN to 0x01 for working under the 3.5MHz and I set CHSEL0 for configure channel0 (PA0-GPIO).

Do you have any suggestions for working ADC with MSI clock?

Thanks a lot!

Ale

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
August 7, 2020

"Not working" is not a useful description of the problem. What exactly are the symptoms and how are they different from the expectations? What happens if you use a different MSI frequency?

JW