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.

TMS320F28379D: ADCSOC for 2 cores using one PWM SOC

Part Number: TMS320F28379D

Hello Everyone,

I am new to this controller.

I am trying to configure ADC ISR in both the cores. I want to trigger the SOC using the PWM.

It should be triggered by PWM in Core 1 or Core 2, but should initiate SOC for different ADC groups in both cores.

your guidance is appreciated.

  • Hi Mohan,

    CPU ownership only determines who can control the module configurations (not how the triggers are connected module-to-module or who can read the ADC results).  

    The ADC triggers are not different per-core.  You can select SOCA or SOCB from any ePWM module regardless of which core controls configuration of the ADC or ePWM.  Similarly, it doesn't matter which core controls the ADC; when the configured trigger is received the ADC HW will convert.  

    As far as the ADC results, the results are available to be read (without need for arbitration) from both C28x cores, both CLAs, and both DMAs, so you really don't have to do anything here either; the results will always be made available for all masters, regardless of who owns configuration of a given ADC (or the modules that trigger the ADC).

    The ISR is the only place where things are separated, but the separation is only in the CPUs' separate PIE controls.  If an ADC is configured to set an ISR flag, say ADCINT1, then this flag could trigger an ISR in either or both CPUs (regardless of which CPU owns the ADC).  However, each CPU will need to separately enable their own various ISR and PIE enables.