Post Go back to editing

continuously reading ADUCM4050 ADC

Category: Software
Product Number: ADUCM4050
Software Version: IAR EMBEDDED WORKBENCH 9.32.2

HI EZ,

    We have connected output of AD8232 ECG sensor  to ADC0_VIN1 pin of ADUCM4050. We want to read ecg values continuously and plot the graph by sending them via bluetooth. We tried to read adc channel by following the available example adc_channel_read and https://ez.analog.com/analog-microcontrollers/ultra-low-power-microcontrollers/f/q-a/111255/aducm4050-adc-multi-acquire to continuously read adc channel but not getting the graph as ECG. I have gone through application note AN-1549 and followed the steps of programming flow in which it is saying, for multi acquire to repeat 1-15 steps steps but still not getting the expected graph when plotting the values read from ADC. Can anyone help to figure out how to read ADC channel output continuously?

And also tried to see the ADC output graph in Timeline  but there we are not getting any plot. Can we plot ADC values in IAR embedded workbench?

Thank you

Parents
  • Hi,

    Could you confirm that you can get the right/expected results from adc output with non-continuous read using the adc_channel_read example?

       -if not, please double check the data using only the firmware before transferring through bluetooth.

      -if yes, try this:

    After you successfully configured the ADC (sets up ADC to your preferred sampling frequency), you can loop (infinitely) the adi_adc_SubmitBuffer() >> adi_adc_Enable() >> adi_adc_GetBuffer() functions in order to continuously read ADC channel output.
    The loop starts at populating the structure which hold the details of the buffer and sampling details then ends on getting the processed buffer from the ADC driver(adi_adc_GetBuffer()). 

    [Can we plot ADC values in IAR embedded workbench?] 

            -No. You may use different tools in order to plot the adc values.

    Regards,

    Bryan

Reply
  • Hi,

    Could you confirm that you can get the right/expected results from adc output with non-continuous read using the adc_channel_read example?

       -if not, please double check the data using only the firmware before transferring through bluetooth.

      -if yes, try this:

    After you successfully configured the ADC (sets up ADC to your preferred sampling frequency), you can loop (infinitely) the adi_adc_SubmitBuffer() >> adi_adc_Enable() >> adi_adc_GetBuffer() functions in order to continuously read ADC channel output.
    The loop starts at populating the structure which hold the details of the buffer and sampling details then ends on getting the processed buffer from the ADC driver(adi_adc_GetBuffer()). 

    [Can we plot ADC values in IAR embedded workbench?] 

            -No. You may use different tools in order to plot the adc values.

    Regards,

    Bryan

Children
No Data