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.

ADC SOC from PWM up/down CTR=0 and CTR=PRD

Hi everyone,

 

I'm using a TI F28335 and I'm trying to configure the ADC and PWM modules. I configured my PWM in Up/Down counting mode and I wanted to generate a SOC when the CTR hits PRD and ZERO. From what I see, I can only select one or the other in the SOCASEL register... Am I missing something or this isn't possible? If not, could I change this value at runtime, SOC on CTR=PRD when counting up and SOC on CTR=0 when counting down?

 

Thank you very much!

  • Hi Simon

    I put the sequencer in cascaded mode, and enable SOCA and SOCB, and in ePwm I appropriately configure sources for SOCA and SOCB.

    This way I don't nedd to change anything during runtime

    Regards, Mitja