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.

F28335 ADCSOC to GPIO mapping

Hi there,


I was working on this F28335 PWM.


I am not clear on where to map the gpio pins to the PWM module,


I see we have 9 PWM modules, and those are mapped to 3 groups of ADC SOC. we have 4 SOC pin out's in F28335. how to know which SOC gets assigned which pin. or is there any register which does this.

Thanks

  • Hi Mohan,

    Did you go through the ADC & ePWM user guides? Please refer them from user guides section:
    www.ti.com/.../technicaldocuments

    Regards,
    Gautam
  • Hi Mohan,

    If you want to trigger some ADC conversions based on some compare event in the ePWM, then everything can be configured internal to the device and no GPIO configuration is needed. Do read the ePWM and ADC user guides, as Gautam recommends, but the basic idea is to configure the ePWM module SOCA or SOCB compare event to happen at the desired time, then select SOCA or SOCB as the trigger to one of the ADC sequencers.

    There are also SOCA/B signals that can be connected to the GPIO pins. These come from the ePWM module and can be used to observe the trigger signal timings on a 'scope or logic analyzer for debug, or they can be used to trigger an external ADC.
  • Hi,


    Thank you and Gautham for replies.

    The hardware i use is a custom hardware, where we have two DSP's connected. Hence the trigger from one DSP is used in other and both are synchronized using this signal of PWM. The project already has the ADCSOC of PWM1 configured and ADCSOC signal, i am getting it on GPIO32.


    Now what i want to change is change the trigger from PWM1 to PWM6 and still retain the same GPIO32 for ADCSOC trigger.

  • I *think* that the external ADCSOC trigger is an OR of all the ePWM module SOC signals, so I think you can copy your ePWM1 SOC generation code, change the ePWM number to 6, and then comment out the original code.