cancel
Showing results for 
Search instead for 
Did you mean: 

How to initialize ADC-2 on STM32G431CBT6

rolfmyhre
Associate II

Program locks in waiting for ADC_ISR ADRDY to become a '1'. Have set RCC_AHB2ENR bit 13 (ADC12EN), Cleared ADC2_CR-bit26(DEEPPWD) and set ADC2_CR-bit25(ADVREGEN). Finally set ADC2_CR-bit0(ADEN). Now ADC2_ISR bit-0 (ADRDY) should become high, but it seems it never does. What have I got wrong?

0 REPLIES 0