Browse
STMicroelectronics Community
FAQs
Sign In
Product forums
STM32 MCUs
STM32 MCUs Products
STM32 MCUs Boards and hardware tools
STM32 MCUs Software development tools
STM32 MCUs Embedded software
STM32 MCUs TouchGFX and GUI
STM32 MCUs Motor control
STM32 MCUs Security
STM32 MCUs Wireless
STM32 MPUs
STM32 MPUs Products
STM32 MPUs Boards and hardware tools
STM32 MPUs Embedded software and solutions
STM32 MPUs Software development tools
MEMS and sensors
MEMS (sensors)
Imaging (sensors)
Automotive and Transportation
Automotive MCUs
AutoDevKit Ecosystem
GNSS positioning
Edge AI
Interface and connectivity ICs
Power management
ST25 NFC/RFID tags and readers
STM8 MCUs
Others: hardware and software
Analog and audio
Knowledge base
STM32 MCUs
STM32 MPUs
MEMS and sensors
Analog and audio
EMI filtering and signal conditioning
Interface and connectivity ICs
Power management
Quality & reliability
Academy
About
Community guidelines
Feedback forum
Community blog
Developer news
ARost.2
Associate II
since
2020-01-14
2023-06-14
User statistics
6
Posts
0
Solutions
0
Kudos given
0
Kudos received
STMicroelectronics Community
About ARost.2
Options
Report User
User Activity
Posts
Replies
read 8 channels from ADC2 in regular mode
2020-01-14
Hi,While I can read one channel from both ADC1 & ADC3 in injected interrupt mode, till can not find a solution to read 8 channels from ADC2 in regular mode. Please send me sample code.Thanks
Re: read 8 channels from ADC2 in regular mode
2020-01-15
please help anybody !
Re: read 8 channels from ADC2 in regular mode
2020-01-15
how can I read 8 channels?
Re: read 8 channels from ADC2 in regular mode
2020-01-14
/* ADC2 init function */void MX_ADC2_Init(void){ ADC_ChannelConfTypeDef sConfig = {0}; /** Common config */ hadc2.Instance = ADC2; hadc2.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV16; hadc2.Init.Resolution = ADC_RESOLUTION_12B; hadc2.Init.ScanConvMode...
Re: read 8 channels from ADC2 in regular mode
2020-01-14
...//HAL_ADC_Start(&hadc2); //while(1){}//}HAL_TIM_PeriodElapsedCallback{ if(htim->Instance == TIM3) { how to code here ? }}
Re: read 8 channels from ADC2 in regular mode
2020-01-14
adc2 interrupt flag is activatedadc2 triggered by timer 3 rising edgetimer 3 work good