STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Hello everyone, I am trying to code for multichannel ADC in STM32F103RB. I have 9 analog inputs. I am using polling method to get values. The values get shifted when i read the adc values. Please help me find my mistake.

I have configured 9 channels as follows:- channel 5,8,9,10,11,12,13,14,15. Now Sampling time for all channels is ADC_SAMPLETIME_1CYCLE_5. I have attached potentiometer for as input voltage. Now when I change pot of channel 9, it gets reflected in cha...

sne_123 by Associate III
  • 301 Views
  • 1 replies
  • 0 kudos

VDD is unstable. because of VBAT??

Hi there.I'm using a STM32F071 series.I want to use a RTC with power backup.So, I added a super-cap on VBAT.​when I power off and on again, ​VDD becames a saw blade.... what???After I discharged the super-capacitor and power on again, VDD is good.I t...

0690X00000BunOrQAJ.png 0690X00000BunPBQAZ.png 0690X00000BunPVQAZ.png
JPark.11 by Associate II
  • 530 Views
  • 3 replies
  • 0 kudos

ADC measuring internal reference gives strange results for shorter sample times. Is there a way to measure the internal reference with sample times of 1.5?

Setup: 48MHz CPU clock, ADC clock = CPU/4. For various sample times, I get internal reference measurements of: 1.5 - 1925, 7.5 - 1760, 13.5 - 1420, all other sample times give 1550. I thought sample times were to cope with high impedance sources. ...

CVan.18 by Associate II
  • 226 Views
  • 0 replies
  • 0 kudos

how to use extern "C"

hi everyone want to use interrupt in main.c i am using extern "C" for this purpose but its couldn't compile/* USER CODE BEGIN 4 */ extern "C" void TIM2_IRQHandler(void) { // Handle update interrupts (update interrupt flag is set) if (TIM2->SR & TIM_S...

waaizkhan by Associate II
  • 2002 Views
  • 4 replies
  • 0 kudos