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.

TMS320F28388D: Accessing peripheral result by both the cores simultaneously

Part Number: TMS320F28388D

Tool/software:

Hi Team,

I have activated adc ISR and ecap3 ISR in both the cores. I am reading the result of eCAP module in both the cores and using for control purpose. I have the following questions,

1. Can the both cores access the eCAP result (ECap3Regs.CAP1) at the same time? If they access at same time, what can happen to the result read by both the cores as it can trigger ecap event at same time to both the cores?

2. If I have configured the same interrupt in both the events like ecap3_isr,adc_isr,pwm_isr then do I need to acknowledge in both the cores like below?

    EALLOW;
    Interrupt_clearACKGroup(INTERRUPT_ACK_GROUP4);
    ECAP_clearInterrupt(ECAP3_BASE,ECAP_ISR_SOURCE_CAPTURE_EVENT_1);
    ECAP_clearInterrupt(ECAP3_BASE,ECAP_ISR_SOURCE_CAPTURE_EVENT_2);
    ECAP_clearInterrupt(ECAP3_BASE,ECAP_ISR_SOURCE_CAPTURE_EVENT_3);
    ECAP_clearInterrupt(ECAP3_BASE,ECAP_ISR_SOURCE_CAPTURE_EVENT_4);
    ECAP_clearGlobalInterrupt(ECAP3_BASE);
    ECap3Regs.ECCLR.bit.INT = 0x1;
    EDIS;

3. If adc result is read by CPUs, before the result ready or during conversion, will it be previous value or random value?