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.

F2837xD: PWM assigned to CPU2 trigger ADC assigned to CPU1

Hello,

can the PWM-Module (to example EPWM1) assigned to CPU2 trigger one ADC convertion if the ADC is assigned to CPU1?

Best regards

Gennadi

  • Hi Gennadi,

    Yes, this is definitely possible - when you configure the triggers in the ADC and select say ePWM1 the triggering mechanism will function the same regardless of which CPU controls the ePWM and which controls the ADC. Only one CPU can have access to the ADC control registers, but the ADC result registers are actually mapped for both CPUs, both CLAs, and both DMAs simultaneously, so you can process the different ADC results in parallel to save time (or you can process them redundantly for safety).
  • Hi Devin,

    thank you for the answer. I have three more questions:

    1) Is it possible to write to PWM Registers AQSFRC, AQCSFRC, CMPA, CMPB or read from PWM Registers TBSTS, TBCTR if the PWM module is assigned to the other CPU?

    2) Can ADC EOC interrupt CPU2 if ADC is assigned to CPU1?

    3) Are there some possibilities to compile application for the CPU1 and application for CPU2 and get one .out or one .hex file includes both applications together?

    Best regards

    Gennadi

  • Hi Gennadi,

    1) Is it possible to write to PWM Registers AQSFRC, AQCSFRC, CMPA, CMPB or read from PWM Registers TBSTS, TBCTR if the PWM module is assigned to the other CPU?

    No, only master CPU has read/write access to peripheral register.

    2) Can ADC EOC interrupt CPU2 if ADC is assigned to CPU1?

    Yes, interrupts are connected to both the CPU irrespective of master ownership.

    3) Are there some possibilities to compile application for the CPU1 and application for CPU2 and get one .out or one .hex file includes both applications together?

    I don't think we have utility to combine the .out but flash programming toll should be able to load both the .out. I would suggest to start a new E2E post for this topic.

    Regards,

    Vivek Singh

  • Hi Vivek,

    thank you for your answer.

    I posted the third question in compiler forum (e2e.ti.com/.../522632).

    Regards,

    Gennadi