cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F30x - ADC Interrupt

nanjundamurthy
Associate
Posted on February 15, 2013 at 08:14

Hi,

I am new to this STM32F30x series microcontrollers.

For my application i am using the channels ADC12_IN6 and ADC12_IN7 in Interrupt mode.

(Without DMA).These GPIO's are configured as a input pins(PC0 & PC1) and ADC channels are conconnected with 3v and 2v (input volatge).

After issuing the ADCstart of conversion , waiting for the ADC interrupt.

I am getting the Interrupt and i am reading the DR register for ADC converted value for ADC 1.

Every time i read the ADC DR register, i am getting only the 3v value.

How do i get the ADC12_IN7 channel value?

For getting the ADC12_IN7 value, which register i have to read?

Please advise me on this.

Regards,

Murthy

2 REPLIES 2
Posted on February 15, 2013 at 12:10

Haven't spent much time with the F3's, can you read multiple channels without using DMA?

What if you read them individually and get the expected values?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
raptorhal2
Lead
Posted on February 15, 2013 at 18:37

Four registers are available for 4 injected channels, and can be read after conversion of injected channels is complete. There is also a pacing mechanism that supports reading the DR register during multiple regular channels conversion, which I may investigate just for the exercise.

Since few are familiar with the F3, perhaps posting the code would result in more comprehensive help.

Cheers, Hal