This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2434: AM2434

Part Number: AM2434

Tool/software:

Hi Ti, 

I am currently working with AM2434 controller, and I want to read an input signal from signal generator of 100Khz frequency, 1dbm amplitude using ADC interface and write on UART0 line.

After capturing the ADC data, data is sent to UART Channel and plotted on graph using MATLAB plot function. How to capture all the waveform on ADC without any samples missing in continuous mode.

I am using the adc_singleshot.c sample code. What changes need to be done to capture whole sine wave pulse in continuous mode instead of existing singleshot mode? 

 Also, when MAXADCSAMPLELOGSIZE is changed to 100, the code gets stuck in infinite loop. How to resolve this issue also?

  • Hi Kishor,

    I am using the adc_singleshot.c sample code. What changes need to be done to capture whole sine wave pulse in continuous mode instead of existing singleshot mode? 

    Let me check what changes can be done in the existing code to change ADC mode to continuous, I will try to test something at my end and let you know.

    MAXADCSAMPLELOGSIZE is changed to 100, the code gets stuck in infinite loop. How to resolve this issue also?

    Could you elaborate more on this MAXADCSAMPLELOGSIZE, have you made any changes in the existing singleshot ADC code and observing this issue? If so, let me know the changes, it would be helpful to debug the issue.

    Best Regards,

    Meet.

  • Hi Kishor,

    It seems you only need to change the following setting to make it continuous:

    adcConfig.mode             = ADC_OPERATION_MODE_SINGLE_SHOT; --> ADC_OPERATION_MODE_CONTINUOUS

     

    Please refer to this thread, there are some additional recommendations: (+) LP-AM243: ADC Continuous Conversion Buffering? - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    Best Regards,

    Meet.

  • Changing this has no effect on the ADC sampled data, The sample data is same as the image provided earlier. How to sample the negative samples through the ADC. As currently, I am only able to get positive samples but those also not of proper waveform .  

  • Hi Kishor,

    those also not of proper waveform .  

    This seems to be the limitation cause by the UART transmission. You mentioned you transfer the ADC result using UART, could you let me know the baudrate settings for the UART. Based on the baudrate, how many samples are transmitted will be affected leading to a distorted waveform as it doesn't have enough sample points.

    How to sample the negative samples through the ADC.

    Could you let me know what is the peak-to-peak voltage of the sine waveform you are trying to sample using ADC?  Please note that in the single-ended mode ADC results positive binary weighted data ranging from 0 to (212 - 1) and the range of the input voltage is from REFN to REFP, that's why you are only observing the positive samples, you might have to use differential mode for this:

    Another thing you can try is to give your signal a DC offset, so that the entire signal comes in the positive voltage range of REFN to REFP, while plotting the graph you can subtract the same offset from the ADC sample values.

    Best Regards,

    Meet.

  • Baud Rate is 9600.

    This seems to be the limitation cause by the UART transmission. You mentioned you transfer the ADC result using UART, could you let me know the baudrate settings for the UART. Based on the baudrate, how many samples are transmitted will be affected leading to a distorted waveform as it doesn't have enough sample points.

    Currently i am using Keysight Signal generator with amplitude of 1dBm and frequency of 10kHz. How to configure the differential mode and generally differential needs signal on two pins. How to configure for the same .

    Could you let me know what is the peak-to-peak voltage of the sine waveform you are trying to sample using ADC?  Please note that in the single-ended mode ADC results positive binary weighted data ranging from 0 to (212 - 1) and the range of the input voltage is from REFN to REFP, that's why you are only observing the positive samples, you might have to use differential mode for this:

    How to configure for the DC offset ?

    Another thing you can try is to give your signal a DC offset, so that the entire signal comes in the positive voltage range of REFN to REFP, while plotting the graph you can subtract the same offset from the ADC sample values.

    Thanks 

    Kishor Kumar

  • Hi Kishor,

    Baud Rate is 9600.

    Could you try to increase the baudrate to 115200 and see if that reduces the distortion.

    Currently i am using Keysight Signal generator with amplitude of 1dBm and frequency of 10kHz. How to configure the differential mode and generally differential needs signal on two pins. How to configure for the same .

    This might not be possible if you are using TI EVM, as you need to apply negative reference voltage for this on REFN. In the EVM REFN is connected to ground.

    How to configure for the DC offset ?

    You can apply the offset using the signal generator itself.

    Best Regards,

    Meet.