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.

UCD3138A: UCD3138 DPWM end of period flag

Part Number: UCD3138A

Dear TI,

I need to check or get informed when one period of DPWM operation is complete. I would prefer not to use an interrupt.

I guess that DPWMINT.PRD flag could be used for that, but I can't see it set. Does it get set in "Single Frame Mode"?

Or, alternatively, is there any other mechanism which would allow to say that the cycle of operation is over, without keeping track of any timing?

Also, please, let me know what determines the length of pulse in Single Pulse Mode. I thought that would be the same registers as for other modes: PRD, EV1, ..., but the results were weird.

Best regards,
Adam

  • Hi Adam,

    You can still enable the DPWM period interrupt, but set the corresponding bit in REQMASK to be 0, then poll the bit in INTREQ . But please note, the DPWM is running much faster than CPU, you will not be able to read the bit in INTREQ in time.

    Regarding the single pulse question, you already have another thread asking about single frame, please put this one there and an expert can help you together.

    Regards,
    Bosheng