cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in reading ADC values using interrupts on STM32F3 Nucleo Board

sagar
Associate II

Hello everyone,

I am working on following application.

I need to measure average of samples read by ADC1 (Differential mode). It starts reading values when interrupt from pin PC13 (Rising edge) is detected.

It stops reading values and display the result when interrupt from pin PB5 (Falling edge) is detected.

Time between PC13 and PB5 interrupts is about 2 milliseconds.

I am using STM32CubeMX as code generator.

I am facing following problem>>>

  1. I am getting garbage value (nan).

I have attached my project file with this.

Expecting help / suggestion from all.

Thanks in advance.

0 REPLIES 0