STM32L052 ADC driver prescaler always > 1 Topic is solved
STM32L052 ADC driver prescaler always > 1 Topic is solved
STM32L052 ChibiOS 20.3.3 The ADC driver does not allow setting the prescaler value to 1 (ADC_CCR_PRESC = 0). This is correct?
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32L052 ADC driver prescaler always > 1
Hi,
You should be able to set the prescaler in mcuconf.h, see STM32_ADC_PRESCALER_VALUE.
Giovanni
You should be able to set the prescaler in mcuconf.h, see STM32_ADC_PRESCALER_VALUE.
Giovanni
Re: STM32L052 ADC driver prescaler always > 1
if STM32_ADC_PRESCALER_VALUE < 2
#error "Invalid value assigned to STM32_ADC_PRESCALER_VALUE"
#error "Invalid value assigned to STM32_ADC_PRESCALER_VALUE"
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Who is online
Users browsing this forum: No registered users and 37 guests