Skip to main content
manishbaing2789
Associate III
October 21, 2013
Question

ADC in Continuous conversion mode with STM32F4 Discovey

  • October 21, 2013
  • 3 replies
  • 907 views
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.
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    October 21, 2013
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    manishbaing2789
    Associate III
    October 22, 2013
    Posted on October 22, 2013 at 07:27

    manishbaing2789
    Associate III
    October 22, 2013
    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