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.

DRA80M: ADC Continuous Mode Configuration

Part Number: DRA80M

Hi Processors Team,
My customer is in the process of putting the ADC in continuous mode, but wants to make sure they are correctly running it in continuous mode. The steps they have followed are below:
Steps for configuration:
To test ADC I followed link as reference :-

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components_Kernel_Drivers.html#adc
Testing in Continuous mode
For reading the ADC count I followed the following steps:-
    $  echo 1 > /sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage0_en
    $  echo 100 > /sys/bus/iio/devices/iio\:device0/buffer/length
    $  echo 1 > /sys/bus/iio/devices/iio\:device0/buffer/enable

To test the functionality I built the file named “iio_generic_buffer” and copied to the target board and executed it and i got the below output attached below. Input Voltage provided to the pin was 0.9V.

Q1. Based on the above steps, we are getting the actual raw value as expected but I’m not sure whether it is working in continuous mode or not .
Is there any other way that we can test this functionality?
 
DDR:
Based on the initial analysis I came across a few points for configuration. And some doubts:
1. By default the SDK configures DDR that we are using. Do we need to configure DDR again or the same configurations may work?
2. As per the document regarding steps for configuring DDR here is my current understanding of the steps:
a. Configure the DDR based on the DDR memory datasheet using the EMIF tool.(EMIF tool is a .xlsm tool that can be opened in MS Excel)
b. After the configurations are made we can generate a GEL file and a .dtsi file from this same tool. 
c. The contents of the .dtsi should be copied to the respective dts file in the U-Boot only and not the Kernel.
d.Some clarification is needed on how to use the GEL file to configure DDR
e. Do we need to do the configuration in PINMUX tool as well?
f. If we need to use the PINMUX tool, what needs to be selected in the "Use Case" field?
Let me know if you need me to ask any other follow up questions.
Thanks,
Barend
  • Hi Barend,

    I just want a confirmation on the SDK version and the Part Number that your customer is using before I go ahead and answer the question.

    Can you please provide that?

    Regards

    Karthik

  • Hi Karthik,

    The customer is using a DRA804M(AM6548x), and is using version 06_00_00_07.

    Thanks,
    Barend

  • Hi Barend,

    Regarding the ADC operation:

    Customer is following steps mentioned continuous mode and therefore ADC will operate in continuous mode.

    To confirm customer would have to dump ADC_CONFIG_j register and see "MODE" field value. Channel 0 will map to ADC_CONFIG_0 register and so on.

    Regarding the DDR question I have pasted the questions here again and provided responses after each point.

    1. By default the SDK configures DDR that we are using. Do we need to configure DDR again or the same configurations may work?
    The default SDK is meant to program the DDR on the TI EVM, if you are using the same SDK on a different board (customer specific board) and that has the same DDR part and size, it should work as is. However, if its a different DDR then additional steps that you noted below will be be needed.
    2. As per the document regarding steps for configuring DDR here is my current understanding of the steps:
    a. Configure the DDR based on the DDR memory datasheet using the EMIF tool.(EMIF tool is a .xlsm tool that can be opened in MS Excel)
    Correct.
    b. After the configurations are made we can generate a GEL file and a .dtsi file from this same tool. 
    Yes, there are two possible outputs you need to use one of them at a time.
    c. The contents of the .dtsi should be copied to the respective dts file in the U-Boot only and not the Kernel.
    Yes, that is correct.
    d.Some clarification is needed on how to use the GEL file to configure DDR
    e. Do we need to do the configuration in PINMUX tool as well?
    Yes, PINMUX configuration will be required if you are doing development on custom hardware. 
    f. If we need to use the PINMUX tool, what needs to be selected in the "Use Case" field?
    PINMUX tool usage guidelines are captured in this video https://training.ti.com/pinmux-v4-cloud however, it is better to start from the EVM project and make the changes corresponding to the custom board.
    Regards
    Karthik