cancel
Showing results for 
Search instead for 
Did you mean: 

ADC in Continuous conversion mode with STM32F4 Discovey

manishbaing2789
Associate II
Posted on October 21, 2013 at 13:24

The original post was too long to process during our migration. Please click on the attachment to read the original post.
3 REPLIES 3
Posted on October 21, 2013 at 15:58

And what happens when you stop servicing the IRQ properly after your first 1000 samples?

doubles/floats, inconsistent, but why pick either when the value is 12-bit returned in an 16-unsigned form? The conversion is both exceeding expensive, and pointless. Do the conversion to volts or whatever once, and when you process the data. Use a single multiply with a constant, avoid the divide.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
manishbaing2789
Associate II
Posted on October 22, 2013 at 07:27

manishbaing2789
Associate II
Posted on October 22, 2013 at 07:27

Thanks

clive1 for your helpful reply.

And what happens when you stop servicing the IRQ properly after your first 1000 samples?

Its simply worked as single conversion mode i.e val[1st_iteration] having some definite value but afterwords its continuously printing 0.00000....

I am attaching output displayed on serial terminal with this post.

I will Modify my code as per your suggestions but till I have few doubt...

1)Why it is not performing continuous conversion as in single conversion mode the same code working fine.

2)What are the things I need to add/modify related to ADC configuration for continuous mode.

3)When I am trying to debug ADC_IRQHandler but at that point debugging stops i.e it will not called.. why it is so..?

________________

Attachments :

ADC_output_on_serial_port.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hypf&d=%2Fa%2F0X0000000bTK%2FJ0mZIQqveBFskTRzkhX7qNNRL4uHcatTi4nqgj3DXWg&asPdf=false