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.

OMAPL138 eCAP APWM Mode

I am trying to output a clock signal using the eCAP in APWM mode.  When running code with no breakpoints I don't see a clock signal generated by the eCAP.  When I insert breakpoints in the code the eCAP will generate clocks.  Are there timing requirements on eCAP startup?  Is there a bit to poll to determine if the eCAP is running before continuing on in the code?  What is the proper sequence for enabling/disabling the APWM clock output (TSCTRSTOP?)?

  • The problem was that the TSCTR register was not being initialized to zero and would need to wrap before the APWM would function.  Allowing breakpoint emulation to stop the clock apparently would initialize the TSCTR to zero and then the APWM output of the eCAP would work.