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.

PROCESSOR-SDK-AM335X: ADC step configuration registers

Part Number: PROCESSOR-SDK-AM335X

Hi,

I am using SKAM335x board and TI SDK RTOS on windows host PC.

In ADC, there are 16 step configuration registers. In ADC only 8 channels are there then why 16 step configuration registers are there.

If I want to use channel 4 (AIN3) then should I use step configuration register 4? Please elaborate relation between channel and step configuration register.

Another thing, what are these YPPSW, XNPSW, XPPSW, XNNSW, YPNSW< YNNSW, WPNSW? Are these related to touch screen or they are general. In my application, I have to measure the supply voltages then I have to enable these bits accordingly or not?

I have to use ADC in general purpose to measure supply voltage.

Regards

Gaurav

  • Hi,
    Your query has been assigned to a TI engineer. Please note that response may be delayed due to Christmas and New Year holidays.
  • Gaurav Aggarwal1 said:
    Another thing, what are these YPPSW, XNPSW, XPPSW, XNNSW, YPNSW< YNNSW, WPNSW? Are these related to touch screen or they are general. In my application, I have to measure the supply voltages then I have to enable these bits accordingly or not?

    Yes, those relate to touchscreen.  Are you using the TSCADC peripheral for touchscreen plus general purpose ADC, or are you using it only as a general purpose ADC?  You need to be very careful about resource sharing if you are doing both, i.e. you don't want one to trample on the other.

    Gaurav Aggarwal1 said:
    If I want to use channel 4 (AIN3) then should I use step configuration register 4? Please elaborate relation between channel and step configuration register.

    Steps and channels are independent.  For example, in Linux we use 12 steps just for the touchscreen controller.  That corresponds to 5 samples of x, 5 samples of y, and 2 samples of z.  Within those 5 samples we can then discard min/max and average the remaining.  The other steps are available for general purpose ADC function.  If you're not using touchscreen, you could use all the steps.

  • Hi,

    I don't want to use touchscreen. I want to use ADC for general purpose to measure supply voltage. I need to use AIN0, AIN1 and AIN3. Can you tell me which registers I need to configure for selecting channel and all steps.

    Regards

    Gaurav

  • The STEPCONFIG registers are where you configure those details.  For simplicity, I think using the STEPCONFIG register that corresponds to the input is a good idea.

  • I haven't seen any activity on this thread for almost 2 weeks, so I'm assuming the issue is resolved.

    Regards,
    Frank