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.

TMS320F280049: Race condition for TBPHS and CMPA value load at the same time and AQ has work to do at CMPA counter up

Part Number: TMS320F280049

Hi expert,

My customer would like to know what will happen in below PWM configurations.

1. PWM counter in up count mode, CMPA is in immediate load mode

3. CMPA value and TBPHS value are loaded at the exact same time with the exact same value

2. AQ settings: CAU to toggle the PWM output

Will PWM miss the AQ action at this circumstance? Do you have any advice on this kind of application?

Thanks

Sheldon

  • Sheldon,

    Sheldon He said:
    CMPA value and TBPHS value are loaded at the exact same time with the exact same value


    These are 2 asynchronous events - CPU loading the CMPA value in immediate mode and a Sync event loading the TBPHS value in to the Time base counter.
    If indeed the CMPA value is updated by the time TBPHS is loaded in to the counter - then the CMP event will have effect. 

    But I would suggest that you avoid such boundary conditions, particularly because you are dealing with the immediate mode of operation.