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.

TMS320F28035: If there's conflict to write AQCSFRC at same time by CLA & C28x

Part Number: TMS320F28035

Hi Expert,

I have a question that if there's conflict to write AQCSFRC at same time by CLA & C28x? If yes, what's the result when conflict, and which one has higher priority to write this bit of EPWM register?

Thanks!

Best Regards

Rayna

  • Hi Rayna,

    Concurrent read-modify-write to a shared register can lead to data race conditions which could thus lead to data violation or incorrect functionality. Ideally it’s best to avoid any concurrent updates to the same peripheral by both CLA and C28x during run time.

    If both C28x and CLA do overlapping read-modify-write to AQCSFRC register, then updates to the AQCSFRC due to the CLA get overwritten. 

    Please refer to Section 5.1 Handling Shared Resources Across C28x/CLA of Software Examples to Showcase Unique Capabilities of TI’s C2000™ CLA for an example and ways you could prevent both the CLA and C28x from writing to the AQCSFRC register at the same time.

    Best Regards,

    Marlyn